summaryrefslogtreecommitdiff
path: root/Interpreter.java
blob: 6dbff126f8d7fd15693186e6fc5beeab07bbd1de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
interface Interpreter {
    /**
     * return result of intepreted code, given param as argument
     */
    public String eval(String code, String param);

    /**
     * print the program code parses to
     */
    public String print(String code);

    /**
     * print a  trace of the intepretation of code given param
     */
    public String trace(String code, String param);

    public int minLength();

    public int maxLength();
}
contact: Jan Huwald // Impressum