Playing with indented-expressions, and using them to represent c code.
input:
include-lib "stdio.h"
def main
printf "hello, world\n"
output:
#include <stdio.h>
void
main(void)
{
printf("hello, world\n");
}
def main(argc int, argv **char) int
var a int double(10)
return a
def double(n int) int
return n * 2
include-lib "stdio.h"
def main(argc int, argv **char) int
print "hello = {:hello d}, num = {10 d}, float = {3.6 2.2f}\n"
println "goodbye = {:goodbye d}"
unique enums
include-lib "stdio.h"
def main(argc int, argv **char) int
var poop toco_keyword :poop
println "{poop =d}"