Implement Input String
to AStruct*
.
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
force compiler to be a library:
CMake Option: COMPILER_LIB_MODE
ON: Library Mode
OFF: Test Mode
- Letter match regex enable
- Number match regex enable
- Load file with flexible size of char
- Error type return