[antlr-interest] Parsing a indention specific language like Python.
Sam Harwell
sharwell at pixelminegames.com
Tue Sep 9 13:50:32 PDT 2008
There's a python grammar in the examples on the antlr homepage:
http://www.antlr.org/grammar/list
Specifically:
http://www.antlr.org/grammar/1200715779785/Python.g
From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of Jarrod Roberson
Sent: Tuesday, September 09, 2008 3:40 PM
To: Antlr Interest
Subject: [antlr-interest] Parsing a indention specific language like
Python.
I am working on a domain specific language and want to make indention
significant similar to python's syntax.
But very very very very simple compared to python. ( i.e. no line
continuation characters )
I have done some research on Google and just find resource talking about
how difficult it is to do.
Is this something that is really possible with ANTLR v3.x?
Or should I just resign myself to using block identifiers?
Any insight is appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080909/2d3f8577/attachment.html
More information about the antlr-interest
mailing list