C compiler with embedded metalanguage.
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

36 lines
520 B

@{import("parsimonyLibrary/boot.mc");}
@{
l = {};
append(l, `declaration int a = 5;);
a = (`declaration int a = 5;);
append(l, `declaration int a = 5;);
l;
};
@a;
@{
t = `integer 2;
nil;
}
@(`declaration int abc = @t;);
int main() {
@a;
int b = 0;
@{
l = {};
append(l, `declaration int c = 0;);
x = (`declaration int d = 5;);
append(l, x);
if (1) {
if (1) {
x = (`declaration int d = 5;);
append(l, x);
}
}
l;
};
int e = 0;
return 0;
}