aboutsummaryrefslogtreecommitdiffhomepage
path: root/tokenizer.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-07-22 18:26:15 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-07-22 18:26:15 -0700
commit3e3eefc2dcb2e0e31b224703a063e05dc8c67996 (patch)
tree9535fc9f721b7e184bab85a3476b09869d215e4c /tokenizer.h
parent77b6b0a9b2e7260884064dbac72f17bb5e86431f (diff)
Improvements to new parser. All functions and completions now parse.
Diffstat (limited to 'tokenizer.h')
-rw-r--r--tokenizer.h5
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