Package com.javacc

Class Main


  • public final class Main
    extends Object
    Entry point.
    • Constructor Detail

      • Main

        public Main()
    • Method Detail

      • mainProgram

        public static int mainProgram​(Path grammarFile,
                                      Path outputDir,
                                      String codeLang,
                                      int jdkTarget,
                                      boolean quiet,
                                      Map<String,​String> symbols)
                               throws IOException,
                                      ParseException,
                                      freemarker.template.TemplateException
        Parameters:
        grammarFile - The input file
        outputDir - The output directory, if this is null, just use the directory where the input file is.
        quiet - Whether to be silent (or quiet). Currently does nothing!
        Returns:
        error code
        Throws:
        Exception
        IOException
        ParseException
        freemarker.template.TemplateException
      • bannerLine

        public static void bannerLine()
        This prints the banner line when the various tools are invoked. This takes as argument the tool's full name and its version.