Hello list, I currently have a grammar that looks something like this:
//this is the root public prog : globalStmt+ ; globalStmt: stateDef; stateDef : 'state' ID stateBlock; stateBlock : '{' stateBlockContent* '}' ; stateBlockContent : NEWLINE! ; This is enough to demonstrate the problem. When I create a program such as: state hello { } } The trailing close bracket is not detected as an error. In fact, the grammar only seems to trigger an error when the trailing content could be part of a subrule farther down the chain such as an ID. What am I doing wrong and what is the best way to resolve this? Under antlrworks when the debugger gets to the errant bracket the debug cusor moves to the semi at the end of prog and the closing bracket stays greyed out like it's never consumed or evaluated. Thank you for your time. -- David Daeschler 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.