New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
grammar not behaving as class #70
Comments
From @cognominal# grammars don't behave as regular classes. class B {}; say B.WHAT; say 'a' ~~ A.a; # ==> Method 'a' not found for non-object -- |
From @cognominalrunning the code with --target=pir, I see that the 'token a' regex -- |
From @jnthnStéphane Payrard wrote:
As far as I'm aware, the grammar keyword isn't properly implemented yet Jonathan |
The RT System itself - Status changed from 'new' to 'open' |
From @cognominalOn Thu, Apr 17, 2008 at 10:20 PM, Jonathan Worthington via RT
There is not much missing. The following patch already gets .WHAT to work. grammar A { token aa { baba } }; say A.WHAT; Index: languages/perl6/src/parser/actions.pm--- languages/perl6/src/parser/actions.pm (revision 27021) # If it's a class... - if $<sym> eq 'class' { -- |
From @jnthnHi, I've now made grammars a whole lot more class like. They get So I think the issues this ticket wanted to have addressed have been Thanks! Jonathan |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#53018 (status was 'resolved')
Searchable as RT53018$
The text was updated successfully, but these errors were encountered: