graalvm / simplelanguage

A simple example language built using the Truffle API.

Home Page:http://openjdk.java.net/projects/graal/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can the antlr grammar be cleaned of all the Java code?

spullara opened this issue · comments

Right now I'd say it is a pretty non-standard ANTLR 4 grammar and detracts from the idea that this is a "SimpleLanguage". Most people that use Antlr use the generated visitor for compilation. For example, even a complicated grammar like for Java8 has very little (almost none except for checking character classes) Java code in the specification:

https://github.com/antlr/grammars-v4/blob/master/java8/Java8.g4

Is it a peculiarity of Truffle that requires it?