Initial commit
This commit is contained in:
11
examples/tokens/general.arf
Normal file
11
examples/tokens/general.arf
Normal file
@@ -0,0 +1,11 @@
|
||||
:arf
|
||||
require io
|
||||
---
|
||||
|
||||
func rr main
|
||||
> argc:Int
|
||||
> argv:{String}
|
||||
< status:Int
|
||||
---
|
||||
io.println [io.readln]
|
||||
= status 0
|
||||
13
examples/tokens/literals.arf
Normal file
13
examples/tokens/literals.arf
Normal file
@@ -0,0 +1,13 @@
|
||||
:arf
|
||||
---
|
||||
|
||||
data:{Int 6}
|
||||
-39480 398 29 0x3AFe3 0b10001010110 0o666
|
||||
|
||||
func rr literals
|
||||
---
|
||||
= stringLiteral:String "skadjlsakdj"
|
||||
= intArrayLiteral:{Int 3} 2398
|
||||
-2938 324
|
||||
= runeLiteral:Rune 'a'
|
||||
= floatArrayLiteral:{F64 5} 3248.23 0.324 -94.29
|
||||
Reference in New Issue
Block a user