Browse code

Improved error message for unrecognised token

Andrew Alderwick authored on 20/10/2021 16:35:41
Showing 2 changed files
... ...
@@ -51,7 +51,7 @@ expect_failure 'Address outside range: ,hello' <<'EOD'
51 51
 |1000 @hello
52 52
 |2000 ,hello
53 53
 EOD
54
-expect_failure 'Label not found: hello' <<'EOD'
54
+expect_failure 'Unrecognised token: hello' <<'EOD'
55 55
 hello
56 56
 EOD
57 57
 expect_failure 'Macro already exists: %me' <<'EOD'
... ...
@@ -790,7 +790,7 @@ include projects/library/heap.tal
790 790
 	JMP2r
791 791
 
792 792
 	&not-include
793
-	;asma-msg-label ;asma/error STA2
793
+	;asma-msg-token ;asma/error STA2
794 794
 	JMP2r
795 795
 
796 796
 	&too-deep
... ...
@@ -813,6 +813,7 @@ include projects/library/heap.tal
813 813
 @asma-msg-zero-page "Address 20 "not 20 "in 20 "zero 20 "page 00
814 814
 @asma-msg-relative  "Address 20 "outside 20 "range 00
815 815
 @asma-msg-label     "Label 20 "not 20 "found 00
816
+@asma-msg-token     "Unrecognised 20 "token 00
816 817
 @asma-msg-macro     "Macro 20 "already 20 "exists 00
817 818
 @asma-msg-rewound   "Memory 20 "overwrite 00
818 819
 @asma-msg-too-deep  "Recursion 20 "level 20 "too 20 "deep 00