Sorry for the late reply, busy weekend.
could you provide a sample code that it can 'parse'?
This example is just of the lexical analyzer or lexer. The syntax analyzer or parser is a separate component of a compiler, but it parses the output of the lexical analyzer. I did have a working parser, but I was unhappy with it so I scrapped it. Now I'm working on a new one.