Almost hello world
This commit is contained in:
12
samples/hello.brc
Normal file
12
samples/hello.brc
Normal file
@@ -0,0 +1,12 @@
|
||||
@extern putchar fun: character sint32 -> sint32
|
||||
|
||||
main fun -> sint32
|
||||
text data<sint32> <- "Hello string!\n"
|
||||
|
||||
rep i sint32 <- 0, i < 14:
|
||||
putchar(text[i])
|
||||
i <- i + 1
|
||||
;
|
||||
|
||||
ret 0
|
||||
;
|
||||
Reference in New Issue
Block a user