aboutsummaryrefslogtreecommitdiffstats
path: root/main/core/parser/ast/ASTNode.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/core/parser/ast/ASTNode.java')
-rw-r--r--main/core/parser/ast/ASTNode.java40
1 files changed, 0 insertions, 40 deletions
diff --git a/main/core/parser/ast/ASTNode.java b/main/core/parser/ast/ASTNode.java
deleted file mode 100644
index 311314f..0000000
--- a/main/core/parser/ast/ASTNode.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package com.jantuomi.interpreter.main.core.parser.ast;
-
-import com.jantuomi.interpreter.main.core.parser.datatype.DataContainer;
-import com.jantuomi.interpreter.main.core.tokenizer.token.Token;
-import com.jantuomi.interpreter.main.exception.InterpreterException;
-
-import java.util.List;
-
-/**
- * Created by jan on 11.6.2016.
- */
-abstract public class ASTNode {
-
- public abstract DataContainer evaluate() throws InterpreterException;
-
- protected Token source;
-
- public ASTNode(Token token) {
- this.source = token;
- }
-
- public Token.Type tokenType() {
- return source.getTokenType();
- }
-
- abstract List<ASTNode> getChildren();
-
- public void print(int indent) {
- for (int i = 0; i < indent; i++) {
- System.out.print("\t");
- }
-
- System.out.println(source.toString());
- for (ASTNode node : getChildren()) {
- if (node != null) {
- node.print(indent + 1);
- }
- }
- }
-}