Here be dragons! Branch tt761_keys_revamp merged to trunk.
François Perrad
francois.perrad at gadz.org
Fri Jul 17 22:20:24 UTC 2009
2009/7/17 Vasily Chekalkin <bacek at bacek.com>:
> François Perrad wrote:
>>
>> * Lua
>> Cannot find the attribute 'past' (Lua::Grammar::top on node
>> Hash) that you asked for.
>> it's a message from TGE
>
> Ok. I can't figure out why it's failing... I'll try to grok Lua later today.
>
I've understood what happens.
I use the method 'find_key' of 'PGE::Match' without argument,
so it gives me the first element.
Previously, with the following example, I always obtain the expected
answer 'number'
<expr> => PMC 'Lua;Grammar' => "1.\n" @ 4 {
<type> => "term:"
<top> => Hash {
"assoc" => "left",
"expect" => 513,
"match" => "PGE::Match",
"name" => "term:",
"parsed" => PMC 'Sub' { ... },
"precclose" => "=",
"precedence" => \parse[0][0][0]["precclose"],
"syncat" => 16
}
<number> => PMC 'Lua;Grammar' => "1." @ 4
}
Note: members 'type' & 'top' are specific for optable.
I know how fix it in Lua.
François.
> --
> Bacek
>
>
More information about the parrot-dev
mailing list