Annote AST nodes with source information
This commit is contained in:
parent
5e0e74a47d
commit
2823ea5de3
3 changed files with 196 additions and 164 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue