srottak has left a new comment on your post "Episode 3: Squaak Details
and First Steps":
Ok, I have 2 grammars:
grammar test::Grammar is PCT::Grammar;
rule TOP {
<foo>*
[ $ || <panic: 'Syntax error'> ]
{*}
}
rule foo {
'hello'
{*}
}
and
grammar test::Grammar is PCT::Grammar;
rule TOP {
<expression>*
[ $ || <panic: 'Syntax error'> ]
{*}
}
rule expression {
'hello'
{*}
}
Both grammars are ok, when I run parrot test.pbc and enter hello, the
first grammar(with foo) accepts the input hello, the second one
../../parrot test.pbc
> hello
too few arguments passed (2) - 3 params expected
I have up to date Parrot from svn.
Posted by srottak to Parrot at December 6, 2008 10:34 AM