Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion lepl antlr grammar
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Luca  
View profile  
 More options Mar 18 2011, 5:52 pm
From: Luca <luca.dallo...@gmail.com>
Date: Fri, 18 Mar 2011 14:52:06 -0700 (PDT)
Local: Fri, Mar 18 2011 5:52 pm
Subject: lepl antlr grammar
Hi,

I just uploaded an antlr grammar I originally wrote for pyparsing and
that I could convert to lepl... Since I couldn't find any way to
upload a file here, I opened an issue (it is marked as defect, but it
really an enhancement I mean...) and explained there some use case :

http://code.google.com/p/lepl/issues/detail?id=19

The grammar is not complete, but it is working in many cases (one
example grammar taken from the antlr tutorials is part of the tests).
It works like this : it can parse an antlr grammar (
http://www.antlr.org/grammar/ANTLR/ANTLRv3.g ) using lepl rules, then
it uses the parsed rules to create equivalent lepl rules.

Included are some tests, it still lacks single lines and multi line
comments, and also rewrite rules (I think that they should be mapped
using Apply() in lepl, but I am not completely sure).

If anyone finds it useful and needs some extension, I will be glad to
work on it :-)

Best Regards,
Luca


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.