You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example output and input files are provided in ./documentation/example_output/, ./tests/input/c_programs/ directory accordingly.
The only external library is googletest, it is used only to test code and is not being used as external code for this program source code. The proof for this is in all the CMakeLists.txt files in the project.
If you have any problems / concerns regarding a project code please contact project owner. Or create a GitHub Issue and assign the owner.
Algorithm:
Inside a scanner object there is a DFA (see ./documentation/module/automata_table.xlsx)
Input from the input file provided is feed to automata and then if accepting state is reached further instructions are given (function pointer) from the current state.
The instruction contain how to deal with given data, for example input that lead to double token generation is stored as a double inside a program memory, not as a string.
After the token is generated it has print method is run and the output is saved.