You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is the generated SwiftBugParser code (portions of comments ommitted):
// $ANTLR start "tag"
// \\SwiftBug.g:16:1: tag : COLON '1' .. '9' '0' .. '9' ( 'A' .. 'Z' )? ;
public final void tag() throws RecognitionException {
try {
// \\SwiftBug.g:16:5: ( COLON '1' .. '9' '0' .. '9' ( 'A' .. 'Z' )? )
// \\SwiftBug.g:16:8: COLON '1' .. '9' '0' .. '9' ( 'A' .. 'Z' )?
{
match(input,COLON,FOLLOW_COLON_in_tag68);
matchRange('1','9'); // FIRST ERROR, LINE 193
matchRange('0','9'); // SECOND ERROR, LINE 195
// \\SwiftBug.g:16:32: ( 'A' .. 'Z' )?
int alt2=2;
int LA2_0 = input.LA(1);
if ( () ) { // THIRD ERROR, LINE 201
alt2=1;
}
switch (alt2) {
case 1 :
// \\SwiftBug.g:
{
if ( ) { // FOURTH ERROR, LINE 208
input.consume();
state.errorRecovery=false;
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
throw mse;
}
}
break;
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return ;
}
// $ANTLR end "tag"
I am getting these four Java compilation errors:
Description Resource Path Location Type
The method matchRange(char, char) is undefined for the type SwiftBugParser SwiftBugParser.java /SwiftMessage/antlr-generated line 193 Java Problem
The method matchRange(char, char) is undefined for the type SwiftBugParser SwiftBugParser.java /SwiftMessage/antlr-generated line 195 Java Problem
Syntax error on token "(", Expression expected after this token SwiftBugParser.java /SwiftMessage/antlr-generated line 201 Java Problem
Syntax error on token "(", Expression expected after this token SwiftBugParser.java /SwiftMessage/antlr-generated line 208 Java Problem
The text was updated successfully, but these errors were encountered:
I am getting a Java compile error on a grammar.
I'm using Eclipse Indigo SR2 and these plugins:
I am having Eclipse place the generated Java code in a package antlr-generated. The build path for antlr-generated includes antlr-3.4-complete.jar.
Here is my grammar:
Here is the generated SwiftBugParser code (portions of comments ommitted):
I am getting these four Java compilation errors:
The text was updated successfully, but these errors were encountered: