I'll do a gist. Before that, I note an interesting notation: **5 to control the number of repeats. What about suppporting these additional quantifiers (which are unambiguous with with ** AFAIK): **n **{n} **{n,} **{n,m}
Right now, either I'd write card five times, either Id do a lexeme or G1 action on card* and croak if != 5 -; Thanks / JD. Le jeudi 19 décembre 2013 04:05:09 UTC+1, Jeffrey Kegler a écrit : > > > Happy hacking, jeffrey > > On 12/18/2013 01:53 PM, Jakub Narębski wrote: > > I have just read article on parsing on Perl 6 Advent 2013 Calendar series, > "Day 18 – A Grammar with Duplicate checking" > > > https://perl6advent.wordpress.com/2013/12/18/day-18-a-grammar-with-duplicate-checking/ > > I wonder: how such grammar can be implemented in Marpa's SLIF parser > (or perhaps there exists Perl6 Grammar rules parser for Marpa?), and if > duplicate detection must be put in procedural code. > > -- > Jakub Narębski > -- > You received this message because you are subscribed to the Google Groups > "marpa parser" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to marpa-parser...@googlegroups.com <javascript:>. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "marpa parser" group. To unsubscribe from this group and stop receiving emails from it, send an email to marpa-parser+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.