4 ms·
ISTM that a grammar parser is a library feature, not a language feature, per se. Any reason you couldn’t port the parser back to Perl 5 and get a similar saving
by earthboundkid 7y ago
ISTM that a grammar parser is a library feature, not a language feature, per se. Any reason you couldn’t port the parser back to Perl 5 and get a similar savings in line count?
- lizmat 7y agoIn Raku, grammars are an integral part of the language. This is necessary, as the language itself uses a grammar to compile Raku code.
- rurban 7y agoBut the grammar parsing and processing is not something which is done with core-only features. Later hopefully, but currently it's very dumb, and can easily be done as library. Only longest token matching is needed.
- wott 7y ago> Any reason you couldn’t port the parser back to Perl 5 and get a similar savings in line count? That's what https://metacpan.org/pod/Regexp::Grammars https://metacpan.org/pod/Regexp::Grammars is for, indeed.