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...
Branch: refs/heads/master
Home: https://github.com/perl6/specs
Commit: eac99e23ec9416e07735c16f948d11c5397ea62d
https://github.com/perl6/specs/commit/eac99e23ec9416e07735c16f948d11c5397ea62d
Author: Stéphane Payrard
Date: 2013-03-25 (Mon, 25 Mar 2013)
Changed paths:
M S
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
If I give the module (SalesReport.pm6) and the grammar declared in it (grammar
SalesReport) the same name, I get a
"no such method 'parsefile' for invocant of type 'SalesReport'" error, when
the following lines are run:
use lib '.';
use SalesReport;
my $parsed = SalesReport.parsefile('sale
Hello,
I have created a file called SalesReport.mp6, which contains a grammar
-
module SalesReport;
grammar SalesExportGram is export {
token TOP { ^ + $ }
token country {
\n
+