-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added test for #1868 and fixed it both by changing external function …
…signatures and the internal type function signature of the generated parser functions for firstAmbiguity
- Loading branch information
1 parent
f8c3fbc
commit 3ac85d5
Showing
4 changed files
with
69 additions
and
24 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
11 changes: 11 additions & 0 deletions
11
src/org/rascalmpl/library/lang/rascal/tests/concrete/FirstAmbiguity.rsc
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,11 @@ | ||
module lang::rascal::tests::concrete::FirstAmbiguity | ||
|
||
syntax P = E; | ||
syntax E = "e" | E "+" E; | ||
|
||
import ParseTree; | ||
|
||
@issue{1868} | ||
test bool firstAmbDoesNotThrowStaticErrors() { | ||
return amb({E _,E _}) := firstAmbiguity(#P, "e+e+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