Newsgroups: perl.perl6.language
From: d...@perl.it (Aldo Calpini)
Date: Wed, 09 Jun 2004 16:17:33 +0200
Local: Wed, Jun 9 2004 10:17 am
Subject: simple grammar example
hello gentlemen,
I'm preparing a talk about Perl6 for the Italian Perl Workshop, and I so I ask your assistance in helping me putting up a simple, yet I've taken this bison example (an RPN calculator, stripped down version input: /* empty */ line: '\n' exp: NUM and this is my attempt at a "port" to Perl6: grammar RPN { rule NUM { \d+ } # could be more complex, I know :-) if $data ~~ RPN.input { say "valid RPN data" } am I missing something obvious here? will the above code work in Perl6? cheers, You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||