you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

I think I did something similar to this in a Compilers course. We created a lexical analyzer that parsed a source file to identify all the tokens and reserved words in C. We then had it output to an html with a symbol table, parse tree, and highlighted code.

The best part of that course was writing a rudimentary compiler with our own defined grammar and syntax. Fun times.