doc: add/update sample files
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
try
|
||||
x = 0
|
||||
--v = Int parse:'342'
|
||||
catch (#err:number_format, err) in
|
||||
catch ($err:number_format, err) in
|
||||
x = 1
|
||||
--cout put:'Cannot parse integer string ({err})'
|
||||
catch (_, err) in
|
||||
|
||||
5
doc/sample/Incorrect.im
Normal file
5
doc/sample/Incorrect.im
Normal file
@@ -0,0 +1,5 @@
|
||||
var x = "Hello, world!"
|
||||
|
||||
for i in 0 to:100 step:2 do
|
||||
cout put:'Count is {i}'
|
||||
end
|
||||
9
doc/sample/Simple.iasm
Normal file
9
doc/sample/Simple.iasm
Normal file
@@ -0,0 +1,9 @@
|
||||
@block [index:#1007]
|
||||
br $L0004
|
||||
L0004:
|
||||
ret.n
|
||||
@end
|
||||
|
||||
@block [index:#1008]
|
||||
ret
|
||||
@end
|
||||
@@ -1,5 +1,3 @@
|
||||
var x = "Hello, world!".
|
||||
var x = 2 + 255 * 3 / 63.
|
||||
|
||||
for (ch, cy) in x do
|
||||
cout put:ch
|
||||
end
|
||||
cout put:x.
|
||||
|
||||
Reference in New Issue
Block a user