CLI in C++: Status Update

Over the past two weekends I implemented the parser for our CLI language. If you would like to check it out, you can download the source distribution via these links:

See the previous status update for more information on what to do with these files. You can also follow the development, including accessing a more detailed log of changes, via the git repository:

At this stage the parser just checks that the stream of tokens as supplied by the lexical analyzer is a valid definition of the CLI language. If there is an error, it is reported and the parser tries to recover by skipping past the next ‘;‘. There is also the formal description of the language in the doc/language.txt file and the function names in the parser class roughly correspond to the production rules.

With the initial version of the parser complete, the next step is to build the so called semantic graph from the definitions parsed. We can then traverse this semantic graph to generate the C++ mapping. I should have the semantic graph ready by the end of next weekend. Will let you know as soon as I have something working.

Comments are closed.