june / V2 IR Snippet
0 likes
0 forks
1 files
Last active 4 hours ago
An example of V2's intermediate representation.
| 1 | { |
| 2 | "foo": [ |
| 3 | { |
| 4 | "conditions": [ |
| 5 | { |
| 6 | "stack": "bar", |
| 7 | "pattern": [ |
| 8 | { |
| 9 | "type": "variable", |
| 10 | "symbol": "baz" |
june / Quad Store w/ Arrays
0 likes
0 forks
1 files
Last active 1 month ago
A definition of a quad store, and an example defining arrays.
| 1 | ||:: foo @ 0 = 10 |
| 2 | :: foo @ 1 = 20 |
| 3 | :: foo @ 2 = 30 |
| 4 | :: foo @ 0 |
| 5 | :: foo @ * |
| 6 | |
| 7 | |:: $name @ *? :found: array $name $index $value| |
| 8 | :values: $value |
| 9 | |:: $name @ * :empty:| |
| 10 | |:: $name @ *?| |
Newer
Older