package edu.cornell.cs.bali.compiler;
import edu.cornell.cs.sam.io.Tokenizer;

public interface CS212Compiler{
        /**
         * Compiles whatever it can get from the Tokenizer
         * and returns a SaM program as a String
         * @param s A Tokenizer loaded with the code to compile
         * @return The SaM equivalent of the input program
         * @throws IllegalBaliException if there is an error in the code
         */
        String compile(Tokenizer s) throws IllegalBaliException;
}
