Phrase parsing is out of scope for this branch. It will be implemented at the same time as function parsing.
53 lines
1.0 KiB
Plaintext
53 lines
1.0 KiB
Plaintext
:arf
|
|
---
|
|
|
|
data wr integer:Int 3202
|
|
|
|
data wr mutInteger:Int:mut 3202
|
|
|
|
data wr integerPointer:{Int}
|
|
|
|
data wr mutIntegerPointer:{Int}:mut
|
|
|
|
data wr integerArray16:{Int 16}
|
|
|
|
data wr integerArrayVariable:{Int ..}
|
|
|
|
data wr integerArrayInitialized:{Int 16}
|
|
3948 293 293049 948 912
|
|
340 0 2304 0 4785 92
|
|
|
|
# TODO: reinstate these two after phrase parsing is implemented
|
|
# data wr integerPointerInit:{Int} [& integer]
|
|
|
|
# data wr mutIntegerPointerInit:{Int}:mut [& integer]
|
|
|
|
data wr object:Obj
|
|
.this 324
|
|
.that 2139
|
|
|
|
data wr nestedObject:Obj
|
|
.this
|
|
.bird0 324
|
|
.bird1 "hello world"
|
|
.that
|
|
.bird2 123.8439
|
|
.bird3 9328.21348239
|
|
|
|
|
|
# func rr main
|
|
# ---
|
|
# # TODO: set should be a special case, checking under itself for object
|
|
# member initialization args. it should also check for args in general
|
|
# under there which should be treated as array initialization args.
|
|
# basically, under a set phrase, it should do the same checks that it
|
|
# does under a data section.
|
|
#
|
|
# [set object:Obj]
|
|
# .this 324
|
|
# .that 2139
|
|
#
|
|
# set object:Obj
|
|
# .this 324
|
|
# .that 2139
|