Phasor 3.3.0
Stack VM based Programming Language
Loading...
Searching...
No Matches
ScriptingRuntime.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <memory>
4#include <string>
5#include <vector>
6
9namespace pulsar
10{
11
17{
18 public:
19 Interpreter(int argc, char *argv[]);
20 int run();
21
22 private:
23 struct Args
24 {
25 std::filesystem::path inputFile;
26 bool verbose = false;
27 int scriptArgc = 0;
28 char **scriptArgv = nullptr;
29 std::filesystem::path program;
31
32 void parseArguments(int argc, char *argv[]);
33 void showHelp();
34
35 int runSource();
36 int runSourceString(const std::string &source, Phasor::VM &vm);
37
38 std::unique_ptr<Phasor::VM> createVm();
39};
40
41} // namespace pulsar
Virtual Machine.
Definition VM.hpp:33
int runSourceString(const std::string &source, Phasor::VM &vm)
void parseArguments(int argc, char *argv[])
std::unique_ptr< Phasor::VM > createVm()
struct pulsar::Interpreter::Args m_args
Interpreter(int argc, char *argv[])
The Pulsar Scripting Language.
Definition Compiler.cpp:14
std::filesystem::path inputFile
std::filesystem::path program