mirror of
https://github.com/anoma/juvix.git
synced 2024-11-30 05:42:26 +03:00
ed15e57d8a
* Closes #2578 * Implements JuvixReg parser and pretty printer. * Adds the `juvix dev reg read file.jvr` command. * Adds the `reg` target to the `compile` commands. * Adds tests for the JuvixReg parser.
22 lines
267 B
Plaintext
22 lines
267 B
Plaintext
|
|
function main() : *;
|
|
|
|
function main() : * {
|
|
tmp[0] = 1;
|
|
trace tmp[0];
|
|
tmp[1] = 2;
|
|
trace tmp[1];
|
|
trace tmp[1];
|
|
tmp[2] = "seven";
|
|
trace tmp[2];
|
|
nop;
|
|
nop;
|
|
nop;
|
|
tmp[0] = unit;
|
|
trace tmp[0];
|
|
nop;
|
|
tmp[0] = void;
|
|
trace tmp[0];
|
|
ret tmp[0];
|
|
}
|