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
Yes, template instantiation happens before EBNF expansion, and this is rather non-trivial to combine in one step. I'll add better error reporting though. Another input that does not seem to trigger any errors, while it should, is when optionallyPrefixed starts with a nullable nonterminal.
%lookahead flag x;
prog: optionallyPrefixed<+x>;
optionallyPrefixed: prefix? usesLookahead ;
usesLookahead: [x] y | z;
This reported that x was unused in optionallyPrefixed, until I changed that production to
optionallyPrefixed: usesLookahead | prefix usesLookahead ;
The text was updated successfully, but these errors were encountered: