Phasor
3.1.1
Stack VM based Programming Language
Loading...
Searching...
No Matches
ScriptingRuntime_main.cpp
Go to the documentation of this file.
1
#include "
../../../Runtime/Pulsar/ScriptingRuntime.hpp
"
2
#include "
../../../Frontend/Pulsar/Frontend.hpp
"
3
#include <
nativeerror.h
>
4
5
int
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
{
16
pulsar::Frontend::runRepl
();
17
}
18
}
19
catch
(
const
std::exception &e)
20
{
21
error
(e.what());
22
return
1;
23
}
24
25
return
0;
26
}
main
int main()
Definition
LSP_main.cpp:121
Frontend.hpp
ScriptingRuntime.hpp
pulsar::Interpreter
CLI wrapper for running Pulsar scripts.
Definition
ScriptingRuntime.hpp:17
pulsar::Interpreter::run
int run()
Definition
ScriptingRuntime.cpp:23
pulsar::Frontend::runRepl
int runRepl(Phasor::VM *vm=nullptr)
Run an REPL.
Definition
Frontend.cpp:77
nativeerror.h
error
#define error(msg)
Definition
nativeerror.h:11
src
Executable
Runtime
Pulsar
ScriptingRuntime_main.cpp
Generated by
1.16.1