Hi, are there special concerns regarding the wildcard operator in a tree grammar (with filter=true)?
I ask because ^(ENVIRONMENT_BEGIN .) . * ^(ENVIRONMENT_END .) did not match the correct input EXCEPT the LAST subtree in the file is of the form "^(ENVIRONMENT_END .)". A deeper investigation showed that the "next token equals endtoken than cancel"-logic of the wildcard did not fire, although it should recognize the environment-end subtree. So the .* matchs everything and the parser runs until reaching the last subtree of the input stream. This last subtree is than compared to "^(ENVIRONMENT_END .)". So "^(ENVIRONMENT_BEGIN a) b ^(ENVIRONMENT_END c)" is recognized but "^(ENVIRONMENT_BEGIN a) b ^(ENVIRONMENT_END c) SOMETHING" not. Is everything correct in the code above or is there a bug in ANTLR? Thanks! 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
