Commit 9ed1591b authored by Dr. Michael Petter's avatar Dr. Michael Petter
Browse files

more recent cup runtime

parent e9cefcac
......@@ -11,7 +11,7 @@ import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.stream.StreamSource;
import java_cup.runtime.XMLElement;
import java_cup.runtime.SyntaxTreeTranform;
import java_cup.runtime.SyntaxTreeTransform;
public class Compiler {
public static void main(String args[]) throws Exception {
......@@ -30,7 +30,7 @@ public class Compiler {
XMLElement elem = (XMLElement)sem.rule.rhs(0).get();
// Remove unwanted unary branch chains from the syntax tree
elem = SyntaxTreeTranform.removeUnaryChains(elem);
elem = SyntaxTreeTransform.removeUnaryChains(elem);
// Dump DoM into XML-String via output stream
XMLOutputFactory outFactory = XMLOutputFactory.newInstance();
......@@ -64,4 +64,4 @@ public class Compiler {
System.out.println(" -> Transformation succeeded"); }
}
}
\ No newline at end of file
}
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