...
This commit is contained in:
@@ -2,24 +2,11 @@ module main
|
||||
|
||||
extern func puts(text: ^u8)
|
||||
|
||||
export func print(text: string) {
|
||||
puts(text.ptr)
|
||||
}
|
||||
|
||||
enum Message {
|
||||
Tell: string
|
||||
}
|
||||
|
||||
func main(): i32 {
|
||||
let x = "test"
|
||||
core::println("Hello, world!")
|
||||
|
||||
let y = {
|
||||
abc = x
|
||||
}
|
||||
|
||||
let a: Message = enum Message::Tell x
|
||||
|
||||
core::print(x)
|
||||
let file = file::read_text("file.nub")
|
||||
puts(file)
|
||||
|
||||
return 0
|
||||
}
|
||||
Reference in New Issue
Block a user