[Parrot] New comment on Episode 3: Squaak Details and First Steps.

[email protected] (srottak)
Newsgroups perl.perl6.internals
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.