C compiler with embedded metalanguage.
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.
 
 
 

16 lines
265 B

@{import("../src/parsimonyLibrary/boot.mc");}
@{
l = {};
append(l, `declaration int a = 0;);
a = (`declaration int b = 0;);
append(l, a);
if (1) {
append(l, `declaration int c = 0;);
} else {
append(l, `declaration int c = 1;);
}
l;
};
@a;