Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an error message about known reserved words (#322)
- Loading branch information
1 parent
f9087d3
commit cbd2f97
Showing
5 changed files
with
26 additions
and
2 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
2 changes: 1 addition & 1 deletion
2
testsuite/escript/errors/errors004-reserved-word-as-argument-name.err2
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 +1 @@ | ||
errors004-reserved-word-as-argument-name.src:3:13: error: extraneous input 'downto' expecting {'unused', ')', IDENTIFIER} | ||
errors004-reserved-word-as-argument-name.src:3:13: error: Did not expect reserved word 'downto' in this context. |
1 change: 1 addition & 0 deletions
1
testsuite/escript/errors/errors010-reserved-word-syntax-error.err1
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 @@ | ||
Non-identifier declared as a variable: 'is' |
1 change: 1 addition & 0 deletions
1
testsuite/escript/errors/errors010-reserved-word-syntax-error.err2
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 @@ | ||
errors010-reserved-word-syntax-error.src:1:5: error: Did not expect reserved word 'is' in this context. |
2 changes: 2 additions & 0 deletions
2
testsuite/escript/errors/errors010-reserved-word-syntax-error.src
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,2 @@ | ||
var is := 1; | ||
print("the value is " + is); |