-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for ending statements on newline
This adds a bitflag to the parser to enable parsing newlines as statement sentinels in place of semicolons. Semicolons continue to work. This still needs work to support a backslash before EOL as a means of ending a statement, but since there's no lookahead on tokens right now, that's a little tricky. Might be doable by checking if the last element of the current statement is a '\' word.
- Loading branch information
Showing
2 changed files
with
115 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters