Class metadata for PIR/assembly files

Skip to first unread message

Melvin Smith

Oct 31, 2003, 1:18:35 AM10/31/03
to dan Sugalski,
Regrettably, this won't be committed for 0.0.12 release since it is
definitely new
feature. If I commit now Leo would probably pummel me with flaming pumpkins,
so I'm going to play nice and follow the rules.

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

.sub _main
print "main\n"

.method MyClass::foo
print "MyClass::foo\n"

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.


Reply all
Reply to author
0 new messages