Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[[FIX]] Correct behavior of
singleGroups
Parsing logic can generally infer if the current token begins an expression by referencing the `left` property of the previous token. The `singleGroups` option relies on this behavior in order to recognize situations where operator binding power makes the grouping operator necessary. Parsing of the "addition" operator should be made consistent with the other infix operators: the token's `left` property should be set *prior to* parsing the right-hand-side expression.
- Loading branch information
1 parent
2dc713a
commit 6003c83
Showing
2 changed files
with
9 additions
and
5 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