forked from gbdev/rgbds
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use more verbose syntax error messages
Fixes the long-standing gbdev#385
- Loading branch information
Showing
7 changed files
with
142 additions
and
90 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
ERROR: block-comment-termination-error.asm(1): | ||
Unterminated block comment | ||
ERROR: block-comment-termination-error.asm(1): | ||
syntax error | ||
syntax error, unexpected newline | ||
error: Assembly aborted (2 errors)! |
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 |
---|---|---|
|
@@ -41,5 +41,5 @@ ENDM | |
test_char @ | ||
test_char # | ||
|
||
test_char . | ||
test_char : | ||
test_char . |
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,7 +1,17 @@ | ||
ERROR: label-macro-arg.asm(44) -> label-macro-arg.asm::test_char(31): | ||
Local label 'sizeof_.something' in main scope | ||
Label "sizeof_" created outside of a SECTION | ||
while expanding symbol "VAR_DEF" | ||
ERROR: label-macro-arg.asm(44) -> label-macro-arg.asm::test_char(31): | ||
syntax error | ||
Macro "something" not defined | ||
ERROR: label-macro-arg.asm(44) -> label-macro-arg.asm::test_char(32): | ||
'sizeof_' already defined at label-macro-arg.asm(44) -> label-macro-arg.asm::test_char(31) | ||
ERROR: label-macro-arg.asm(44) -> label-macro-arg.asm::test_char(32): | ||
Macro "something" not defined | ||
ERROR: label-macro-arg.asm(44) -> label-macro-arg.asm::test_char(35): | ||
Print types are exactly 1 character long | ||
ERROR: label-macro-arg.asm(44) -> label-macro-arg.asm::test_char(35): | ||
Interpolated symbol "something" does not exist | ||
ERROR: label-macro-arg.asm(45) -> label-macro-arg.asm::test_char(31): | ||
syntax error, unexpected = | ||
while expanding symbol "VAR_DEF" | ||
error: Assembly aborted (2 errors)! | ||
error: Assembly aborted (7 errors)! |
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 |
---|---|---|
|
@@ -5,3 +5,4 @@ $8 | |
sizeof__something equals $1 | ||
sizeof_@something equals $1 | ||
sizeof_#something equals $1 | ||
sizeof_:something equals |