I am currently using Irony parser and I don't seem to find that much documentation yet. This time I want to do something like the error recovery in Bison, where you get the line and row where the error was. I'm not really sure how to get the error information in a grammar like this for example:
NumberLiteral number = new NumberLiteral("number");
NonTerminal S = new NonTerminal("S");
NonTerminal E = new NonTerminal("E");
S -> E;
E -> E + E
|E - E
|E / E
|E * E
|number;
this.Root = S;
RegisterOperators(1, "+", "-");
RegisterOperators(2, "*", "/");
And when I enter something like "2++" instead of just showing me there's an error, report that there's been an error on line 1, row 2.