SmaCC Question

John Brant brant at
Mon May 24 01:26:46 UTC 2004

Colin Putney said:

> So in theory I should be able to replace this production rule:
> Node: <token> NonTerminal1 NonTerminal2 {self doSomethingWith: '1' and:
>  '2' and: '3'};
> with this one:
> Node: <token> NonTerminal1 NonTerminal2 {doSomething:};
> But this causes a parse error in the grammar. Looking around in the
> parser generator source, I can't see any code that would handle the
> second case above.

Try using {#doSomething:}.

John Brant

More information about the Squeak-dev mailing list