This is my code :
import java.io.*;
import java.util.*;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.tree.*;
class Lexicon {
public static Trie<List<Entry>> load() throws IOException, ParseError {
ANTLRInputStream input = new ANTLRInputStream(new InputStreamReader(
Main.class.getResourceAsStream("/lexicon.txt"), "UTF-8"));
LexiconLexer lexer = new LexiconLexer(input);
CommonTokenStream tokens = new CommonTokenStream(lexer);
LexiconParser parser = new LexiconParser(tokens);
LexiconParser.ListContext list = parser.expr().list();
Entry[] entries = new Entry[list.item().size()];
int i = 0;
And I got this error :
package org.antlr.v4.runtime does not exist
package org.antlr.v4.runtime.tress does not exist
cannot find symbol class ANTLRInputStream
cannot find symbol class Main
cannot find symbol class LexiconLexer
cannot find symbol class CommonTokenStream
cannot find symbol class LexiconParser
package LexiconParser does not exist
Can someone help me? Thank You