Class CBSchemaCompilerInternalFactory
java.lang.Object
com.io7m.cedarbridge.schema.compiler.internal.CBSchemaCompilerInternalFactory
An internal compiler factory.
-
Constructor Summary
ConstructorsConstructorDescriptionCBSchemaCompilerInternalFactory(CBExpressionSourceFactoryType inSources, CBParserFactoryType inParsers, CBBinderFactoryType inBinders, CBTypeCheckerFactoryType inTypers) An internal compiler factory. -
Method Summary
Modifier and TypeMethodDescriptioncreateNewCompiler(Consumer<CBError> errorConsumer, CBSchemaCompilerConfiguration configuration, CBLoader loader) Create a new compiler.
-
Constructor Details
-
CBSchemaCompilerInternalFactory
public CBSchemaCompilerInternalFactory(CBExpressionSourceFactoryType inSources, CBParserFactoryType inParsers, CBBinderFactoryType inBinders, CBTypeCheckerFactoryType inTypers) An internal compiler factory.- Parameters:
inBinders- A source of bindersinParsers- A source of parsersinSources- A source of expression sourcesinTypers- A source of type checkers
-
-
Method Details
-
createNewCompiler
public CBSchemaCompilerType createNewCompiler(Consumer<CBError> errorConsumer, CBSchemaCompilerConfiguration configuration, CBLoader loader) Create a new compiler.- Parameters:
errorConsumer- The error consumerconfiguration- The compiler configurationloader- The package loader- Returns:
- A new compiler
-