On Mon, Mar 25, 2013 at 11:01 AM, wrote:
> grammar SalesExportGram is export {
(...)
> my $parsed = SalesReportGram.parsefile('sales_report.txt');
>
Might help if you used the same name in both places?
--
brandon s allbery kf8nh sine nomine associates
allber...
On Mon, Mar 25, 2013 at 11:01 AM, wrote:
> I have created a file called SalesReport.mp6, which contains a grammar
>
> module SalesReport;
> grammar SalesExportGram is export {
Aiui you can now use this module to introduce SalesReport as
a module name and SalesExportGram as a grammar name
ort;
my $parsed = SalesReport.parsefile('sales_report.txt');
- Mail original -
De: "Brandon Allbery"
À: phi...@free.fr
Cc: perl6-language@perl.org
Envoyé: Lundi 25 Mars 2013 16:08:14
Objet: Re: Problem using a module containing a grammar
On Mon, Mar 25, 2013 at 11:01
Hello,
I have created a file called SalesReport.mp6, which contains a grammar
-
module SalesReport;
grammar SalesExportGram is export {
token TOP { ^ + $ }
token country {
\n
+