summaryrefslogtreecommitdiff
path: root/JPratt/src/main/java/bjc/utils/parserutils/pratt/ParserContext.java
diff options
context:
space:
mode:
authorbjculkin <bjculkin@mix.wvu.edu>2017-04-05 15:35:13 -0400
committerbjculkin <bjculkin@mix.wvu.edu>2017-04-05 15:35:13 -0400
commitc82452e59b1547392c3e89d08d9173cc6dc79e23 (patch)
tree1927051f7cab7a64eef3f53a78b77780db6cf281 /JPratt/src/main/java/bjc/utils/parserutils/pratt/ParserContext.java
parentb61c66d5e0c18faee68eb91881d5dfe760818856 (diff)
Reorganize
Diffstat (limited to 'JPratt/src/main/java/bjc/utils/parserutils/pratt/ParserContext.java')
-rw-r--r--JPratt/src/main/java/bjc/utils/parserutils/pratt/ParserContext.java47
1 files changed, 0 insertions, 47 deletions
diff --git a/JPratt/src/main/java/bjc/utils/parserutils/pratt/ParserContext.java b/JPratt/src/main/java/bjc/utils/parserutils/pratt/ParserContext.java
deleted file mode 100644
index 55b5e98..0000000
--- a/JPratt/src/main/java/bjc/utils/parserutils/pratt/ParserContext.java
+++ /dev/null
@@ -1,47 +0,0 @@
-package bjc.utils.parserutils.pratt;
-
-/**
- * Represents the contextual state passed to a command.
- *
- * @author EVE
- *
- * @param <K>
- * The key type of the tokens.
- * @param <V>
- * The value type of the tokens.
- *
- * @param <C>
- * The state type of the parser.
- */
-public class ParserContext<K, V, C> {
- /**
- * The source of tokens.
- */
- public TokenStream<K, V> tokens;
- /**
- * The parser for sub-expressions.
- */
- public PrattParser<K, V, C> parse;
- /**
- * The state of the parser.
- */
- public C state;
-
- /**
- * Create a new parser context.
- *
- * @param tokens
- * The source of tokens.
- *
- * @param parse
- * The parser to call for sub expressions.
- *
- * @param state
- * Any state needing to be kept during parsing.
- */
- public ParserContext(TokenStream<K, V> tokens, PrattParser<K, V, C> parse, C state) {
- this.tokens = tokens;
- this.parse = parse;
- this.state = state;
- }
-} \ No newline at end of file