-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #991 from michaelpj/sync-before-predict
Reinstitute `sync` calls before `adaptivePredict`
- Loading branch information
Showing
13 changed files
with
280 additions
and
25 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
28 changes: 28 additions & 0 deletions
28
...sources/org/antlr/v4/test/runtime/templates/ParserErrors/SingleTokenDeletionBeforeAlt.stg
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,28 @@ | ||
TestType() ::= "Parser" | ||
|
||
Options ::= [ | ||
"Debug": false | ||
] | ||
|
||
Grammar ::= [ | ||
"T": {<grammar("T")>} | ||
] | ||
|
||
Input() ::= "ac" | ||
|
||
Rule() ::= "a" | ||
|
||
Output() ::= << | ||
>> | ||
|
||
Errors() ::= << | ||
line 1:0 extraneous input 'a' expecting {'b', 'c'}<\n> | ||
>> | ||
|
||
grammar(grammarName) ::= << | ||
grammar <grammarName>; | ||
a : ('b' | 'c') | ||
; | ||
q : 'a' | ||
; | ||
>> |
28 changes: 28 additions & 0 deletions
28
...ces/org/antlr/v4/test/runtime/templates/ParserErrors/SingleTokenDeletionBeforePredict.stg
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,28 @@ | ||
TestType() ::= "Parser" | ||
|
||
Options ::= [ | ||
"Debug": false | ||
] | ||
|
||
Grammar ::= [ | ||
"T": {<grammar("T")>} | ||
] | ||
|
||
Input() ::= "caaab" | ||
|
||
Rule() ::= "a" | ||
|
||
Output() ::= << | ||
>> | ||
|
||
Errors() ::= << | ||
line 1:0 extraneous input 'c' expecting 'a'<\n> | ||
>> | ||
|
||
grammar(grammarName) ::= << | ||
grammar <grammarName>; | ||
a : 'a'+ 'b' | ||
| 'a'+ 'c' | ||
; | ||
q : 'e' ; | ||
>> |
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 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
Oops, something went wrong.