1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
enum bar
{
bar = 1
};
typedef int foo;
struct foo
{
int foo : bar;
int bar;
int def;
};
// TODO: make parser accept commented lines
static int xyz(int foo)
{
int bar = 0;
// foo = bar + 1;
// return foo + bar;
}
static foo abc(foo foo)
{
// return foo + bar;
}
typedef foo def;
int main(void)
{
foo foo = abc(42);
int abc = bar;
// struct foo bar = { bar: 0, foo: foo, def: abc };
// foo += bar.def + bar.foo;
// return foo + bar.bar + xyz(foo);
}
|