Hello everyone, I'm new and looking for some assistance. Thanks for
your work on this awsome software.

Why I'm getting "FailedPredicateException" in both Antlr IDE and in
Eclipse interpreters? What does this mean?

Here is my input:

var byte test = 1234


Here is my grammer:


grammar test;

options
{
    backtrack   = true;
    memoize     = true;
    language    = C;
}

program :  declaration;

declaration : (constant) | (variable);
constant : 'const' TYPE IDENTIFIER '=' expr;
variable : 'var' TYPE IDENTIFIER ('=' expr)?;
expr :  '('? (NUMBER | IDENTIFIER) (OPERATOR (NUMBER | IDENTIFIER))?
')'?;

TYPE : ('bit' | 'byte' | 'word' | 'dword');
IDENTIFIER : ('a'..'z' | 'A'..'Z') ('a'..'z' | 'A'..'Z' | '0'..'9')*;
OPERATOR : '+' | '-' | '*' | '/';
NUMBER : ('0'..'9')+;
ARRAY : IDENTIFIER '[' * ']';

WS      : ( '\t' | ' ' | '\r' | '\n'| '\u000C' ) +      { $channel = HIDDEN; } ;


Thanks,
Matt.

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to