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

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

#include <Compiler.hpp>

Collaboration diagram for pulsar::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 pulsar::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()

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

Member Function Documentation

◆ compileToBytecode()

int pulsar::Compiler::compileToBytecode ( )
private

◆ compileToIR()

int pulsar::Compiler::compileToIR ( )
private

◆ parseArguments()

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

◆ run()

int pulsar::Compiler::run ( )

◆ showHelp()

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

Member Data Documentation

◆ m_args

struct pulsar::Compiler::Args pulsar::Compiler::m_args
private

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