public abstract class InterpreterInterface extends Object
Constructor and Description |
---|
InterpreterInterface() |
Modifier and Type | Method and Description |
---|---|
abstract int |
evaluate(AST expression) |
abstract AST |
parse(ArrayList<Token> tokens) |
abstract ArrayList<Token> |
tokenize(String input) |
AST |
tokenizeAndParse(String input) |
int |
tokenizeParseAndEvaluate(String input) |
public abstract ArrayList<Token> tokenize(String input) throws TokenizerException
TokenizerException
public abstract AST parse(ArrayList<Token> tokens) throws ParserException
ParserException
public abstract int evaluate(AST expression) throws EvaluatorException
EvaluatorException
public AST tokenizeAndParse(String input) throws TokenizerException, ParserException
TokenizerException
ParserException
public int tokenizeParseAndEvaluate(String input) throws TokenizerException, ParserException, EvaluatorException