Hi,

I have been adding a PIR implementation and three 'Hello World' tests to
'languages/parrot_compiler'.
Code is taken from STDIN, compiled by a builtin compiler, and the resulting
Eval PMC
is invoked. This works as expected for PASM and PIR.

For PAST, Parrot abstract syntax tree as simple text, I get behavior that I
don't understand:

  cd languages/parrot_compiler/
  make
  make test
  cd ../../
  ./parrot languages/parrot_compiler/parrot_compiler.imc --language=PAST <
languages/parrot_compiler/t/basic/hello_3.code
  ./parrot languages/parrot_compiler/parrot_compiler.pbc --language=PAST <
languages/parrot_compiler/t/basic/hello_3.code

Calling 'parrot_compiler.imc' gives the expected result "Hello Pirate".
Calling 'parrot_compiler.pbc' seems to print the generated PASM code. It
looks like
the compiled sub knows whether it is being rum by PIR or by PBC.

Is that that the intended behavior?

CU, Bernhard  
 

-- 
/* [EMAIL PROTECTED] */

SMS bei wichtigen e-mails und Ihre Gedanken sind frei ...
Alle Infos zur SMS-Benachrichtigung: http://www.gmx.net/de/go/sms

Reply via email to