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 > > .local int c > .local str s > > and then > > c = ord(s) > > or > > ord(c, s) > > in my .imc file, neither works. Do I need to do magic to > use any old op I want?
Uhh... I may be misunderstanding the question, but you should be able to use assembler syntax, eg. ord c, s That works for me. Luke > > Regards, > > -- Gregor > > On Sun, 2003-10-12 at 11:42, Leopold Toetsch wrote: > > 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 stuff features and more into it, but this is not the > > goal. The assembler syntax should be simple and easy to generate from > > HLL compilers. It should of course have support for all the features of > > the underlying CPU (parrot), but not much more. > > You are AFAIK generating PIR files by perl, so just spit out > > the function call, that's it. > > > > leo > -- > Gregor Purdy [EMAIL PROTECTED] > Focus Research, Inc. http://www.focusresearch.com/