Commit ac92d2d6 authored by Administrator's avatar Administrator
Browse files

einfache Anbindung des MiniJava-Parsers an ein zentrales Modell in Eclipse

parent 140e6118
......@@ -18,6 +18,9 @@ public class InMemoryParser {
this.in=in;
this.observer=observer;
}
public InMemoryParser(InputStream in) {
this(in,new IFrontendObserver() {});
}
public Program parse()throws Exception {
ComplexSymbolFactory csf = new ComplexSymbolFactory();
Lexer scanner = new Lexer(new InputStreamReader(in),csf,observer);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment