[antlr-interest] Strange behaviour of AnTLRWorks with Synpreds...

Thomas Brandon tbrandonau at gmail.com
Mon Jul 30 01:12:43 PDT 2007


On 7/30/07, Ruth Karl <ruth.karl at gmx.de> wrote:
> Hi,
>
> last week I had a lexer problem and tried to solve it using synpreds.
> I then wanted to try another solution and eliminated them from my
> grammar again. But now I keep getting a FailedPredicateException in the
> Antlworks Interpreter.
> I restarted AntlrWorks, regenerated the code, openend the file again,
> restarted my system... the problem remains the same...
> I'll attach my grammar, so you can see: there is no predicate left in it.
> Any idea what could make Antlrworks work again?
Backtracking causes ANTLR to generate predicates to solve ambiguities.
So either remove backtracking and fix the ambiguities or switch to the
debugger (using remote debug as you're language is C#).

Tom.
>
> Ruth
>
> (AnTLRWorks 1.1.1., java 1.6.0_01, Vista Business)
>
>
> grammar JSP;
>
> options {
> language = CSharp;
>                output=AST;
> backtrack=true;
>                memoize=true;
> }
>


More information about the antlr-interest mailing list