The following demo grammar causes ANTLR 3.4 to generate an invalid parser. The conditional for the if statement is empty.
grammar Demo002; number : '0'..'9'; java -classpath /usr/local/lib/antlr-3.4-complete.jar org.antlr.Tool Demo002 In Demo002Parser.java // Demo002.g:3:9: ( '0' .. '9' ) // Demo002.g: { if ( ) { input.consume(); state.errorRecovery=false; } else { MismatchedSetException mse = new MismatchedSetException(null,input); throw mse; } } java -classpath /usr/local/lib/antlr-3.3-complete.jar org.antlr.Tool Demo002.g // Demo002.g:3:9: ( '0' .. '9' ) // Demo002.g:3:11: '0' .. '9' { matchRange('0','9'); } List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to il-antlr-inter...@googlegroups.com. To unsubscribe from this group, send email to il-antlr-interest+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.