summaryrefslogtreecommitdiffstats
path: root/dimension/parse.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-11-05 01:36:53 -0500
committerTavian Barnes <tavianator@gmail.com>2009-11-05 01:36:53 -0500
commit13d2d1973638e263814c94aacc5f0cb094d92a35 (patch)
treefaf9292d06bd890704bdd5f1f07a164569cb8e56 /dimension/parse.h
parent41da11a59c3095c19bbca605f8421304998b46ab (diff)
downloaddimension-13d2d1973638e263814c94aacc5f0cb094d92a35.tar.xz
Add file, line, and column information to astnodes.
Diffstat (limited to 'dimension/parse.h')
-rw-r--r--dimension/parse.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/dimension/parse.h b/dimension/parse.h
index d4420fa..2dd31be 100644
--- a/dimension/parse.h
+++ b/dimension/parse.h
@@ -42,6 +42,10 @@ struct dmnsn_astnode {
/* Generic data pointer */
void *ptr;
+
+ /* File name, and line and column numbers from source code */
+ char *filename;
+ unsigned int line, col;
};
/* The workhorse */