use of org.metaborg.spoofax.meta.core.generator.general.ContinuousLanguageSpecGenerator in project spoofax by metaborg.
the class LanguageSpecBuilder method generateSources.
public void generateSources(LanguageSpecBuildInput input, @Nullable IFileAccess access) throws IOException, MetaborgException {
final ISpoofaxLanguageSpec languageSpec = input.languageSpec();
final FileObject location = languageSpec.location();
final ISpoofaxLanguageSpecConfig config = languageSpec.config();
logger.debug("Generating sources for {}", input.languageSpec().location());
final ContinuousLanguageSpecGenerator generator = new ContinuousLanguageSpecGenerator(new GeneratorSettings(location, config), access, config.sdfEnabled(), config.sdfVersion());
generator.generateAll();
componentConfigBuilder.reset();
componentConfigBuilder.copyFrom(input.languageSpec().config());
final ILanguageComponentConfig componentConfig = componentConfigBuilder.build(location);
componentConfigWriter.write(location, componentConfig, access);
for (IBuildStep buildStep : buildSteps) {
buildStep.execute(LanguageSpecBuildPhase.generateSources, input);
}
}
Aggregations