It looks really good. I think it'd be good to add checking of the error codes from all the Marpa methods. Also I notice the x86 executable is in the examples directory. -- jeffrey

On 04/20/2014 10:30 AM, Durand Jean-Damien wrote:
C.f. https://github.com/jddurand/libmarpa-packaging/tree/master/examples

for uptodate (and eventually fixed or better) version(s).

Jean-Damien.

Le dimanche 20 avril 2014 17:20:45 UTC+2, Durand Jean-Damien a écrit :

    The list might be interested to see a C version of what is writen
    in perl using the Thin interface.
    This is the first test that is in t/thin_eq.t, doing this
    ambiguous grammar:

      :start ::= S
      S ::= E
      E ::= E op E
      E ::= number

      applied on tokens "2", "-", "0", "*", "3", "+", "1".

      Result is:

    Expected result (((2-0)*3)+1) == 7, value 7
    Expected result ((2-(0*3))+1) == 3, value 3
    Expected result (2-((0*3)+1)) == 1, value 1
    Expected result (2-(0*(3+1))) == 2, value 2
    Expected result ((2-0)*(3+1)) == 8, value 8

    Source files in attachment.

    May I ask somebody to review it, because I plan to submit it to
    git for inclusion in debian packages -;
    valgrind on it is happy v.s. eventual lekage btw.

    Thanks, Jean-Damien.

--
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 [email protected] <mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.

--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to