add examples back
This commit is contained in:
parent
718dfb7986
commit
a8f6b2dfdf
2 changed files with 26 additions and 0 deletions
4
examples/helloworld.isbpl
Normal file
4
examples/helloworld.isbpl
Normal file
|
@ -0,0 +1,4 @@
|
|||
func main {
|
||||
"Hello World!\n" puts
|
||||
0
|
||||
}
|
22
examples/helloworldgen.isbpl
Normal file
22
examples/helloworldgen.isbpl
Normal file
|
@ -0,0 +1,22 @@
|
|||
"#stream.isbpl" include
|
||||
|
||||
func main {
|
||||
pop
|
||||
def id "helloworld.isbpl" STREAM.create.file.out stream =id
|
||||
def s "func main {\n \"Hello World!\\n\" puts\n 0\n}" _array =s
|
||||
|
||||
def i 0 =i
|
||||
while { i s alen lt } {
|
||||
( s i aget ) id STREAM.write stream
|
||||
i inc
|
||||
}
|
||||
|
||||
id STREAM.close stream
|
||||
|
||||
"Testing: \n" struppercase puts
|
||||
"helloworld.isbpl" include
|
||||
main pop
|
||||
"TEST DONE\n" strlowercase puts
|
||||
|
||||
0
|
||||
}
|
Loading…
Reference in a new issue