import java.util.Scanner;

/**
 * Main method for the SILLY Interpreter. 
 * 
 * @author Dave Reed 
 * @version 2/9/07
 */
public class Interpreter
{
    public static void main(String[] args) {
        System.out.println("Source code file? ");
        Scanner input = new Scanner(System.in);
        
        SourceCode program = new SourceCode(input.next());
        VariableTable variables = new VariableTable();
    
        while (program.hasNext()) {
            Statement stmt = Statement.getStatement(program);
            stmt.execute(variables);
        }
    }
}
