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

Frontend namespace. More...

Functions

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

Detailed Description

Frontend namespace.

Function Documentation

◆ runRepl()

void Phasor::Frontend::runRepl ( VM * vm = nullptr)

Run an REPL.

Parameters
vmThe virtual machine to run the REPL on

Definition at line 80 of file Frontend.cpp.

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

◆ runScript()

void Phasor::Frontend::runScript ( const std::string & source,
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 33 of file Frontend.cpp.

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