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

CLI wrapper for bytecode generation from Phasor source. More...

#include <Compiler.hpp>

Collaboration diagram for Phasor::Compiler:
[legend]

Classes

struct  Args

Public Member Functions

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

Private Member Functions

void parseArguments (int argc, char *argv[])
void showHelp (const std::string &programName)
int compileToBytecode ()
int compileToIR ()

Private Attributes

struct Phasor::Compiler::Args m_args

Detailed Description

CLI wrapper for bytecode generation from Phasor source.

Compiles Phasor source files to bytecode using the methods provided.

Definition at line 15 of file Compiler.hpp.

Constructor & Destructor Documentation

◆ Compiler()

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

Definition at line 15 of file Compiler.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ compileToBytecode()

int Phasor::Compiler::compileToBytecode ( )
private

Definition at line 36 of file Compiler.cpp.

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

◆ compileToIR()

int Phasor::Compiler::compileToIR ( )
private

Definition at line 88 of file Compiler.cpp.

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

◆ parseArguments()

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

Definition at line 139 of file Compiler.cpp.

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

◆ run()

int Phasor::Compiler::run ( )

Definition at line 21 of file Compiler.cpp.

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

◆ showHelp()

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

Definition at line 186 of file Compiler.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ m_args

struct Phasor::Compiler::Args Phasor::Compiler::m_args
private

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