Leopold Toetsch wrote:
> Jerome Quelin (via RT) wrote:
> >  - currently I'm just printing on stdout the resulting parrot code,
> > I lack an eval instruction in Parrot. Dan, Leo? :-)
> $ diff -ub  ~/src/parrot/languages/ook/ook.pasm ook.pasm
> --- /home/lt/src/parrot/languages/ook/ook.pasm  Wed Jan  1 01:34:16
> 2003 +++ ook.pasm    Wed Jan 15 16:41:00 2003
> @@ -101,7 +101,8 @@
>   LOOP_END:
>           le I1, I0, LOOP
>           concat S4, "\tend\n"
> -        print S4
> +        #print S4
> +       compile P1, S4, "PASM"
>           end
> $ ../imcc/imcc -r ook.pasm hello.ook
> Hello World!

Hey, I just rsync'd my parrot, applied the mini-patch above in order to 
compile the string instead of priniting it, and I got:
$ make test
/usr/bin/perl5.8.0 ../../assemble.pl ook.pasm > ook.pbc
Couldn't find operator 'compile_p_s_sc' on line 105.
../../parrot ook.pbc hello.ook > foo.pasm

$ ../imcc/imcc -r ook.pasm hello.ook
last token = [compile]
(error) line 105: parse error
Didn't create output asm.

You don't seem to have checked in the compile thing...
About the eval: you said that compile does eval here. In the future, how 
should I eval after compile?

Jerome
-- 
[EMAIL PROTECTED]

Reply via email to