brianray / lepl

Automatically exported from code.google.com/p/lepl
Other
0 stars 0 forks source link

antlr grammar for lepl #19

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I just wrote an antlr grammar for lepl (I adapted my grammar previously written 
for pyparsing), I wrote it for fun and to learn lepl, but I suppose that it 
could be useful for these reasons : 

 it makes lepl capable to parse an ebnf grammar, that could be useful to create a lepl grammar repository / serialization format and to provide a well known syntax 

 lepl could parse the grammars into antlr repositories (java, c, javascript, sql , ...)

 antlr grammar is top-down, so now lepl could be at the same time both bottom-up and top-down, without the need to write Delayed()

It could be included into some method "parse_antlr" or "parse_ebnf"... anyway, 
it is my way to contribute :-)

Original issue reported on code.google.com by luca.dal...@gmail.com on 18 Mar 2011 at 9:42

Attachments:

GoogleCodeExporter commented 9 years ago
same code, using lepl 5 packages (test ok)

Original comment by luca.dal...@gmail.com on 14 Apr 2011 at 4:32

Attachments: