#Is anyone familiar with using antlr4 and able to figure this out?

19 messages · Page 1 of 1 (latest)

stable maple
#

I am trying to use antlr4 to create a java translator program that will process variable declarations and then create symbol tables out of them, but so far I haven't been able to get around a few "package" related errors and I'm really unsure how to correct them, here are the files i'm trying to use, i would really appreciate an answer ASAP thank you (also i know it says format code in triple backticks but i reached the space limit so i had to make them text files sorry)

remote fogBOT
#

Update: Discord changed their client to prevent sending messages
that are preceeded by a slash (/)
To run code you can use "./run" or " /run" until further notice

Here are my supported languages:
awk, bash, basic, basic.net, befunge93, bqn, brachylog, brainfuck, c, c++, cjam, clojure, cobol, coffeescript, cow, crystal, csharp, csharp.net, d, dart, dash, dragon, elixir, emacs, emojicode, erlang, file, forte, forth, fortran, freebasic, fsharp.net, fsi, go, golfscript, groovy, haskell, husk, iverilog, japt, java, javascript, jelly, julia, kotlin, lisp, llvm_ir, lolcode, lua, matl, nasm, nasm64, nim, ocaml, octave, osabie, paradoc, pascal, perl, php, ponylang, powershell, prolog, pure, pyth, python, python2, racket, raku, retina, rockstar, rscript, ruby, rust, scala, smalltalk, sqlite3, swift, typescript, vlang, vyxal, yeethon, zig

You can run code like this:
./run <language>
command line parameters (optional) - 1 per line
```
your code
```
standard input (optional)

Provided by the Engineer Man Discord Server - visit:
https://emkc.org/run to get it in your own server
https://discord.gg/engineerman for more info

jovial warrenBOT
#

This post has been reserved for your question.

Hey @stable maple! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

#

<@&765578700724371486>

Requested by EpicJake#9004
queen yew
#

what kind of package errors

#

what's the issue specifically

stable maple
#

Driver.java:8: error: package antlr_gen does not exist
antlr_gen.LittleLexer lexer = new antlr_gen.LittleLexer(input);
^
Driver.java:8: error: package antlr_gen does not exist
antlr_gen.LittleLexer lexer = new antlr_gen.LittleLexer(input);
^
Driver.java:10: error: package antlr_gen does not exist
antlr_gen.LittleParser parser = new antlr_gen.LittleParser(tokens);
^
Driver.java:10: error: package antlr_gen does not exist
antlr_gen.LittleParser parser = new antlr_gen.LittleParser(tokens);
^
Note: Driver.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
4 errors

#

these are the errors i'm facing

#

idk how to get around them

#

what's wrong with the driver code or whatever

queen yew
#

the generated antlr files are probably not on the compile classpath

stable maple
#

Huh

#

Wdym?

#

are there some kinda files it's not generating or something?

#

or that it's meant to be

jovial warrenBOT
#

💤 Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.

queen yew
#

like what folder is where with which files