user-pic

rns

  • Commented on Please Test: PPI 1.217_01 - bug fixes, speed optimizations, tests, doc improvements
    I just tested it by installing it and then (re-)installing Marpa::R2 V 2.088, which has some tests runs when PPI is available, and it Marpa::R2 built tested and installed with PPI 1.217_01 ok on windows (cl, perl 15.8.1) and cygwin...
  • Commented on WTF: $Test::Builder::Level is invalid
    Not sure if that applies, but at least it looks suspiciously. Just saw [2] and [1] (which has to do with $Test::Builder::Level). [2] says: "CPAN test modules might — in their own tests — be looking for specific output and...
  • Commented on Algebra of Grammars?
    Having already answered you on the merits, I can't help seeing you comment as nothing but a nice case of strawman fallacy, sorry....
  • Commented on Algebra of Grammars?
    If we define an algebra of grammars as an algebra of their parseable sets and let mean union, then is commutative and I F = F I = F and I ⊂ F so grammar I F can parse floats...
  • Posted Windows port of Marpa::R2 to rns

    A very good thing indeed. Can't wait to get my hand on it.

  • Posted A Parser for Marpa::R2 to rns

    This proof-of-concept (test, module) parser takes input, invokes

  • Posted Algebra of Grammars? to rns

    As in "I can parse integers and F can parse floats so I + F must parse integers and floats".

    Not sure what I

    *F must do though. :)

    Akin to ="http://en.wikipedia.org/wiki/Parser_combinator#The_c…

  • Posted A Lexer for Marpa::R2 to rns

    This proof-of-concept lexer (module, test) extracts literals (and…

  • Commented on Test::Most and timeit()
    Thanks for the hint....
  • Commented on Test::Most and timeit()
    Thanks a lot for this small but beautiful enhancement! Is it possible to make timeit return the time spent to be used as part of the explanation of a test later, like this: my $tree_expected = 'some fancy stuff'; my...
  • Commented on Announcing Marpa::XS 0.8.0
    @Jeffrey Kegler: thanks for pointing out to the doc on ambiguous tokens. As for natural language parsing: couldn't agree more, use of Earley in comp-ling notwithstanding. :)...
  • Commented on Announcing Marpa::XS 0.8.0
    Alternation is when one symbol appears on the LHS of more than one rule. For the purposes of the above definition, [1] below is an alternation with E being the symbol appearing on the LHS of more than one rule,...
  • Commented on Announcing Marpa::XS 0.8.0
    grammars which are left-recursive, right-recursive and ambiguous – even infinitely ambiguous My apology is in advance if this is just another stupid question, but I can't help thinking that what you call ambiguity (as per [1]) is really a BNF...
Subscribe to feed Recent Actions from rns

  • Shawn H Corey commented on Algebra of Grammars?

    "'putting F first means I never gets a chance to parse anything' has more to do with algebra of parser combinators that is defined in terms of parse results rather than parseable sets."

    Yes but why build a parser if you don't care about parsing? Without parsing, this is just an exercise in set theory.

    And there is a difference between I and F. I does integer division, resulting in the dropping of fractions. So the order is very important if, of course, you are actually parsing.

  • Helmut Wollmersdorfer commented on WTF: $Test::Builder::Level is invalid

    It's Test::Pretty with Test::Version in combination which is broken.

    This is reproducable.

  • Helmut Wollmersdorfer commented on WTF: $Test::Builder::Level is invalid

    Who is the someone using Test::Pretty? Ron, how are you starting your tests?

  • Ron Savage commented on WTF: $Test::Builder::Level is invalid

    $many x $thanx for the replies.

    For each of my 8 modules which use Marpa::R2, I do:

    local $CWD = $dir_name;
    ($stdout, $stderr) = capture{system 'prove', 't'};

    Then I parse the output with:

    if ($line =~ /^Files=.+Tests=(\d+),/)

    Looking for a line like:

    Files=3, Tests=88, 2 wallclock secs ( 0.04 usr 0.02 sys + 2.15 cusr 0.04 csys = 2.25 CPU)

    And no, this is not the problem :-).

    The first module, Graph::Easy::Marpa, works. It does not use Test::Version. All its tests use Test::More.

    The second module, Gra…

  • Ether commented on WTF: $Test::Builder::Level is invalid


    For each of my 8 modules which use Marpa::R2, I do:

    local $CWD = $dir_name;
    ($stdout, $stderr) = capture{system 'prove', 't'};

    Then I parse the output with:

    if ($line =~ /^Files=.+Tests=(\d+),/)

    Looking for a line like:

    Files=3, Tests=88, 2 wallclock secs ( 0.04 usr 0.02 sys + 2.15 cusr 0.04 csys = 2.25 CPU)

    Please for the love of all kittens, use Test::Harness to run your tests and
    then ask it for the result, rather than manually parsing the text output.

Subscribe to feed Responses to Comments from rns

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl with a graphic design donated by Six Apart, Ltd.