aboutsummaryrefslogtreecommitdiff
path: root/project/JavaCommon/src/com/modulus/dataread/expressions/StatementTreeParser.java
diff options
context:
space:
mode:
authorJoshua Rahm <joshua.rahm@colorado.edu>2015-01-27 18:40:32 -0700
committerJoshua Rahm <joshua.rahm@colorado.edu>2015-01-27 18:40:32 -0700
commit5f3fb9afece2125cbeba79d61a8d88460b7878d7 (patch)
treeb0e1e60bae9927a9449561bf7fe9431a54d12be9 /project/JavaCommon/src/com/modulus/dataread/expressions/StatementTreeParser.java
downloadLegacyQBar-5f3fb9afece2125cbeba79d61a8d88460b7878d7.tar.gz
LegacyQBar-5f3fb9afece2125cbeba79d61a8d88460b7878d7.tar.bz2
LegacyQBar-5f3fb9afece2125cbeba79d61a8d88460b7878d7.zip
initial commit
Diffstat (limited to 'project/JavaCommon/src/com/modulus/dataread/expressions/StatementTreeParser.java')
-rw-r--r--project/JavaCommon/src/com/modulus/dataread/expressions/StatementTreeParser.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/project/JavaCommon/src/com/modulus/dataread/expressions/StatementTreeParser.java b/project/JavaCommon/src/com/modulus/dataread/expressions/StatementTreeParser.java
new file mode 100644
index 0000000..854d4d2
--- /dev/null
+++ b/project/JavaCommon/src/com/modulus/dataread/expressions/StatementTreeParser.java
@@ -0,0 +1,21 @@
+package com.modulus.dataread.expressions;
+
+/**
+ * Interface which describes how an expression parser
+ * will handle information from an interpreter file.
+ *
+ * @author jrahm
+ *
+ * @param S the statement type which is used to create this class
+ */
+public interface StatementTreeParser {
+
+ /**
+ * Parse a block of code into statements using the statement factory <code>factory</code>
+ * to generate the statements to use.
+ * @param <T> the type of statement to use.
+ * @param factory the factory to generate the statements
+ * @return a Statement of type <code>T</code> that represents the code parsed
+ */
+ <T extends Statement> Statement parseStatements(StatementFactory<T> factory);
+}