Phasor 3.1.1
Stack VM based Programming Language
Loading...
Searching...
No Matches
pulsar::Interpreter Class Reference

CLI wrapper for running Pulsar scripts. More...

#include <ScriptingRuntime.hpp>

Collaboration diagram for pulsar::Interpreter:
[legend]

Classes

struct  Args

Public Member Functions

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

Private Member Functions

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

Private Attributes

struct pulsar::Interpreter::Args m_args

Detailed Description

CLI wrapper for running Pulsar scripts.

Definition at line 16 of file ScriptingRuntime.hpp.

Constructor & Destructor Documentation

◆ Interpreter()

pulsar::Interpreter::Interpreter ( int argc,
char * argv[],
char * envp[] )

Definition at line 17 of file ScriptingRuntime.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ createVm()

std::unique_ptr< Phasor::VM > pulsar::Interpreter::createVm ( )
private

Definition at line 77 of file ScriptingRuntime.cpp.

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

◆ parseArguments()

void pulsar::Interpreter::parseArguments ( int argc,
char * argv[] )
private

Definition at line 105 of file ScriptingRuntime.cpp.

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

◆ run()

int pulsar::Interpreter::run ( )

Definition at line 23 of file ScriptingRuntime.cpp.

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

◆ runSource()

int pulsar::Interpreter::runSource ( )
private

Definition at line 31 of file ScriptingRuntime.cpp.

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

◆ runSourceString()

int pulsar::Interpreter::runSourceString ( const std::string & source,
Phasor::VM & vm )
private

Definition at line 59 of file ScriptingRuntime.cpp.

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

◆ showHelp()

void pulsar::Interpreter::showHelp ( )
private

Definition at line 133 of file ScriptingRuntime.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ m_args

struct pulsar::Interpreter::Args pulsar::Interpreter::m_args
private

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