type-section-rework #6

Merged
sashakoshka merged 46 commits from type-section-rework into main 2022-09-17 10:36:27 -06:00
2 changed files with 6 additions and 6 deletions
Showing only changes of commit 8d3f6a8233 - Show all commits

View File

@ -4,6 +4,6 @@ require "io"
func ro main
> arguments:{String ..}
< status:Int 0
< status:Int:<0>
---
io.println "hello world"

View File

@ -5,18 +5,18 @@ require "io"
---
# this is a global variable
data pv helloText:String "Hello, world!"
data pv helloText:String:<"Hello, world!">
# this is a struct definition
objt ro Greeter:Obj
rw text:String "Hi."
type ro Greeter:Obj:(
.rw text:String:<"Hi.">)
# this is a function
func ro main
> arguments:{String ..}
< status:Int 0
< status:Int:<0>
---
= greeter:Greeter:mut
let greeter:Greeter:mut
greeter.setText helloText
greeter.greet