Phasor 3.1.1
Stack VM based Programming Language
Loading...
Searching...
No Matches
ScriptingRuntime_main.cpp
Go to the documentation of this file.
3#include <nativeerror.h>
4
5int main(int argc, char *argv[], char *envp[])
6{
7 try
8 {
9 if (argc >= 2)
10 {
11 pulsar::Interpreter interp(argc, argv, envp);
12 return interp.run();
13 }
14 else
15 {
17 }
18 }
19 catch (const std::exception &e)
20 {
21 error(e.what());
22 return 1;
23 }
24
25 return 0;
26}
int main()
Definition LSP_main.cpp:121
CLI wrapper for running Pulsar scripts.
int runRepl(Phasor::VM *vm=nullptr)
Run an REPL.
Definition Frontend.cpp:77
#define error(msg)
Definition nativeerror.h:11