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:
marcobaye 2020-06-13 23:12:06 +00:00
parent 4643e841f9
commit 1199c75025
8 changed files with 28 additions and 4 deletions

View File

@ -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.

View File

@ -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)

View File

@ -0,0 +1,2 @@
;ACME 0.96.5
label+2 = [1, 2, 3]

View File

@ -0,0 +1,2 @@
;ACME 0.96.5
!set label+2 = [1, 2, 3]

View File

@ -0,0 +1,4 @@
;ACME 0.96.5
a = 3
b = a ; read a
!set a+2 = 5 ; -> "too late for postfix"

View File

@ -0,0 +1,6 @@
;ACME 0.96.5
a = 3
b = a ; read a
!for a+2, 3, 4 { ; -> "too late for postfix"
;
}

View File

@ -0,0 +1,4 @@
;ACME 0.96.5
a+1 = 3
b = a ; read a
!set a+2 = 5 ; -> "too late for postfix"

View 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"
;
}