Skip to content

Stop creating lexer tokens for parameterized rules - #826

Merged
yui-knk merged 1 commit into
ruby:masterfrom
yui-knk:tokens
Oct 25, 2026
Merged

yui-knk merged 1 commit into
ruby:masterfrom
yui-knk:tokens

Conversation

@yui-knk

@yui-knk yui-knk commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator

Represent parameterized rule arguments and nested calls as AST nodes. Keep lexer-generated tokens inside symbol nodes, and convert those AST nodes to the token-based representation when building grammar rules.

This keeps token creation out of parameterized rule parsing while preserving existing grammar behavior.

Represent parameterized rule arguments and nested calls as AST nodes.
Keep lexer-generated tokens inside symbol nodes, and convert those AST
nodes to the token-based representation when building grammar rules.

This keeps token creation out of parameterized rule parsing while
preserving existing grammar behavior.
@yui-knk
yui-knk merged commit 1a1e6f1 into ruby:master Oct 25, 2026
23 checks passed
@yui-knk
yui-knk deleted the tokens branch October 25, 2026 12:43
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 this pull request may close these issues.

1 participant