Phasor 3.3.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>
6namespace Phasor
7{
8
16{
17 public:
18 Compiler(int argc, char *argv[]);
19 int run();
20
21 private:
22 struct Args
23 {
24 std::string inputFile;
25 std::string outputFile;
26 bool verbose = false;
27 bool irMode = false;
28 int scriptArgc = 0;
29 char **scriptArgv = nullptr;
31
32 void parseArguments(int argc, char *argv[]);
33 static void showHelp(const std::string &programName);
34
36 int compileToIR();
37};
38
39} // namespace Phasor
struct Phasor::Compiler::Args m_args
void parseArguments(int argc, char *argv[])
Definition Compiler.cpp:141
int compileToBytecode()
Definition Compiler.cpp:38
Compiler(int argc, char *argv[])
Definition Compiler.cpp:17
static void showHelp(const std::string &programName)
Definition Compiler.cpp:184
The Phasor Programming Language and Runtime.
Definition AST.hpp:12
std::string inputFile
Definition Compiler.hpp:24
std::string outputFile
Definition Compiler.hpp:25