mirror of
https://github.com/uffejakobsen/acme.git
synced 2025-01-10 05:30:29 +00:00
more test programs
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@229 4df02467-bbd4-4a76-a152-e7ce94205b78
This commit is contained in:
parent
4643e841f9
commit
1199c75025
@ -316,8 +316,8 @@ Source file contains illegal character.
|
||||
Your source code file contained a null byte.
|
||||
|
||||
Symbol already defined.
|
||||
You defined a symbol that already had a different value. To change
|
||||
a symbol's value, use the "!set" pseudo opcode.
|
||||
You defined a symbol that already had a different type or value.
|
||||
To change a symbol's type or value, use the "!set" pseudo opcode.
|
||||
|
||||
Syntax error.
|
||||
Guess what - there's a syntax error.
|
||||
|
@ -1,3 +1,3 @@
|
||||
;ACME 0.96.5
|
||||
a = 3
|
||||
a = 3.0 ; -> "already defined" (type has changed)
|
||||
a = 3.1
|
||||
a = 3.0 ; -> "already defined" (value has changed)
|
||||
|
2
testing/errors/forcebit1.a
Normal file
2
testing/errors/forcebit1.a
Normal file
@ -0,0 +1,2 @@
|
||||
;ACME 0.96.5
|
||||
label+2 = [1, 2, 3]
|
2
testing/errors/forcebit2.a
Normal file
2
testing/errors/forcebit2.a
Normal file
@ -0,0 +1,2 @@
|
||||
;ACME 0.96.5
|
||||
!set label+2 = [1, 2, 3]
|
4
testing/errors/toolateforpostfix3.a
Normal file
4
testing/errors/toolateforpostfix3.a
Normal file
@ -0,0 +1,4 @@
|
||||
;ACME 0.96.5
|
||||
a = 3
|
||||
b = a ; read a
|
||||
!set a+2 = 5 ; -> "too late for postfix"
|
6
testing/errors/toolateforpostfix4.a
Normal file
6
testing/errors/toolateforpostfix4.a
Normal file
@ -0,0 +1,6 @@
|
||||
;ACME 0.96.5
|
||||
a = 3
|
||||
b = a ; read a
|
||||
!for a+2, 3, 4 { ; -> "too late for postfix"
|
||||
;
|
||||
}
|
4
testing/errors/toolateforpostfix5.a
Normal file
4
testing/errors/toolateforpostfix5.a
Normal file
@ -0,0 +1,4 @@
|
||||
;ACME 0.96.5
|
||||
a+1 = 3
|
||||
b = a ; read a
|
||||
!set a+2 = 5 ; -> "too late for postfix"
|
6
testing/errors/toolateforpostfix6.a
Normal file
6
testing/errors/toolateforpostfix6.a
Normal file
@ -0,0 +1,6 @@
|
||||
;ACME 0.96.5
|
||||
a+1 = 3
|
||||
b = a ; read a
|
||||
!for a+2, 3, 4 { ; -> "too late for postfix"
|
||||
;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user