On Wed, Aug 24, 2022 at 6:29 PM Alceu Rodrigues de Freitas Junior < [email protected]> wrote:
> 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. > Out of curiosity, what are some of the corner cases that cause problems? How common are they? -- 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/CAMo7Pt%2BTjm6vWadirx4km27mwk%2BLM65mYdcXvT6fBkZOSa9nBA%40mail.gmail.com.
