To increase the robustnesss of the parsers, we should consider limiting the
maximum nesting level for block level elements.
With JavaCC, this should be straightforward: a counter is increased everytime
a token that opens a block element is encountered and decreased when a closing
token is encountered. When reaching the limit, we move to a lexer context
where all token productions that opens a block element are disabled.
Original issue reported on code.google.com by AndreasZ...@gmail.com on 10 Feb 2011 at 8:48
Original issue reported on code.google.com by
AndreasZ...@gmail.com
on 10 Feb 2011 at 8:48