[Python-ideas] What about regexp string litterals : re".*" ?

Ryan Gonzalez rymg19 at gmail.com
Mon Apr 3 08:54:29 EDT 2017


Have you tried PyParsing and/or Grako? They're some of my favorites (well,
I like PLY too, but I'm thinking you wouldn't like it too much).

--
Ryan (ライアン)
Yoko Shimomura > ryo (supercell/EGOIST) > Hiroyuki Sawano >> everyone else
http://refi64.com

On Apr 3, 2017 3:26 AM, "Neil Girdhar" <mistersheik at gmail.com> wrote:

>
>
> On Mon, Apr 3, 2017 at 2:31 AM Mark Lawrence via Python-ideas <
> python-ideas at python.org> wrote:
>
>> On 03/04/2017 02:22, Neil Girdhar wrote:
>> > Same.  One day, Python will have a decent parsing library.
>> >
>>
>> Nothing here https://wiki.python.org/moin/LanguageParsing suits your
>> needs?
>>
>
> No, unfortunately.
>
> I tried to make a simple grammar that parses latex code, and it was
> basically impossible with these tools.
>
> From what I remember, you need the match objects to be able to accept or
> reject their matched sub-nodes.
>
> It's same thing if you want to parse Python in one pass (not the usual two
> passes that CPython does whereby it creates an AST and then validates it).
> It would be cooler to validate as you go since the errors can be much
> richer since you have the whole parsing context?
>
> It's been a while, so I might be forgetting something, but I remember
> thinking that I'll check back in five years and see if anything new has
> come out.
>
>>
>> --
>> My fellow Pythonistas, ask not what our language can do for you, ask
>> what you can do for our language.
>>
>> Mark Lawrence
>>
>> _______________________________________________
>> Python-ideas mailing list
>> Python-ideas at python.org
>> https://mail.python.org/mailman/listinfo/python-ideas
>> Code of Conduct: http://python.org/psf/codeofconduct/
>>
>> --
>>
>> ---
>> You received this message because you are subscribed to a topic in the
>> Google Groups "python-ideas" group.
>> To unsubscribe from this topic, visit https://groups.google.com/d/
>> topic/python-ideas/FSd6xLHowg8/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> python-ideas+unsubscribe at googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170403/92c9d70f/attachment.html>


More information about the Python-ideas mailing list