This is what I have currently in my working copy of imcc. I think this does
what we want for getting started.
.class MyClass
.field int i
.field int j
.field string s
.method foo
.endclass
.sub _main
print "main\n"
end
.end
.method MyClass::foo
print "MyClass::foo\n"
.end
Dan, I know your example used .member, but I feel like there is
value in separating them into .field and .method. For one, some
high level languages might allow data members and methods with
the same name.
-Melvin