ChrisDolan has left a new comment on your post Episode 3: Squaak
Details and First Steps:
srottak: I'll bet that #57864: Calling a token text, null or ws
in Rakudo makes matching fail is the cause.
Posted by ChrisDolan to Parrot at December 7, 2008 9:10 PM
kjs has left a new comment on your post Episode 3: Squaak Details and
First Steps:
srottak: You should check the action method definitions in the
action.pm file. Please note that each {*} indicates an invocation to an
action method that has the same name as the rule in which the {*}
occurs.
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*
kjs has left a new comment on your post Episode 3: Squaak Details and
First Steps:
expression refers to the rule (or token) expression. If you declare a
rule foo, and you want to use it, you need to put the pointy brackets
around it, like foo.
Posted by kjs to Parrot at December 6, 2008 7:14
srottak has left a new comment on your post Episode 3: Squaak Details
and First Steps:
Hello, is the word expression some kind of keyword or reserved word,
because the example works only after renaming rule expression to
something else (fe. the originally generated rule value {...} works) ?