diff options
Diffstat (limited to 'JPratt/src/main/java/bjc/pratt/ParserContext.java')
| -rw-r--r-- | JPratt/src/main/java/bjc/pratt/ParserContext.java | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/JPratt/src/main/java/bjc/pratt/ParserContext.java b/JPratt/src/main/java/bjc/pratt/ParserContext.java deleted file mode 100644 index 76cdf22..0000000 --- a/JPratt/src/main/java/bjc/pratt/ParserContext.java +++ /dev/null @@ -1,56 +0,0 @@ -package bjc.pratt; - -import bjc.pratt.tokens.TokenStream; - -/** - * 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; - - /** - * The initial command for the current expression. - */ - public K initial; - - /** - * Create a new parser context. - * - * @param tokns - * The source of tokens. - * - * @param prse - * The parser to call for sub expressions. - * - * @param stte - * Any state needing to be kept during parsing. - */ - public ParserContext(final TokenStream<K, V> tokns, final PrattParser<K, V, C> prse, final C stte) { - tokens = tokns; - parse = prse; - state = stte; - } -}
\ No newline at end of file |
