Annote AST nodes with source information

This commit is contained in:
Randy Heit 2013-08-28 22:59:03 -05:00
commit 2823ea5de3
3 changed files with 196 additions and 164 deletions

View file

@ -186,6 +186,7 @@ static void DoParse(const char *filename)
while (sc.GetToken())
{
value.SourceLoc = sc.GetMessageLine();
if (sc.TokenType == TK_StringConst)
{
value.String = state.Strings.Alloc(sc.String, sc.StringLen);