Hacker News new | ask | show | jobs
by Hixon10 871 days ago
Do you know, why they use both ANTLR and Truffle?
1 comments

Truffle has no opinion on how you parse the sources. It cares about how you execute them from an intermediate Truffle guided representation produced by the parser.

In other words antlr and truffle are a great fit. We even use this pairing for our example language simplelanguage.

https://github.com/graalvm/simplelanguage

Thanks! I haven't seen before usage of Truffle and ANTLR together, but it makes sense.