On Mon, Feb 06, 2006 at 08:50:02AM +0800, Audrey Tang wrote: > On 2/6/06, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > > On Sun, Feb 05, 2006 at 11:34:33AM +0800, Audrey Tang wrote: > > > That seems to be a fatal error at PGE's side: > > > > > > $ echo 'rule $x:=[]' | parrot demo.pir > > > error:imcc:syntax error, unexpected ']' > > > in file 'EVAL_2' line 79 > > > > I've now updated PGE (r11427) so that it provides a more > > useful exception: > > > > p6rule parse error: Term expected at offset 5, found ']' > > Er, what about the originally reported bug though. :-) > > $ echo 'rule $x:=[x]' | parrot demo.pir > error:imcc:syntax error, unexpected ']' > in file 'EVAL_2' line 79
Sorry about that, I mis-interpreted the bug you were seeking to resolve. PGE doesn't yet handle aliases into scalar variables (as it's not quite certain where to put the capture results anyway), so it's having trouble figuring out where to stick the capture results. However, I'll see if I can at least get PGE to parse simple scalars and throw the capture somewhere for the time being, at least until I have a better handle on how Perl scalars will be stored in Parrot. Thanks! Pm