From 13d2d1973638e263814c94aacc5f0cb094d92a35 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 5 Nov 2009 01:36:53 -0500 Subject: Add file, line, and column information to astnodes. --- dimension/parse.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dimension/parse.h') 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 */ -- cgit v1.2.3