I'm working on parameters for Pynie. (functions are working! see my
latest patch, still pending)
I have some trouble with the tree transformation for Pynie. If anybody
knows how to solve this, help would greatly be appreciated.
The problem seems to be with PAST::VarList. Now, in Pynie this VarList
node is also created for target_list, so it *does* work in that case.
In my attempt to create a varlist to store parameters, the PAST output
is ok. But, if I try to output the PIR, I get this: (the interesting
stuff is marked bold):
*C:\parrot\languages\pynie>..\..\parrot pynie.pbc --target=PIR par.py
Cannot find the attribute 'post' (PAST::VarList) that you asked for.
Method 'pir' not found*
current instr.: 'parrot;POST::Sub;pir' pc 1433 (POST/Node.pir:243)
called from Sub 'parrot;POST::Node;cpir' pc 978 (POST/Node.pir:102)
called from Sub 'parrot;POST::Sub;pir' pc 1433 (POST/Node.pir:243)
called from Sub 'parrot;POST::Compiler;compile' pc 5048
(POST/Compiler.pir:39)
called from Sub 'parrot;HLLCompiler;pir' pc 1124
(runtime\parrot\library\Parrot\HLLCompiler.pir:619)
called from Sub 'parrot;HLLCompiler;compile' pc 343
(runtime\parrot\library\Parrot\HLLCompiler.pir:248)
called from Sub 'parrot;HLLCompiler;eval' pc 500
(runtime\parrot\library\Parrot\HLLCompiler.pir:338)
called from Sub 'parrot;HLLCompiler;evalfiles' pc 800
(runtime\parrot\library\Parrot\HLLCompiler.pir:472)
called from Sub 'parrot;HLLCompiler;command_line' pc 947
(runtime\parrot\library\Parrot\HLLCompiler.pir:535)
Any ideas?
(on a side note, when creating a PAST node, the "node" parameter is
always specified. I think it has something to do with that, but not sure)
regards,
kjs