4 ms·
But it can be fixed. Rather than specify a grammer in BISON and generating C code, write your parser as a recursive descent parser. Then add some annotations an
by grandinj 15y ago
But it can be fixed.
Rather than specify a grammer in BISON and generating C code,
write your parser as a recursive descent parser.
Then add some annotations and auto-generate grammar files from the C code.
This is the same principle as generating document using DOXYGEN, the closer the annotation is to the code, the more chance there is of the annotation being correct.
Also, its something you can incrementally.