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
Rakudo stores a grammar in $/ after .parse #648
Comments
From @masakr35957: $ perl6 -e 'grammar G { regex TOP { ^ } }; G.parse(""); say $/.WHAT; What I usually expect in $/ is a Match object that I can query for |
From @masakOn Sat Jan 24 08:42:32 2009, masak wrote:
Turns out this isn't .parse-specific: $ perl6 -e 'grammar G { regex TOP { ^ <token>* $ }; regex token { <foo> I'd like for these to be Match objects, as well. |
@masak - Status changed from 'new' to 'open' |
From @pmichaudNow fixed in 0bbdb57: $ ./perl6 -e 'grammar G { regex TOP { ^ }; }; G.parse(""); say $/ ~~ Match' Note that in PGE (and Rakudo), Grammar objects are subclasses of Match Thanks! Pm |
@pmichaud - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#62704 (status was 'resolved')
Searchable as RT62704$
The text was updated successfully, but these errors were encountered: