On Jan 18, 2011, at 4:23 AM, Mark Wright wrote: > Hi, > > Since ANTLR v4 is in development, I was wondering if there were any thoughts > on making it possible to hook into the code generation earlier in order to > be able to add support for weird functional languages such as Haskell, > Lisp, Scheme, Racket, etc. There were some earlier thoughts on this which > I copied below.
Hi Mark, sure! The new code generator should be much more flexible. > I did have a look earlier at the feasibility of writing an ANTLR runtime > target for Haskell. This seemed difficult for ANTLR v3, I could not > see how to easily hook into code generation earlier. Since ANTLR v3 > does not seem to have support for weird functional language targets, the > string templates ended up being designed for imperative languages. Ola Bini was working on code generation for Emacs Lisp; I'm not sure how far he got. > > As a workaround for ANTLR v3, I have written a Haskell binding to the > ANTLR v3.2 C runtime library: > > http://hackage.haskell.org/package/antlrc > https://github.com/markwright/antlrc I saw that. cool! Perhaps we should have a conversation over Skype sometime about what your needs would be. of look that ML, Lisp, Haskell, Scala a lot but have not done anything significant in any of them. Ter _______________________________________________ antlr-dev mailing list [email protected] http://www.antlr.org/mailman/listinfo/antlr-dev
