doc: add/update sample files

This commit is contained in:
2025-08-16 21:02:14 +01:00
parent 1a9debd6fb
commit 7583252b72
4 changed files with 17 additions and 5 deletions

View File

@@ -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
View 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
View File

@@ -0,0 +1,9 @@
@block [index:#1007]
br $L0004
L0004:
ret.n
@end
@block [index:#1008]
ret
@end

View File

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