Skip to content

akerdi/cpp_compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPP_Compiler

Implement Input String to AStruct*.

Usage

string input;
input = "if (+ x y) { * 890909 9 } { / 9 3 }";
AStruct& program = AKCompiler::compiler(input);
    program.print();
    program.deleteNode();
    cout << endl << endl;
}

More test see foo.cpp

Environment

force compiler to be a library:

CMake Option: COMPILER_LIB_MODE

ON: Library Mode
OFF: Test Mode

TODO

  • Letter match regex enable
  • Number match regex enable
  • Load file with flexible size of char
  • Error type return

Other Language

JavaScript & Doc

Golang

About

cpp compiler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages