Package com.javacc
Class Main
- java.lang.Object
-
- com.javacc.Main
-
public final class Main extends Object
Entry point.
-
-
Constructor Summary
Constructors Constructor Description Main()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidbannerLine()This prints the banner line when the various tools are invoked.static voidmain(String[] args)The main program.static intmainProgram(Path grammarFile, Path outputDir, String codeLang, int jdkTarget, boolean quiet, Map<String,String> symbols)
-
-
-
Field Detail
-
PROG_NAME
public static final String PROG_NAME
- See Also:
- Constant Field Values
-
URL
public static final String URL
- See Also:
- Constant Field Values
-
-
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 fileoutputDir- 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:
ExceptionIOExceptionParseExceptionfreemarker.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.
-
-