From 00462281fe43e8a6c76be3ac4aae4ff6face270d Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Fri, 25 Aug 2017 00:49:16 -0700 Subject: [PATCH] Add a function that operates on trees. --- .../org/nwapw/abacus/function/TreeValueFunction.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 core/src/main/java/org/nwapw/abacus/function/TreeValueFunction.java diff --git a/core/src/main/java/org/nwapw/abacus/function/TreeValueFunction.java b/core/src/main/java/org/nwapw/abacus/function/TreeValueFunction.java new file mode 100644 index 0000000..cd802c4 --- /dev/null +++ b/core/src/main/java/org/nwapw/abacus/function/TreeValueFunction.java @@ -0,0 +1,12 @@ +package org.nwapw.abacus.function; + +import org.nwapw.abacus.number.NumberInterface; +import org.nwapw.abacus.tree.TreeNode; + +/** + * A function that operates on parse tree nodes instead of on already simplified numbers. + * Despite this, it returns a number, not a tree. + */ +public abstract class TreeValueFunction extends Applicable { + +}