unlogic
Loading...
Searching...
No Matches
unlogic::Compiler Class Reference

#include <Compiler.h>

Public Member Functions

std::expected< Program, CompilationErrorCompile (std::string_view program_text, std::vector< bf::Token< ParserGrammarType > > *tokens=nullptr)
 
 Compiler ()=delete
 
 Compiler (std::vector< Library * > default_libraries={})
 

Static Public Member Functions

static void InitializeGlobalCompilerRuntime ()
 

Detailed Description

Definition at line 36 of file Compiler.h.

Constructor & Destructor Documentation

◆ Compiler() [1/2]

unlogic::Compiler::Compiler ( )
delete

◆ Compiler() [2/2]

Compiler::Compiler ( std::vector< Library * >  default_libraries = {})

Definition at line 108 of file Compiler.cpp.

Member Function Documentation

◆ Compile()

std::expected< Program, CompilationError > Compiler::Compile ( std::string_view  program_text,
std::vector< bf::Token< ParserGrammarType > > *  tokens = nullptr 
)

Definition at line 34 of file Compiler.cpp.

◆ InitializeGlobalCompilerRuntime()

void Compiler::InitializeGlobalCompilerRuntime ( )
static

Definition at line 27 of file Compiler.cpp.


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