diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2015-07-26 00:58:32 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2015-07-26 00:58:32 -0700 |
commit | c9349f2ef6b52d34049b7309c261b55b72a2a0a6 (patch) | |
tree | 398c7950161308138ef137db5885f5be7153ee71 /src/parse_tree.cpp | |
parent | 4ebaa7b6bd595f37f66f8d77ee836c1e5a4ef647 (diff) |
Continue to refine tokenizer interface
Migrate some functions into tokenizer instance methods
Diffstat (limited to 'src/parse_tree.cpp')
-rw-r--r-- | src/parse_tree.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse_tree.cpp b/src/parse_tree.cpp index c884f667..1583b804 100644 --- a/src/parse_tree.cpp +++ b/src/parse_tree.cpp @@ -1299,7 +1299,7 @@ bool parse_tree_from_string(const wcstring &str, parse_tree_flags_t parse_flags, if (errors == NULL) tok_options |= TOK_SQUASH_ERRORS; - tokenizer_t tok = tokenizer_t(str.c_str(), tok_options); + tokenizer_t tok(str.c_str(), tok_options); /* We are an LL(2) parser. We pass two tokens at a time. New tokens come in at index 1. Seed our queue with an initial token at index 1. */ parse_token_t queue[2] = {kInvalidToken, kInvalidToken}; |