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
Calling a token 'any' calls for trouble #2083
Comments
From @moritz22:39 < moritz_> rakudo: grammar A { token TOP { <any> }; token any { |
From @cokeNo change in the past year. -- |
@coke - Status changed from 'new' to 'open' |
From @moritzThe problem is that the $*ACTIONS contextual is set to a type object commit 0973612366de17d6eab26e975663e63170e5d1d5 eased some of the pain |
From @MouqOn Thu Oct 18 02:13:15 2012, moritz wrote:
00:11 <Mouq> r: grammar A { token TOP { <any> }; token any { 'foo' | 'bar' } }; say A.parse('foo') Closeable with tests |
From @moritzOn 04/14/2014 06:11 AM, Alexander Moquin via RT wrote:
The problem can still be reproduced with method names from class Mu, for <moritz> m: grammar A { token TOP { <so> }; token so { 'foo' | 'bar' } |
From @jdvI added a test in S05-grammar/inheritance.t but I'm unsure if |
From @moritzThe correct solution would be to track the presence or absence of an action class by an out-of-bounds mechanism, like a separate variable. I just don't know how to do that without making parsing significantly slower. |
Migrated from rt.perl.org#77350 (status was 'open')
Searchable as RT77350$
The text was updated successfully, but these errors were encountered: