summaryrefslogtreecommitdiff
path: root/BJC-Utils2/src/main/java/bjc/utils/parserutils/pratt/commands/InterleaveSpecifier.java
diff options
context:
space:
mode:
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/parserutils/pratt/commands/InterleaveSpecifier.java')
-rw-r--r--BJC-Utils2/src/main/java/bjc/utils/parserutils/pratt/commands/InterleaveSpecifier.java30
1 files changed, 30 insertions, 0 deletions
diff --git a/BJC-Utils2/src/main/java/bjc/utils/parserutils/pratt/commands/InterleaveSpecifier.java b/BJC-Utils2/src/main/java/bjc/utils/parserutils/pratt/commands/InterleaveSpecifier.java
new file mode 100644
index 0000000..fa2c592
--- /dev/null
+++ b/BJC-Utils2/src/main/java/bjc/utils/parserutils/pratt/commands/InterleaveSpecifier.java
@@ -0,0 +1,30 @@
+package bjc.utils.parserutils.pratt.commands;
+
+/**
+ * The specifier for what to do for each element of a command.
+ *
+ * @author EVE
+ *
+ */
+public class InterleaveSpecifier {
+ /**
+ * The type of this specifier.
+ *
+ * @author EVE
+ *
+ */
+ public static enum Type {
+ /**
+ * Parse an expression with the given priority.
+ */
+ EXPRESSION,
+ /**
+ * Parse a statement with the given priority.
+ */
+ STATEMENT,
+ /**
+ * Expect a token of a certain type to be present.
+ */
+ EXPECT, LITERAL;
+ }
+} \ No newline at end of file