Parse EBNF: Difference between revisions
m
→{{header|Raku}}: Fix code and comments: Perl 6 --> Raku
Thundergnat (talk | contribs) (Rename Perl 6 -> Raku, alphabetize, minor clean-up) |
SqrtNegInf (talk | contribs) m (→{{header|Raku}}: Fix code and comments: Perl 6 --> Raku) |
||
Line 1,658:
{{works with|Rakudo|2019.03.1}}
This parses the EBNF rule set using a
It is implemented and exercised using the flavor of EBNF and test cases specified on the [[Parse EBNF/Tests|test page]].
<lang perl6># A
grammar EBNF {
rule TOP { ^ <title>? '{' [ <production> ]+ '}' <comment>? $ }
Line 1,794:
$fh.say( qq| "\\n"} |);
$fh.close;
say qqx/
say '*' x 79, "\n";
unlink $fn;
|