<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">package bali;

/**
 * Interface for the CS 212 Bali Compiler.
 */
public interface Compiler{
    /**
     * Compiles whatever it can get from the scanner and returns 
     * a SaM program as a String.
     * @param scanner a Scanner212 loaded with a source (scanner.setSource)
     * @return the resulting SaM code
     * @throws BaliException if there is an error in the source code
     */
    String compile (Scanner212 scanner) throws BaliException;
}
</pre></body></html>