diff options
Diffstat (limited to 'dimension/tokenize.h')
-rw-r--r-- | dimension/tokenize.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dimension/tokenize.h b/dimension/tokenize.h index cc8148f..35255c3 100644 --- a/dimension/tokenize.h +++ b/dimension/tokenize.h @@ -62,10 +62,11 @@ struct dmnsn_token { dmnsn_token_type type; char *value; - /* Line and column numbers from source code */ + /* File name, and line and column numbers from source code */ + char *filename; unsigned int line, col; }; -dmnsn_array *dmnsn_tokenize(FILE *file); +dmnsn_array *dmnsn_tokenize(const char *filename, FILE *file); void dmnsn_delete_tokens(dmnsn_array *tokens); void dmnsn_print_token_sexpr(FILE *file, dmnsn_array *tokens); |