aboutsummaryrefslogtreecommitdiffstats
path: root/main/core/runtime/Interpreter.java
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2016-06-28 21:09:43 +0300
committerJan Tuomi <jans.tuomi@gmail.com>2016-07-26 19:47:12 +0300
commit8f84c00978dc05007873a9fe1de6a18511dc3cf8 (patch)
tree39fead540e22addee40b95b68db08cbea620745b /main/core/runtime/Interpreter.java
parent48dcd488054024d98fe1e659a4029630130d1d35 (diff)
Restructure project for use with maven
Diffstat (limited to 'main/core/runtime/Interpreter.java')
-rw-r--r--main/core/runtime/Interpreter.java35
1 files changed, 0 insertions, 35 deletions
diff --git a/main/core/runtime/Interpreter.java b/main/core/runtime/Interpreter.java
deleted file mode 100644
index 6877ac3..0000000
--- a/main/core/runtime/Interpreter.java
+++ /dev/null
@@ -1,35 +0,0 @@
-package com.jantuomi.interpreter.main.core.runtime;
-
-import com.jantuomi.interpreter.main.core.parser.ast.ASTNode;
-import com.jantuomi.interpreter.main.core.parser.datatype.DataContainer;
-import com.jantuomi.interpreter.main.exception.InterpreterException;
-
-import java.util.List;
-
-/**
- * Created by jan on 14.6.2016.
- */
-public class Interpreter {
- private static final Interpreter instance = new Interpreter();
-
- public static Interpreter getInstance() {
- return instance;
- }
-
- private Interpreter() {
-
- }
- public static String execute(List<ASTNode> sequence) throws InterpreterException {
- String output = "";
- for (ASTNode node : sequence) {
- DataContainer data = node.evaluate();
-
- if (data != null) {
- output = data.toString();
- } else {
- break;
- }
- }
- return output;
- }
-}