ststeiger / wikimodel

Automatically exported from code.google.com/p/wikimodel
0 stars 0 forks source link

Introduce block nesting level limit #203

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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