... | ... |
@@ -10,6 +10,7 @@ expect_failure() { |
10 | 10 |
if ! grep -qF "${1}" asma-test/asma.log; then |
11 | 11 |
echo "error: asma didn't report error ${1} in faulty code" |
12 | 12 |
cat asma-test/asma.log |
13 |
+ exit 1 |
|
13 | 14 |
fi |
14 | 15 |
} |
15 | 16 |
|
... | ... |
@@ -94,5 +95,8 @@ EOD |
94 | 95 |
expect_failure 'Label not found: .blah' <<'EOD' |
95 | 96 |
|1000 .blah |
96 | 97 |
EOD |
98 |
+expect_failure "Unrecognised token: 'a" <<'EOD' |
|
99 |
+|1000 'a |
|
100 |
+EOD |
|
97 | 101 |
echo 'All OK' |
98 | 102 |
|
... | ... |
@@ -735,10 +735,6 @@ |
735 | 735 |
&valid |
736 | 736 |
;asma-advance-addr JMP2 ( tail call ) |
737 | 737 |
|
738 |
-@asma-raw-char |
|
739 |
- ;asma/token LDA2 LDA |
|
740 |
- ;asma-write-byte JMP2 ( tail call ) |
|
741 |
- |
|
742 | 738 |
@asma-raw-word |
743 | 739 |
;asma/token LDA2 |
744 | 740 |
|
... | ... |
@@ -962,8 +958,7 @@ |
962 | 958 |
&24 :&23 :&25 "$ 00 :asma-pad-relative |
963 | 959 |
&25 $2 $2 "% 00 :asma-macro-define |
964 | 960 |
&26 :&24 :&29 26 00 ( & ) :asma-sublabel-define |
965 |
- &27 $2 $2 "' 00 :asma-raw-char |
|
966 |
- &28 :&27 $2 "( 00 :asma-comment-start |
|
961 |
+ &28 $2 $2 "( 00 :asma-comment-start |
|
967 | 962 |
&29 :&28 :&2c ") 00 :asma-comment-end |
968 | 963 |
&2c $2 $2 ", 00 :asma-literal-rel-addr |
969 | 964 |
&_entry :&26 :&7b ". 00 :asma-literal-zero-addr |