-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: improve the parser's peformance.
Formatting error messages every time `unexpected_token_error` was called was a major bottleneck. Many of these error messages are not actually used at all, now the formatting of the error message is deferred to the moment that this error is actually needed.
- Loading branch information
Showing
17 changed files
with
86 additions
and
114 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,4 +34,4 @@ [email protected] | |
[email protected] "}" | ||
|
||
ERRORS: | ||
- [11..12]: expecting `meta`, `strings` or `condition`, found `{` | ||
- [11..12]: expecting `meta`, `strings` or `condition` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,5 +79,5 @@ [email protected] | |
[email protected] "}" | ||
|
||
ERRORS: | ||
- [40..41]: expecting BYTE or `(`, found `)` | ||
- [100..101]: expecting BYTE or `(`, found `}` | ||
- [40..41]: expecting BYTE or `(` | ||
- [100..101]: expecting BYTE or `(` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,5 +73,5 @@ [email protected] | |
[email protected] "}" | ||
|
||
ERRORS: | ||
- [33..34]: expecting `[`, BYTE, `(` or `}`, found INTEGER | ||
- [93..94]: expecting `[`, BYTE, `(` or `}`, found identifier | ||
- [33..34]: expecting `[`, BYTE, `(` or `}` | ||
- [93..94]: expecting `[`, BYTE, `(` or `}` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,4 +23,4 @@ [email protected] | |
[email protected] "}" | ||
|
||
ERRORS: | ||
- [14..17]: expecting `meta`, `strings` or `condition`, found identifier | ||
- [14..17]: expecting `meta`, `strings` or `condition` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,4 +28,4 @@ [email protected] | |
[email protected] "}" | ||
|
||
ERRORS: | ||
- [30..39]: expecting `=`, found `condition` | ||
- [30..39]: expecting `=` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,4 +30,4 @@ [email protected] | |
[email protected] "}" | ||
|
||
ERRORS: | ||
- [32..41]: expecting `true`, `false`, INTEGER, FLOAT or STRING, found `condition` | ||
- [32..41]: expecting `true`, `false`, INTEGER, FLOAT or STRING |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,4 +40,4 @@ [email protected] | |
[email protected] "}" | ||
|
||
ERRORS: | ||
- [30..34]: expecting `true`, `false`, INTEGER, FLOAT or STRING, found `meta` | ||
- [30..34]: expecting `true`, `false`, INTEGER, FLOAT or STRING |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,4 +53,4 @@ [email protected] | |
[email protected] "}" | ||
|
||
ERRORS: | ||
- [30..33]: expecting `true`, `false`, INTEGER, FLOAT or STRING, found identifier | ||
- [30..33]: expecting `true`, `false`, INTEGER, FLOAT or STRING |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,5 +53,5 @@ [email protected] | |
[email protected] "}" | ||
|
||
ERRORS: | ||
- [32..39]: expecting `true`, `false`, INTEGER, FLOAT or STRING, found `strings` | ||
- [44..47]: expecting `:`, found identifier | ||
- [32..39]: expecting `true`, `false`, INTEGER, FLOAT or STRING | ||
- [44..47]: expecting `:` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,5 +75,5 @@ [email protected] | |
[email protected] "}" | ||
|
||
ERRORS: | ||
- [36..39]: expecting pattern modifier, pattern identifier or `condition`, found identifier | ||
- [107..108]: expecting STRING, found `)` | ||
- [36..39]: expecting pattern modifier, pattern identifier or `condition` | ||
- [107..108]: expecting STRING |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,4 +35,4 @@ [email protected] | |
[email protected] "}" | ||
|
||
ERRORS: | ||
- [37..46]: expecting `[`, BYTE, `(` or `}`, found `condition` | ||
- [37..46]: expecting `[`, BYTE, `(` or `}` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,4 +42,4 @@ [email protected] | |
[email protected] "}" | ||
|
||
ERRORS: | ||
- [50..59]: expecting `[`, BYTE, `(` or `}`, found `condition` | ||
- [50..59]: expecting `[`, BYTE, `(` or `}` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,4 +47,4 @@ [email protected] | |
[email protected] "}" | ||
|
||
ERRORS: | ||
- [47..50]: expecting STRING, regexp or `{`, found identifier | ||
- [47..50]: expecting STRING, regexp or `{` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,4 @@ [email protected] | |
[email protected] "}" | ||
|
||
ERRORS: | ||
- [12..13]: expecting identifier, found `{` | ||
- [12..13]: expecting identifier |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,4 @@ [email protected] | |
[email protected] "}" | ||
|
||
ERRORS: | ||
- [10..11]: expecting `:` or `{`, found `=` | ||
- [10..11]: expecting `:` or `{` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,4 +25,4 @@ [email protected] | |
[email protected] "}" | ||
|
||
ERRORS: | ||
- [12..13]: expecting identifier, found `=` | ||
- [12..13]: expecting identifier |