Updated example code
This commit is contained in:
parent
ea92decfe7
commit
8d3f6a8233
@ -4,6 +4,6 @@ require "io"
|
|||||||
|
|
||||||
func ro main
|
func ro main
|
||||||
> arguments:{String ..}
|
> arguments:{String ..}
|
||||||
< status:Int 0
|
< status:Int:<0>
|
||||||
---
|
---
|
||||||
io.println "hello world"
|
io.println "hello world"
|
||||||
|
@ -5,18 +5,18 @@ require "io"
|
|||||||
---
|
---
|
||||||
|
|
||||||
# this is a global variable
|
# this is a global variable
|
||||||
data pv helloText:String "Hello, world!"
|
data pv helloText:String:<"Hello, world!">
|
||||||
|
|
||||||
# this is a struct definition
|
# this is a struct definition
|
||||||
objt ro Greeter:Obj
|
type ro Greeter:Obj:(
|
||||||
rw text:String "Hi."
|
.rw text:String:<"Hi.">)
|
||||||
|
|
||||||
# this is a function
|
# this is a function
|
||||||
func ro main
|
func ro main
|
||||||
> arguments:{String ..}
|
> arguments:{String ..}
|
||||||
< status:Int 0
|
< status:Int:<0>
|
||||||
---
|
---
|
||||||
= greeter:Greeter:mut
|
let greeter:Greeter:mut
|
||||||
greeter.setText helloText
|
greeter.setText helloText
|
||||||
greeter.greet
|
greeter.greet
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user