mirror of
https://github.com/uffejakobsen/acme.git
synced 2026-04-25 07:16:44 +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:
+2
-2
@@ -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)
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
;ACME 0.96.5
|
||||
label+2 = [1, 2, 3]
|
||||
@@ -0,0 +1,2 @@
|
||||
;ACME 0.96.5
|
||||
!set label+2 = [1, 2, 3]
|
||||
@@ -0,0 +1,4 @@
|
||||
;ACME 0.96.5
|
||||
a = 3
|
||||
b = a ; read a
|
||||
!set a+2 = 5 ; -> "too late for postfix"
|
||||
@@ -0,0 +1,6 @@
|
||||
;ACME 0.96.5
|
||||
a = 3
|
||||
b = a ; read a
|
||||
!for a+2, 3, 4 { ; -> "too late for postfix"
|
||||
;
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
;ACME 0.96.5
|
||||
a+1 = 3
|
||||
b = a ; read a
|
||||
!set a+2 = 5 ; -> "too late for postfix"
|
||||
@@ -0,0 +1,6 @@
|
||||
;ACME 0.96.5
|
||||
a+1 = 3
|
||||
b = a ; read a
|
||||
!for a+2, 3, 4 { ; -> "too late for postfix"
|
||||
;
|
||||
}
|
||||
Reference in New Issue
Block a user