Skip to content

Split up newline token - #4200

Merged
kddnewton merged 1 commit into
mainfrom
split-newlie
Aug 6, 2026
Merged

Split up newline token#4200
kddnewton merged 1 commit into
mainfrom
split-newlie

Conversation

@kddnewton

Copy link
Copy Markdown
Collaborator

There are actually 3 tokens in the Ruby grammar: the newline in a whitespace insensitive position that is ignored, a newline that is in a whitespace sensitive position that acts as a statement terminator, and a newline in a whitespace sensisitive position that acts as the terminator for an expression. The third one doesn't exist in our grammar at the moment, but I want to add it, because it makes working with translating the lex output easier.

There are actually 3 tokens in the Ruby grammar: the newline in a
whitespace insensitive position that is ignored, a newline that is
in a whitespace sensitive position that acts as a statement
terminator, and a newline in a whitespace sensisitive position that
acts as the terminator for an expression. The third one doesn't
exist in our grammar at the moment, but I want to add it, because
it makes working with translating the lex output easier.
@kddnewton
kddnewton merged commit 3dbe592 into main Aug 6, 2026
110 checks passed
@kddnewton
kddnewton deleted the split-newlie branch August 6, 2026 01:16
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