Class JustParser
java.lang.Object
org.ek9lang.compiler.common.JustParser
For when we just need to read ek9 files and pull out bits and bobs
rather than actually compiling.
-
Constructor Summary
ConstructorsConstructorDescriptionJustParser(boolean reportErrors) Create new Parser with default error level 0.JustParser(boolean reportErrors, int errorLevel) Create new Parser with specified error level. -
Method Summary
Modifier and TypeMethodDescriptionbooleanreadSourceFile(File sourceFile, Ek9SourceVisitor visitor) Read the source file using the visitor supplied.
-
Constructor Details
-
JustParser
public JustParser(boolean reportErrors) Create new Parser with default error level 0. -
JustParser
public JustParser(boolean reportErrors, int errorLevel) Create new Parser with specified error level.- Parameters:
reportErrors- whether to report errors to stderrerrorLevel- 0=minimal, 1=visual, 2=visual+fuzzy, 3=visual+fuzzy+rich
-
-
Method Details
-
readSourceFile
Read the source file using the visitor supplied.
-