PCC and IMC

2003-10-12 Thread Gregor N. Purdy
Is there any good reason why prototyped PCC subs shouldn't be callable with IMC syntax that looks like a macro call, without having to make a macro wrapper manually? (I know its not the way it works now, but you can almost simulate it with a PCC sub def and a macro, and it seems to me it would be

Re: PCC and IMC

2003-10-12 Thread Melvin Smith
I was already talking to Leo offline a bit about refactoring some of the IMCC syntax. We have incrementally added some features at different times that could be handled with a more compact syntax if we rework it. 1) Combine .pcc_sub and .sub and go back to using the single keyword .sub. *This

Re: PCC and IMC

2003-10-12 Thread Leopold Toetsch
Gregor N. Purdy [EMAIL PROTECTED] wrote: Is there any good reason why prototyped PCC subs shouldn't be callable with IMC syntax that looks like a macro call, without having to make a macro wrapper manually? Could be done, but for sure unlikely. PASM/PIR are still assembler languages. You can

Re: PCC and IMC

2003-10-12 Thread Gregor N. Purdy
Leo -- The Jako compiler spits stuff out from Perl. I'm writing some new experimental stuff in PIR directly. I'm curious about other stuff, too. I don't see any of the languages/imcc/t/**/*.t files doing anything with the ord op, and when I try to use it as .local int c .local str s and

Re: PCC and IMC

2003-10-12 Thread Luke Palmer
Gregor N. Purdy writes: Leo -- The Jako compiler spits stuff out from Perl. I'm writing some new experimental stuff in PIR directly. I'm curious about other stuff, too. I don't see any of the languages/imcc/t/**/*.t files doing anything with the ord op, and when I try to use it as

Re: PCC and IMC

2003-10-12 Thread Gregor N. Purdy
Luke -- Yeah. That falls into the duh category, I guess. But, I'm still having some trouble: .pcc_sub _consume_string prototyped .param str input .local int c .local int test .local Sub __char_is_white_space newsub __char_is_white_space, .Sub, _char_is_white_space .local Sub

Re: PCC and IMC

2003-10-12 Thread Luke Palmer
Gregor N. Purdy writes: Luke -- Yeah. That falls into the duh category, I guess. But, I'm still having some trouble: .pcc_sub _consume_string prototyped .param str input .param string input Now the error makes sense. .local int c .local int test .local Sub

Re: PCC and IMC

2003-10-12 Thread Leopold Toetsch
Gregor N. Purdy [EMAIL PROTECTED] wrote: .local str s a lot of problems you have (and Luke already hinted at that) seems to be the syntax of .sym (or .local) - I prefer .sym because .local is used for local macro lables too hysterically. So we have: .sym int I_REG .sym