-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(parser): switch over to the new parser (#352)
There are a few notable differences. First, true and false are not reserved identifiers so they will evaluate as identifiers. It is up to the caller to set the value for these predeclared identifiers. This is done manually in one test and otherwise it is done automatically in the interpreter. Second, some of the location information changed. Notably, object expressions start at the `{` symbol instead of the location of the first property and call expression start at the beginning of the callee instead of the first parenthesis. This second one is identical to what the go parser does. The type inference tests had to be modified for this reason. The parser options have been removed. They seem to have been automatically generated by pigeon and weren't applicable anymore. This changes the type signature, but it doesn't change how it is called in a majority of situations. The pigeon dependency has been removed as it is no longer needed.
- Loading branch information
1 parent
45975b5
commit 8211239
Showing
14 changed files
with
63 additions
and
8,455 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
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
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.