Posted By:
Natanael_Osorio
Posted On:
Tuesday, October 18, 2011 02:35 PM
I did the following grammar: grammar Tabulation_Test_02; s : l; l : ' 'l | ('a'..'a'|'A'..'Z'); WS : (' ' | ' ' | ' '){skip();}; It is an experience to create a grammar that recognizes a series of lines in which some are tabulated in order to create blocks according to the tab as the Python language. But when I try to debug with the following entry I get the following error in console: [14:47] C:outputTabulation_Test_02Parser.java:141: error: illegal start of expression [14:47] else if ( () ) { [14:47] ^ [14:47] C:outputTabulation_Test_02Parser.java:177: error: illegal
More>>
I did the following grammar:
grammar Tabulation_Test_02;
s : l;
l : ' 'l | ('a'..'a'|'A'..'Z');
WS : (' ' | '
' | '
'){skip();};
It is an experience to create a grammar that recognizes a series of lines in which some are tabulated in order to create blocks according to the tab as the Python language.
But when I try to debug with the following entry I get the following error in console:
[14:47] C:outputTabulation_Test_02Parser.java:141: error: illegal start of expression
[14:47] else if ( () ) {
[14:47] ^
[14:47] C:outputTabulation_Test_02Parser.java:177: error: illegal start of expression
[14:47] if ( ) {
[14:47] ^
[14:47] 2 errors
<<Less