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

Frontend namespace. More...

Functions

int runScript (const std::string &source, VM *vm, const std::filesystem::path &path="", bool verbose=false)
 Run a script.
int runRepl (VM *vm=nullptr, bool verbose=false)
 Run an REPL.

Detailed Description

Frontend namespace.

Function Documentation

◆ runRepl()

int Phasor::Frontend::runRepl ( VM * vm = nullptr,
bool verbose = false )

Run an REPL.

Parameters
vmThe virtual machine to run the REPL on

Definition at line 87 of file Frontend.cpp.

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

◆ runScript()

int Phasor::Frontend::runScript ( const std::string & source,
VM * vm,
const std::filesystem::path & path = "",
bool verbose = false )

Run a script.

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

Definition at line 17 of file Frontend.cpp.

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