-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes object literal and block ambiguity
- Follows the requirements in 12.4 - Additions to the grammar test suite. - Repairs older grammar tests and adds a test-grammar to the Makefile. - All the examples from the WAT talk should now work as expected (well, according to spec. They're not really what I'd call expected ;)
- Loading branch information
1 parent
f88c754
commit 197a6ee
Showing
11 changed files
with
115 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
source list | ||
expression statement | ||
expression (unary prefix) | ||
+ | ||
object | ||
source list | ||
block |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
source list | ||
expression statement | ||
expression (unary prefix) | ||
+ | ||
array literal | ||
source list | ||
block |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
source list | ||
expression statement | ||
expression (binary) | ||
+ | ||
array literal | ||
object |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
statement list | ||
source list | ||
expression statement | ||
expression | ||
expression (binary) | ||
+ | ||
number (2.000000) | ||
number (2.000000) |
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 |
---|---|---|
@@ -1,21 +1,21 @@ | ||
statement list | ||
source list | ||
expression statement | ||
expression | ||
expression (binary) | ||
+ | ||
expression | ||
expression (binary) | ||
* | ||
expression | ||
expression (binary) | ||
% | ||
number (6.000000) | ||
expression | ||
expression (binary) | ||
- | ||
number (12.000000) | ||
expression | ||
expression (binary) | ||
* | ||
number (2.000000) | ||
number (7.000000) | ||
number (3.000000) | ||
expression | ||
expression (binary) | ||
/ | ||
number (9.000000) | ||
number (1.000000) |
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