ANTLR4 has provision for inbuilt EOF token and an import of EOF from javacc generated file is not required/possible.