lin q
2012-12-05 23:35:46 UTC
Hi,
I have a simple grammar like this -
grammar string;
string : 'var' Name_string
;
Name_String
: 'a'..'z' +
;
WS : ('\t' | ' ')+ {$channel = HIDDEN;};
In AntlrWorks I give the test data as "var ab", but I get
MissingTokenException when it comes to parse "ab".
Do you see what is the problem?
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
I have a simple grammar like this -
grammar string;
string : 'var' Name_string
;
Name_String
: 'a'..'z' +
;
WS : ('\t' | ' ')+ {$channel = HIDDEN;};
In AntlrWorks I give the test data as "var ab", but I get
MissingTokenException when it comes to parse "ab".
Do you see what is the problem?
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address