Phasor 2.2.0
Stack VM based Programming Language
Loading...
Searching...
No Matches
Compiler.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <vector>
5
6namespace Phasor
7{
8
16{
17 public:
18 Compiler(int argc, char *argv[], char *envp[]);
19 int run();
20
21 private:
22 struct Args
23 {
24 std::string inputFile;
25 std::string outputFile;
26 bool showLogo = true;
27 bool verbose = false;
28 bool irMode = false;
29 int scriptArgc = 0;
30 char **scriptArgv = nullptr;
31 char **envp = nullptr;
33
34 void parseArguments(int argc, char *argv[]);
35 void showHelp(const std::string &programName);
36
38 int compileToIR();
39};
40
41} // namespace Phasor
Compiler(int argc, char *argv[], char *envp[])
Definition Compiler.cpp:15
void showHelp(const std::string &programName)
Definition Compiler.cpp:186
void parseArguments(int argc, char *argv[])
Definition Compiler.cpp:139
struct Phasor::Compiler::Args m_args
int compileToBytecode()
Definition Compiler.cpp:36
The Phasor Programming Language and Runtime.
Definition AST.hpp:8
std::string inputFile
Definition Compiler.hpp:24
std::string outputFile
Definition Compiler.hpp:25