Greetings, 

My name is Alceu and I'm new in this list. 

I reached here in the hope that I can get some pointers about writing a 
parser for Apache Jelly files. 

I've being working in a CLI to parse the properties and Jelly files from 
the Jenkins project, in order to help the translation process from English 
to other languages. 

The project is here: https://github.com/glasswalk3r/jenkins-translation-tool. 


The CLI is still using regular expressions for the Jelly parsing and I've 
struggling to replace that with proper parsers. 

I partially reached that by introducing a XML parser and then extracting 
the Jelly strings. 

The thing is, Jelly is complex enough that regular expression are still not 
good enough for parsing: I keep finding corner cases that are not being 
covered by an already complex regular expressions. 

I decided that is time to stop and try to build a proper grammar to parse 
Jelly. 

Now the problem is that I am not acquainted with the Jelly project itself (
https://commons.apache.org/proper/commons-jelly/) 

If any of you could give some points about finding where is the Jelly 
grammar defined, I could try to use Antlr project to generate a grammar 
that can be used with one of the several grammars distributions available 
to Perl. 

Or, if you have a better suggestion than trying to use a grammar, I'm also 
open to it. 

Thanks in advance, 

Alceu 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/21f6b5d9-60d7-4c8b-a558-4b0136a2f78an%40googlegroups.com.

Reply via email to