You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Almost 2 yrs ago I wrote a target for JS using the Google Closure compiler because I wanted to use this in a Clojure(Script) project that I was working on and it was impossible to use the existing JS one. Because GCC code is so close to Java I could write the whole thing as a direct rewrite of the Java target. I also forked the ANTLR4 project back then to add the proper codegen stuff.
Unfortunately I never followed closely the developments in the ANTLR4 project so I have no idea what have changed since then so I wouldn't recommend using this in production code; also because it never had the proper tests in the first place. Having said that it worked pretty nicely under ADVANCED_OPTIMIZATIONS for a not-so-trivial grammar that made possible to reuse all the compiler and runtime code between the server and the browser.
Just wanted to let you know in case you find this even remotely useful.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi 👋
Almost 2 yrs ago I wrote a target for JS using the Google Closure compiler because I wanted to use this in a Clojure(Script) project that I was working on and it was impossible to use the existing JS one. Because GCC code is so close to Java I could write the whole thing as a direct rewrite of the Java target. I also forked the ANTLR4 project back then to add the proper codegen stuff.
Unfortunately I never followed closely the developments in the ANTLR4 project so I have no idea what have changed since then so I wouldn't recommend using this in production code; also because it never had the proper tests in the first place. Having said that it worked pretty nicely under ADVANCED_OPTIMIZATIONS for a not-so-trivial grammar that made possible to reuse all the compiler and runtime code between the server and the browser.
Just wanted to let you know in case you find this even remotely useful.
Repo: g7s/antrl4-gc
Beta Was this translation helpful? Give feedback.
All reactions