Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reasoning about off-channel content #434

Closed
kaby76 opened this issue Apr 13, 2024 · 1 comment · Fixed by #419
Closed

Reasoning about off-channel content #434

kaby76 opened this issue Apr 13, 2024 · 1 comment · Fixed by #419

Comments

@kaby76
Copy link
Owner

kaby76 commented Apr 13, 2024

If I create an Arithmetic example (trgen --arithmetic -t CSharp), I can parse an expression with WS. The parse tree contains "Attribute Before" nodes, but I really cannot reason much about them because (1) I don't know what the lexer token type is, (2) I cannot see what channel it is on.

Suppose I want to parse Antlr4 grammars and find out whether a grammar formatter works or not. I can certainly get the parse tree and remove all inter-token content by trparse *.g4 | trdelete ' //@*'. But, I cannot determine whether comments were changed because I cannot query for just the COMMENT tokens.

Attributes are now referenced by @<token-name>.

Fixed by https://github.com/kaby76/Domemtech.Trash/pull/419.

kaby76 added a commit that referenced this issue Apr 14, 2024
kaby76 added a commit that referenced this issue Apr 15, 2024
@kaby76
Copy link
Owner Author

kaby76 commented Apr 25, 2024

Additional fix with

@kaby76 kaby76 closed this as completed Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant