User:OrenBochman/ParserNG/WikiTable

Status

 * This is a lexer + a parser.
 * Tested against the examples in table.
 * A tree grammar or a string template could be used to transform into XHTM etc.
 * Does not support full unicode to simplify development - but the string could be changed with minimal impact.

Problems
The speck has an unresolved ambguities. These are tricky to understand/fix


 * 1) Antlr complains that the first header cell might belong
 * In the optional header.
 * In the table body.
 * which this could be fixed by:
 * adding a variable with a table wide scope
 * use it in a predicate on the optional header
 * add an action after the optional header to flip it


 * Antlr complains that the first non-header cell might belong
 * In the (optional) first row, i.e. the one without a |- indicator.
 * In the optional other rows after.