You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Alceu Rodrigues de Freitas Junior <gl...@yahoo.com.br.INVALID> on 2022/08/20 16:35:28 UTC
Apache Jelly grammar and parser
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 state by at least introducing a XML parser and
than extracting the Jelly strings. The thing is, Jelly is complex enough
that regular expression is still not a good tool for parsing: I've being
find corner cases that are not being covered by an already complex
regular expression.
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:
- a Java programmer
- doesn't have real experience building parsers based on grammars
- 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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org