Phasor 3.1.1
Stack VM based Programming Language
Loading...
Searching...
No Matches
pulsar::Frontend Namespace Reference

Frontend namespace. More...

Functions

int runScript (const std::string &source, Phasor::VM *vm=nullptr)
 Run a script.
int runRepl (Phasor::VM *vm=nullptr)
 Run an REPL.

Detailed Description

Frontend namespace.

Function Documentation

◆ runRepl()

int pulsar::Frontend::runRepl ( Phasor::VM * vm = nullptr)

Run an REPL.

Parameters
vmThe virtual machine to run the REPL on

Definition at line 77 of file Frontend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ runScript()

int pulsar::Frontend::runScript ( const std::string & source,
Phasor::VM * vm = nullptr )

Run a script.

Parameters
sourceThe source code to run
vmThe virtual machine to run the script on
Returns
The result of the script

Definition at line 26 of file Frontend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: