Skip to content
Snippets Groups Projects
Commit 13241854 authored by Julien Lopez's avatar Julien Lopez
Browse files

- Remove useless top directory

- Update to new Truffle version
- Adds builder and gitignore for eclipse
parent ef2aef06
Branches
No related tags found
No related merge requests found
Showing
with 18 additions and 30 deletions
/bin/
package qir.driver;
import qir.ast.*;
import qir.ast.data.*;
import qir.ast.operator.*;
import testdb.dummyDB.*;
public class DummyDBDriver extends DBDriver {
@Override
public QIRList run(QIRNode root) {
QIRDummyDBVisitor v = new QIRDummyDBVisitor();
try {
QIROperator op = (QIROperator) root;
return (QIRList) op.accept(v);
} catch (ClassCastException e) {
return null; // TODO: Accept this and do something or throw an exception.
}
}
}
File moved
......@@ -2,15 +2,12 @@
<!-- Configuration of the Ant build system to generate a Jar file -->
<project name="QIR" default="CreateJar">
<target name="CreateJar" description="Create Jar file">
<mkdir dir="bin"/>
<jar jarfile="qir.jar">
<fileset dir="bin"/>
<fileset dir="src" includes="**/*.java"/>
</jar>
</target>
<target name="clean" description="Removes generated files">
<delete dir="bin"/>
<delete file="qir.jar"/>
</target>
</project>
<?xml version="1.0" ?>
<!-- Configuration of the Ant build system to generate a Jar file -->
<project name="QIR" default="CreateJar">
<target name="CreateJar" description="Create Jar file">
<jar jarfile="qir.jar">
<fileset dir="bin"/>
</jar>
</target>
<target name="clean" description="Removes generated files">
<delete file="qir.jar"/>
<delete dir="bin"/>
</target>
</project>
qir.jar 0 → 100644
File added
File moved
File moved
File moved
package qir.ast;
import com.oracle.truffle.api.source.NullSourceSection;
import com.oracle.truffle.api.source.SourceSection;
import qir.util.IQIRVisitor;
......@@ -13,7 +12,7 @@ public class QIRNull extends QIRNode {
super(source);
}
private static final QIRNull singleton = new QIRNull(new NullSourceSection("QIRNode", "QIRNull"));
private static final QIRNull singleton = new QIRNull(SourceSection.createUnavailable("QIRNode", "QIRNull"));
/**
* Use this method to refer to the {@code null} value.
......
File moved
File moved
File moved
package qir.ast.data;
import com.oracle.truffle.api.source.NullSourceSection;
import com.oracle.truffle.api.source.SourceSection;
/**
......@@ -11,7 +10,7 @@ public class QIRLnil extends QIRList {
super(source);
}
private static final QIRLnil singleton = new QIRLnil(new NullSourceSection("QIRNode", "QIRLnil"));
private static final QIRLnil singleton = new QIRLnil(SourceSection.createUnavailable("QIRNode", "QIRLnil"));
/**
* Use this method to refer to the empty {@link QIRList}.
......
File moved
File moved
package qir.ast.data;
import com.oracle.truffle.api.source.NullSourceSection;
import com.oracle.truffle.api.source.SourceSection;
/**
......@@ -11,7 +10,7 @@ public class QIRTnil extends QIRTuple {
super(source);
}
private static final QIRTnil singleton = new QIRTnil(new NullSourceSection("QIRNode", "QIRTnil"));
private static final QIRTnil singleton = new QIRTnil(SourceSection.createUnavailable("QIRNode", "QIRTnil"));
/**
* Use this method to refer to the empty {@link QIRTuple}.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment