From 33c3e2121e185e619cd993280b23038b4490f4f5 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 27 Oct 2009 20:39:29 -0400 Subject: Add line and column numbers to tokens. --- dimension/tokenize.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dimension/tokenize.h') diff --git a/dimension/tokenize.h b/dimension/tokenize.h index 91d59f6..938eb5f 100644 --- a/dimension/tokenize.h +++ b/dimension/tokenize.h @@ -45,6 +45,9 @@ typedef struct dmnsn_token dmnsn_token; struct dmnsn_token { dmnsn_token_type type; char *value; + + /* Line and column numbers from source code */ + unsigned int line, col; }; dmnsn_array *dmnsn_tokenize(FILE *file); -- cgit v1.2.3