Phasor 2.2.0
Stack VM based Programming Language
Loading...
Searching...
No Matches
Phasor::ScriptingRuntime Class Reference

CLI wrapper for running Phasor scripts. More...

#include <ScriptingRuntime.hpp>

Collaboration diagram for Phasor::ScriptingRuntime:
[legend]

Classes

struct  Args

Public Member Functions

 ScriptingRuntime (int argc, char *argv[], char *envp[])
int run ()

Private Member Functions

void parseArguments (int argc, char *argv[])
void showHelp (const std::string &programName)
int runSource ()
void runSourceString (const std::string &source, VM &vm)
std::unique_ptr< VMcreateVm ()

Private Attributes

struct Phasor::ScriptingRuntime::Args m_args

Detailed Description

CLI wrapper for running Phasor scripts.

Loads and executes Phasor source files (.phs files).

Definition at line 18 of file ScriptingRuntime.hpp.

Constructor & Destructor Documentation

◆ ScriptingRuntime()

Phasor::ScriptingRuntime::ScriptingRuntime ( int argc,
char * argv[],
char * envp[] )

Definition at line 24 of file ScriptingRuntime.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ createVm()

std::unique_ptr< VM > Phasor::ScriptingRuntime::createVm ( )
private

Definition at line 86 of file ScriptingRuntime.cpp.

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

◆ parseArguments()

void Phasor::ScriptingRuntime::parseArguments ( int argc,
char * argv[] )
private

Definition at line 114 of file ScriptingRuntime.cpp.

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

◆ run()

int Phasor::ScriptingRuntime::run ( )

Definition at line 30 of file ScriptingRuntime.cpp.

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

◆ runSource()

int Phasor::ScriptingRuntime::runSource ( )
private

Definition at line 38 of file ScriptingRuntime.cpp.

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

◆ runSourceString()

void Phasor::ScriptingRuntime::runSourceString ( const std::string & source,
VM & vm )
private

Definition at line 66 of file ScriptingRuntime.cpp.

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

◆ showHelp()

void Phasor::ScriptingRuntime::showHelp ( const std::string & programName)
private

Definition at line 141 of file ScriptingRuntime.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ m_args

struct Phasor::ScriptingRuntime::Args Phasor::ScriptingRuntime::m_args
private

The documentation for this class was generated from the following files: