develooper Front page | perl.perl6.language | Postings from June 2006

Re: grammar: difference between rule, token and regex

Thread Next
jerry gay
June 2, 2006 13:58
Re: grammar: difference between rule, token and regex
Message ID:
On 6/2/06, Rene Hangstrup Møller <> wrote:
> Hi
> I am toying around with Parrot and the compiler tools. The documenation
> of Perl 6 grammars that I have been able to find only describe rule. But
> the grammars in Parrot 0.4.4 for punie and APL use rule, token and regex
> elements.
> Can someone please clarify the difference between these three types, and
> when you should use one or the other?
i'm forwarding this to p6l, as it's a language question and probably
best asked there. that said, the regex/token/rule change is a recent
one, and is documented in S05

in particular, see the "Regexes really are regexes now" section, which
describes the differences. also, there are some recent threads on p6l
with regard to this topic, which you may find enlightening. you can
find these via google groups, or some other nntp archive.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About