java.lang.Object
de.grogra.xl.compiler.xl16u.XL16UDedicatedParsePath
Single XL 1.6U entry point for the current dedicated parser path.
It still lowers to compatibility source for the unchanged legacy backend,
but the live path
now seeds aliases once from the original source, resolves callable headers
from that alias registry, and then performs one statement rewrite pass before
invoking the unchanged legacy backend path.
-
Method Summary
Modifier and TypeMethodDescriptionstatic XL16UPreparedProgramprepareProgram(XL16UProgram program) Canonical prepare step for the current bridge-backed route: reparse compatibility source and return one explicit prepared handoff object.static XL16UPreparedProgramprepareProgram(XL16UProgram program, antlr.collections.AST legacyTree) Explicit injected-tree entry for migration slices that can provide a legacy-compatible AST without re-running compatibility-source reparse.static XL16UPreparedProgramprepareProgram(XL16UProgram program, XL16UBackendPreparationStrategy strategy) static XL16UPreparedProgramprepareProgram(String source, String systemId, CompilerOptions options) static CompilationUnitprocessPreparedProgram(XL16UPreparedProgram prepared, ClassPath classPath, Scope defaultImports, CompilerOptions options, Collection<Annotation> annotations) processPreparedProgramWithProductPath(XL16UPreparedProgram prepared, ClassPath classPath, Scope defaultImports, CompilerOptions options, Collection<Annotation> annotations) static XL16UProgramprocessProgram(String source, String systemId, CompilerOptions options) static CompilationUnitprocessProgramUnit(XL16UProgram program, antlr.collections.AST legacyTree, ClassPath classPath, Scope defaultImports, CompilerOptions options, Collection<Annotation> annotations) Direct handoff overload for already-processed programs plus caller-supplied legacy tree.static CompilationUnitprocessProgramUnit(XL16UProgram program, ClassPath classPath, Scope defaultImports, CompilerOptions options, Collection<Annotation> annotations) processProgramUnitWithProductPath(XL16UProgram program, antlr.collections.AST legacyTree, ClassPath classPath, Scope defaultImports, CompilerOptions options, Collection<Annotation> annotations) processProgramUnitWithProductPath(XL16UProgram program, ClassPath classPath, Scope defaultImports, CompilerOptions options, Collection<Annotation> annotations) static CompilationUnitprocessUnit(String source, String systemId, CompilerOptions options, ClassPath classPath, Scope defaultImports, Collection<Annotation> annotations) processUnitWithProductPath(String source, String systemId, CompilerOptions options, ClassPath classPath, Scope defaultImports, Collection<Annotation> annotations) static antlr.collections.ASTreparseCompatibilityTree(XL16UProgram program) Parses the compatibility source owned byprogramwith the legacy backend parser, merges parser diagnostics onto the canonical diagnostic list, and returns the resulting legacy AST.static XL16UProgramrequireErrorFreeProgram(XL16UProgram program)
-
Method Details
-
reparseCompatibilityTree
public static antlr.collections.AST reparseCompatibilityTree(XL16UProgram program) throws IOException, RecognitionException Parses the compatibility source owned byprogramwith the legacy backend parser, merges parser diagnostics onto the canonical diagnostic list, and returns the resulting legacy AST.- Throws:
IOExceptionRecognitionException
-
processProgram
public static XL16UProgram processProgram(String source, String systemId, CompilerOptions options) throws IOException, RecognitionException - Throws:
IOExceptionRecognitionException
-
requireErrorFreeProgram
public static XL16UProgram requireErrorFreeProgram(XL16UProgram program) throws RecognitionException - Throws:
RecognitionException
-
processUnit
public static CompilationUnit processUnit(String source, String systemId, CompilerOptions options, ClassPath classPath, Scope defaultImports, Collection<Annotation> annotations) throws IOException, RecognitionException - Throws:
IOExceptionRecognitionException
-
processUnitWithProductPath
public static XL16UProcessedCompilationUnit processUnitWithProductPath(String source, String systemId, CompilerOptions options, ClassPath classPath, Scope defaultImports, Collection<Annotation> annotations) throws IOException, RecognitionException - Throws:
IOExceptionRecognitionException
-
prepareProgram
public static XL16UPreparedProgram prepareProgram(String source, String systemId, CompilerOptions options) throws IOException, RecognitionException - Throws:
IOExceptionRecognitionException
-
prepareProgram
public static XL16UPreparedProgram prepareProgram(XL16UProgram program) throws IOException, RecognitionException Canonical prepare step for the current bridge-backed route: reparse compatibility source and return one explicit prepared handoff object.- Throws:
IOExceptionRecognitionException
-
prepareProgram
public static XL16UPreparedProgram prepareProgram(XL16UProgram program, antlr.collections.AST legacyTree) throws RecognitionException Explicit injected-tree entry for migration slices that can provide a legacy-compatible AST without re-running compatibility-source reparse.- Throws:
RecognitionException
-
prepareProgram
public static XL16UPreparedProgram prepareProgram(XL16UProgram program, XL16UBackendPreparationStrategy strategy) throws IOException, RecognitionException - Throws:
IOExceptionRecognitionException
-
processPreparedProgram
public static CompilationUnit processPreparedProgram(XL16UPreparedProgram prepared, ClassPath classPath, Scope defaultImports, CompilerOptions options, Collection<Annotation> annotations) throws IOException, RecognitionException - Throws:
IOExceptionRecognitionException
-
processPreparedProgramWithProductPath
public static XL16UProcessedCompilationUnit processPreparedProgramWithProductPath(XL16UPreparedProgram prepared, ClassPath classPath, Scope defaultImports, CompilerOptions options, Collection<Annotation> annotations) throws IOException, RecognitionException - Throws:
IOExceptionRecognitionException
-
processProgramUnit
public static CompilationUnit processProgramUnit(XL16UProgram program, antlr.collections.AST legacyTree, ClassPath classPath, Scope defaultImports, CompilerOptions options, Collection<Annotation> annotations) throws RecognitionException Direct handoff overload for already-processed programs plus caller-supplied legacy tree.- Throws:
RecognitionException
-
processProgramUnitWithProductPath
public static XL16UProcessedCompilationUnit processProgramUnitWithProductPath(XL16UProgram program, antlr.collections.AST legacyTree, ClassPath classPath, Scope defaultImports, CompilerOptions options, Collection<Annotation> annotations) throws RecognitionException - Throws:
RecognitionException
-
processProgramUnit
public static CompilationUnit processProgramUnit(XL16UProgram program, ClassPath classPath, Scope defaultImports, CompilerOptions options, Collection<Annotation> annotations) throws IOException, RecognitionException - Throws:
IOExceptionRecognitionException
-
processProgramUnitWithProductPath
public static XL16UProcessedCompilationUnit processProgramUnitWithProductPath(XL16UProgram program, ClassPath classPath, Scope defaultImports, CompilerOptions options, Collection<Annotation> annotations) throws IOException, RecognitionException - Throws:
IOExceptionRecognitionException
-