1
1
mirror of https://github.com/anoma/juvix.git synced 2024-11-30 05:42:26 +03:00
juvix/tests/Reg/positive/test037.jvr
Łukasz Czajka ed15e57d8a
JuvixReg parser and pretty printer (#2617)
* 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.
2024-02-09 12:19:29 +01:00

16 lines
272 B
Plaintext

function main() : *;
function main() : * {
prealloc 514;
tmp[0] = ".\n";
tmp[1] = 20;
tmp[2] = "123";
tmp[2] = atoi tmp[2];
tmp[1] = add tmp[2] tmp[1];
tmp[1] = show tmp[1];
tmp[0] = strcat tmp[1] tmp[0];
tmp[0] = alloc write (tmp[0]);
ret tmp[0];
}