diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-07-22 18:26:15 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-07-22 18:26:15 -0700 |
commit | 3e3eefc2dcb2e0e31b224703a063e05dc8c67996 (patch) | |
tree | 9535fc9f721b7e184bab85a3476b09869d215e4c /tokenizer.h | |
parent | 77b6b0a9b2e7260884064dbac72f17bb5e86431f (diff) |
Improvements to new parser. All functions and completions now parse.
Diffstat (limited to 'tokenizer.h')
-rw-r--r-- | tokenizer.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tokenizer.h b/tokenizer.h index f2d6c0c0..0f3ff369 100644 --- a/tokenizer.h +++ b/tokenizer.h @@ -142,7 +142,10 @@ int tok_has_next(tokenizer_t *tok); /** Returns the position of the beginning of the current token in the original string */ -int tok_get_pos(tokenizer_t *tok); +int tok_get_pos(const tokenizer_t *tok); + +/** Returns the extent of the current token */ +size_t tok_get_extent(const tokenizer_t *tok); /** Returns the original string to tokenizer |