Giter Club home page Giter Club logo

Comments (4)

willkg avatar willkg commented on August 25, 2024

parsley link: https://github.com/washort/parsley

And Allen's talk at pycon: http://pyvideo.org/video/1736/worry-free-parsers-with-parsley

parsimonious (https://github.com/erikrose/parsimonious) might be interesting, too.

from hy.

paultag avatar paultag commented on August 25, 2024

👍 thanks @willkg !

(that's actually where I got the idea from, seems neat)

parsimonius looks nice too -- add that to the to-look-at list!

from hy.

olasd avatar olasd commented on August 25, 2024

So, I took a stab at a few parser libs lately.

The grammar looks fairly clean (there are some clunky things, but overall it's not that bad), but it's DOG slow. Like, 8 times as slow. Plus it is not python3 compatible :(

This looks even cleaner than parsley, IMHO. All the tests but a few pass.
The only real pending issue is that of getting the source position for tokens (column/line number), as rply does not give it... yet! There is a todo about that in the rply source, I'm looking at patching that in right now.
Oh, and, almost forgot, it stays quite fast (20% slowdown taking into account the need for exception handling and displaying for the failing tests, so should go down).

from hy.

paultag avatar paultag commented on August 25, 2024

What's the status? I've forked rply until @alex has a chance to review your PR.

from hy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.