XPath expressions should go across trees
kaby76 opened this issue · comments
There should be a way to check a grammar for a TOKEN_REF that goes to "skip" or off-channel, but I can't do that because we have to be able to go across trees--one is in the parser, and the other is in the lexer parse tree.
antlr/antlr4#3875 (comment). I need to update xpath's so we can search across trees and find these. Something like //parserRuleSpec//TOKEN_REF[text() = //lexerRuleSpec[.//lexerCommands/RARROW]/TOKEN_REF/text()]
, which works for combined grammars.