diff options
| author | bjculkin <bjculkin@mix.wvu.edu> | 2017-03-24 18:28:34 -0400 |
|---|---|---|
| committer | bjculkin <bjculkin@mix.wvu.edu> | 2017-03-24 18:28:34 -0400 |
| commit | 42a897dae1bfa58ab665f5012c2ac160316bcb75 (patch) | |
| tree | 0cf3ec5c7958c63672f6657b93e4cb1536b2d4a3 /BJC-Utils2/src/main/java/bjc/utils/parserutils/pratt/commands/InterleaveSpecifier.java | |
| parent | 0f6565687e03968abd2e508fa8183f50f04f1cc7 (diff) | |
Update Pratt Parser
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.java | 30 |
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 |
