Phasor 2.2.0
Stack VM based Programming Language
Loading...
Searching...
No Matches
Phasor_main.cpp File Reference
#include "../../CLI/Repl/Repl.hpp"
#include "../../CLI/Runtime/ScriptingRuntime.hpp"
#include "../../CLI/Runtime/BinaryRuntime.hpp"
#include "../../Frontend/Frontend.hpp"
#include <iostream>
#include <string>
#include <vector>
#include <filesystem>
#include <iterator>
#include <unistd.h>
Include dependency graph for Phasor_main.cpp:

Go to the source code of this file.

Macros

#define IS_TERMINAL   isatty(fileno(stdin))

Functions

std::string readStdin ()
 Reads all content from stdin until EOF (piped input).
void showHelp (const fs::path &program="phasor")
int main (int argc, char *argv[], char *envp[])

Macro Definition Documentation

◆ IS_TERMINAL

#define IS_TERMINAL   isatty(fileno(stdin))

Definition at line 16 of file Phasor_main.cpp.

Function Documentation

◆ main()

int main ( int argc,
char * argv[],
char * envp[] )

Definition at line 56 of file Phasor_main.cpp.

Here is the call graph for this function:

◆ readStdin()

std::string readStdin ( )

Reads all content from stdin until EOF (piped input).

Definition at line 22 of file Phasor_main.cpp.

Here is the caller graph for this function:

◆ showHelp()

void showHelp ( const fs::path & program = "phasor")

Definition at line 34 of file Phasor_main.cpp.

Here is the caller graph for this function: