The final grammar together with the lexer. The whole file with a lot of comments is on Github. It is currently in one file for convenience but needs to be split into a lexer (Flex) and a parser (Bison) later.
The file has a lot of comments already, not much to say here, but nevertheless… Continue reading
The JISON Parser
Printing the AST
The Jison parser is not a rewrite of Bison and I am fully aware of that fact, but it is quite close, dangerously close! That’s one of the reasons it took me so long 😉
The parser stands now and JISON gulps it without protest and while I’m writing this line it creeps slowly in my mind that I forgot to implement something to include another file. OK, should be simple, but tomorrow is another day, as the saying goes.
Nevertheless… Continue reading