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.
 
 
 

22 lines
388 B

@{import("../src/parsimonyLibrary/boot.mc");}
@{
l = {};
append(l, `declaration int a = 5;);
append(l, `declaration int b = 2;);
l;
}
int main() {
@{
l = {};
a = (`declaration int a = 2;);
append(l, `declaration int c = 5;);
b = 5;
append(l, `declaration int d = 2;);
append(l, `statement for(int i =0; i < 10; i++) {
a = 2;
});
l;
};
}