Package com.javacc

Class Main

java.lang.Object
com.javacc.Main

public final class Main extends Object
Entry point.
  • Field Details

  • Constructor Details

    • Main

      public Main()
  • Method Details

    • main

      public static void main(String[] args) throws Exception
      The main program.
      Throws:
      Exception
    • 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.