Re: JetBrains / IntelliJ IDEA v8 to Support FreeMarker!
Randall R Schulz <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Hello, Jonathan, On Wednesday 02 April 2008 08:07, Jonathan Revusky wrote: > ... > > In other matters, Randall, I saw you had posted something on the > ANTLR-interest list recently. It was as a result of googling stuff > about how to do lexical states with ANTLR. I've been taking a run > (another one) at ANTLR recently and... OMG... I'm on the verge of > giving up, man, it's terrible. So difficult... > > Did you ever figure out how do simulate lexical states? Supposedly > you use semantic predicates, which according to TP, is much more > powerful than lexical states, but I can't get it to work. Did you > ever figure it out? I'm not sure. I wonder if that goes back to my writing a TPTP parser using ANTLR 2.x or my more recent creation of a CLIF parser using ANTLR 3.0. Could you send me a link to the mail archive you found? All I know for sure is that both these parsers are working. But JavaCC seems to have easy-to-use lexical states, so maybe that's the better choice. (I don't want to start a big flame-fest between partisans, but I find JavaCC to be a more rational, reasoned effort while ANTLR is a little more "free and easy." Kind of like the difference between Scala and Groovy, though probably not such a strong contrast.) And while we're talking about parsers, recently I've been feeling a need for a Lisp-ish s-expression-style grammar for writing FTL templates. What might be involved in creating an alternate compiler for FreeMarker templates?? Or perhaps I should just write a translator from my (hypothetical) s-expression-based FTL language to the official one? Randall Schulz ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace