package org.zwobble.couscous; import java.io.IOException; import java.nio.file.Path; import java.util.List; import org.zwobble.couscous.ast.ClassNode; public class CouscousCompiler { private final Frontend frontend; private final Backend backend; public CouscousCompiler(Frontend frontend, Backend backend) { this.frontend = frontend; this.backend = backend; } public void compileDirectory(Path sourceRoot, Path path) throws IOException { List classes = frontend.readSourceDirectory(sourceRoot, path); backend.compile(classes); } }