-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds the scanner rules for punctuation (#30)
Adds the Pest grammar rules for these tokens and particularly adds the lookahead assertions for the various edge cases around the punctuation tokens that interact with each other, comments, and decimals. Adds special `Content` enum variants for `.`/`*`/`?` and a basic variant for `Operator` and `Delimiter`. This should the final pre-requisite for all of the terminal parse rules in the PEG and allow us to start adding the parser rules for expressions. An explicit TODO is around modeling the various operators as their own enum or enum variants, right now they are returned as normalized string content.
- Loading branch information
Showing
2 changed files
with
208 additions
and
7 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