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
Instead of producing nice collapsed string, it does something like
string
string
some_content_collapsed_by_lexer
If I remove extends=expr from string rule, works fine (without extension), like:
terminal_expr
string
quote content quote
Ideally would be nice to be able to use just a string token produced by lexer, which should be parsed later. But for now it's not possible without producing wraping terminal_expr (at least I could not figure out how to do that)
The text was updated successfully, but these errors were encountered:
Feels like information is lost somewhere here: GeneratedParserUtilBase.java:660. When extending elements to compact ast, we are copying element type and dropping optional data, like collapsed
E.g.
Instead of producing nice collapsed
string
, it does something likeIf I remove
extends=expr
fromstring
rule, works fine (without extension), like:Ideally would be nice to be able to use just a
string
token produced by lexer, which should be parsed later. But for now it's not possible without producing wrapingterminal_expr
(at least I could not figure out how to do that)The text was updated successfully, but these errors were encountered: