/cpp_compiler

cpp compiler

Primary LanguageC++

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