small C-like programming language targeting the Uxn virtual computer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

18 lines
326 B

#include "uparse.h"
#include "uasm.h"
int main() {
UASTNode *tree = UP_parseSource(
"int a;\n"
"int b;"
"a = 8;\n"
"b = 64 / a / 2;"
"prntint a;"
"prntint b;"
);
UA_genTal(tree, fopen("bin/out.tal", "w"));
/* clean up */
UP_freeTree(tree);
return 0;
}