Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help newbies with ANTLR dependencies #318

Open
dventimihasura opened this issue Mar 20, 2024 · 0 comments
Open

Help newbies with ANTLR dependencies #318

dventimihasura opened this issue Mar 20, 2024 · 0 comments

Comments

@dventimihasura
Copy link

dventimihasura commented Mar 20, 2024

Hello.

Would it be possible to help newbies get started more quickly by spelling out the ANTLR dependencies everywhere? For example, the Using StringTemplate with Java page does say

All you need to do is get the StringTemplate jar into your CLASSPATH as well as its dependent ANTLR jar.

which is good, but better would be to help newcomers understand what exactly "its dependent ANTLR jar" is (e.g., its Maven coordinates, or at least the version). Moreover, the download page says

To use maven, refer to group ID org.antlr and artifact ID ST4 in your pom.xml file:

<dependency> 
  <groupId>org.antlr</groupId> 
  <artifactId>ST4</artifactId> 
  <version>4.3.4</version> 
</dependency>

but makes no mention of an ANTLR dependency. So far I haven't found anything that says which ANTLR version to use for which ST4 version. Through trial-and-error, ANTLR 3.5.3 seemed to work with ST4 4.3.4. Surprisingly, none of the ANTLR4 versions I tried seemed to work. All threw ClassNotFoundException: org.antlr.runtime.Token. I'll keep looking. Maybe it's spelled out somewhere.

Thanks!
David

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant