Hi guys, I've been using Perl 5.010 regex to do some parsing, e.g. in Data::Csel [1] to parse CSS-selector-like expression, due to its relatively low startup overhead compared to Marpa or Regexp::Grammars. A couple of days ago, after reading about a topic in perl6 subreddit [2], I did a comparison benchmark [5] for a simple arithmetic parser using perl [3] vs Marpa [4]. My questions:
1) how do I improve the Marpa version's performance? 2) how to remove the "Earley item count (N) exceeds warning threshold"? This happens for 1+1+..+1 (100x) expression but not for the 20x or below. 3) how do I make right associativity work? The Marpa version still evaluates ** operator left to right. regards, perlancar [1] https://metacpan.org/pod/Data::CSel [2] https://www.reddit.com/r/perl6 [3] https://metacpan.org/pod/release/PERLANCAR/PERLANCAR-Parse-Arithmetic-0.001/lib/PERLANCAR/Parse/Arithmetic.pm [4] https://metacpan.org/pod/release/PERLANCAR/PERLANCAR-Parse-Arithmetic-0.001/lib/PERLANCAR/Parse/Arithmetic/Marpa.pm [5] https://metacpan.org/pod/release/PERLANCAR/Bencher-Scenarios-PERLANCARParseArithmetic-0.002/lib/Bencher/Scenario/PERLANCARParseArithmetic/parse_arithmetic.pm -- 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/d/optout.