diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2016-06-28 21:09:43 +0300 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2016-07-26 19:47:12 +0300 |
| commit | 8f84c00978dc05007873a9fe1de6a18511dc3cf8 (patch) | |
| tree | 39fead540e22addee40b95b68db08cbea620745b /main/utils | |
| parent | 48dcd488054024d98fe1e659a4029630130d1d35 (diff) | |
Restructure project for use with maven
Diffstat (limited to 'main/utils')
| -rw-r--r-- | main/utils/Counter.java | 42 | ||||
| -rw-r--r-- | main/utils/Utilities.java | 17 |
2 files changed, 0 insertions, 59 deletions
diff --git a/main/utils/Counter.java b/main/utils/Counter.java deleted file mode 100644 index 9783adf..0000000 --- a/main/utils/Counter.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.jantuomi.interpreter.main.utils; - -/** - * Created by jan on 13.6.2016. - */ -public class Counter { - private int value = 0; - - public int getRecursionDepth() { - return recursionDepth; - } - - private int recursionDepth = 0; - - public int advance() { - return ++value; - } - - public int deeper() { - return ++recursionDepth; - } - - public int shallower() { - return --recursionDepth; - } - - public int getValue() { - return value; - } - - public void assign(Counter other) { - value = other.value; - recursionDepth = other.recursionDepth; - } - - public Counter clone() { - Counter c = new Counter(); - c.value = value; - c.recursionDepth = recursionDepth; - return c; - } -} diff --git a/main/utils/Utilities.java b/main/utils/Utilities.java deleted file mode 100644 index 396248f..0000000 --- a/main/utils/Utilities.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.jantuomi.interpreter.main.utils; - -import java.nio.file.Path; -import java.nio.file.Paths; - -/** - * Created by jan on 10.6.2016. - */ -public class Utilities { - private Utilities() {} - - public static String getBasePath() { - Path currentRelativePath = Paths.get(""); - String s = currentRelativePath.toAbsolutePath().toString(); - return s; - } -} |
