sledorze / Parsex

Packrat Parser combinators for Haxe
21 stars 5 forks source link

Added chainl1 parser combinator. #3

Closed deltaluca closed 12 years ago

deltaluca commented 12 years ago

Chainl1 lifted from Haskell parsec for left-recursive application of binary infix operators

I translated this to non ParserM syntax, and tested works still in nape-symbolic.

sledorze commented 12 years ago

Thanks, I like it!

On Sun, Jul 29, 2012 at 10:10 PM, Luca Deltodesco < reply@reply.github.com

wrote:

Chainl1 lifted from Haskell parsec for left-recursive application of binary infix operators

I translated this to non ParserM syntax, and tested works still in nape-symbolic.

You can merge this Pull Request by running:

git pull https://github.com/deltaluca/Parsex patch-1

Or you can view, comment on it, or merge it online at:

https://github.com/sledorze/Parsex/pull/3

-- Commit Summary --

  • Added chainl1 parser combinator.

-- File Changes --

M src/com/mindrocks/text/Parser.hx (23)

-- Patch Links --

https://github.com/sledorze/Parsex/pull/3.patch https://github.com/sledorze/Parsex/pull/3.diff


Reply to this email directly or view it on GitHub: https://github.com/sledorze/Parsex/pull/3

Stéphane Le Dorze

http://lambdabrella.blogspot.com/ http://www.linkedin.com/in/stephaneledorze http://twitter.com/stephaneledorzehttps://twitter.com/#!/stephaneledorze/status/74020060125077504

Tel: +33 (0) 6 08 76 70 15