diff options
Diffstat (limited to 'dimension/common.rules')
-rw-r--r-- | dimension/common.rules | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/dimension/common.rules b/dimension/common.rules index 9383d4b..a987c69 100644 --- a/dimension/common.rules +++ b/dimension/common.rules @@ -22,14 +22,8 @@ /* Fundamental language elements */ IDENTIFIER: "identifier" { - const char *id = $1; - dmnsn_astnode *symbol = dmnsn_find_symbol(symtable, id); - while (symbol && symbol->type == DMNSN_AST_IDENTIFIER) { - id = symbol->ptr; - symbol = dmnsn_find_symbol(symtable, id); - } $$ = dmnsn_new_astleaf(DMNSN_AST_IDENTIFIER, @$); - $$.ptr = dmnsn_strdup(id); + $$.ptr = dmnsn_strdup($1); dmnsn_free($1); } ; |