summaryrefslogtreecommitdiff
path: root/vaporize/library/TotalSpill.java
diff options
context:
space:
mode:
Diffstat (limited to 'vaporize/library/TotalSpill.java')
-rw-r--r--vaporize/library/TotalSpill.java68
1 files changed, 0 insertions, 68 deletions
diff --git a/vaporize/library/TotalSpill.java b/vaporize/library/TotalSpill.java
deleted file mode 100644
index cd75712..0000000
--- a/vaporize/library/TotalSpill.java
+++ /dev/null
@@ -1,68 +0,0 @@
-package vaporize.library;
-
-import cs132.vapor.ast.*;
-import st.*;
-import misc.*;
-import java.util.*;
-
-public class TotalSpill<P, R> extends VInstr.VisitorPR<P, R, RuntimeException> {
-
-
- public R visit(P p, VMemRead n) throws RuntimeException {
- PrintFilter.print(String.format("%s (%s)",
- n.getClass().getSimpleName(),
- n.sourcePos.toString()), true);
- return null;
- }
-
- public R visit(P p, VMemWrite n) throws RuntimeException {
- PrintFilter.print(String.format("%s (%s)",
- n.getClass().getSimpleName(),
- n.sourcePos.toString()), true);
- return null;
- }
-
- public R visit(P p, VAssign n) throws RuntimeException {
- PrintFilter.print(String.format("%s (%s)",
- n.getClass().getSimpleName(),
- n.sourcePos.toString()), true);
- return null;
- }
-
- public R visit(P p, VBranch n) throws RuntimeException {
- PrintFilter.print(String.format("%s (%s)",
- n.getClass().getSimpleName(),
- n.sourcePos.toString()), true);
- return null;
- }
-
- public R visit(P p, VGoto n) throws RuntimeException {
- PrintFilter.print(String.format("%s (%s)",
- n.getClass().getSimpleName(),
- n.sourcePos.toString()), true);
- return null;
- }
-
- public R visit(P p, VCall n) throws RuntimeException {
- PrintFilter.print(String.format("%s (%s)",
- n.getClass().getSimpleName(),
- n.sourcePos.toString()), true);
- return null;
- }
-
- public R visit(P p, VBuiltIn n) throws RuntimeException {
- PrintFilter.print(String.format("%s (%s:%s)",
- n.getClass().getSimpleName(),
- n.op.name,
- n.sourcePos.toString()), true);
- return null;
- }
-
- public R visit(P p, VReturn n) throws RuntimeException {
- PrintFilter.print(String.format("%s (%s)",
- n.getClass().getSimpleName(),
- n.sourcePos.toString()), true);
- return null;
- }
-
-}