This repository has been archived on 2024-02-27. You can view files and clone it, but cannot push or open issues or pull requests.
arf/tests/parser/data/main.arf

55 lines
1.1 KiB
Plaintext
Raw Normal View History

2022-08-14 20:38:57 -06:00
:arf
---
data ro integer:Int 3202
2022-08-14 20:38:57 -06:00
data ro mutInteger:Int:mut 3202
data ro integerPointer:{Int}
data ro mutIntegerPointer:{Int}:mut
2022-08-14 20:38:57 -06:00
data ro integerArray16:{Int 16}
2022-08-14 20:38:57 -06:00
data ro integerArrayVariable:{Int ..}
2022-08-14 20:38:57 -06:00
data ro integerArrayInitialized:{Int 16}
2022-08-14 20:38:57 -06:00
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]
2022-08-14 20:38:57 -06:00
# TODO: maybe test identifiers somewhere else?
2022-08-24 21:55:34 -06:00
data ro object:thing.thing.
thing.thing
.this 324
.that 2139
2022-08-14 20:38:57 -06:00
data ro nestedObject:Obj
.this
.bird0 324
.bird1 "hello world"
.that
.bird2 123.8439
.bird3 9328.21348239
# func ro 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