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.
16 lines
272 B
Plaintext
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];
|
|
}
|