diff options
author | Teddy <[email protected]> | 2014-03-26 13:34:52 +0800 |
---|---|---|
committer | Teddy <[email protected]> | 2014-03-26 13:34:52 +0800 |
commit | ef137d8acf0e48da2891066ba4bb2063e7bedbf5 (patch) | |
tree | c4da6b05f28d4412e4020e65147d8359a201bfad /ast.c | |
parent | c3b22761ae47922b29de30d18a6a0f3c4541daf7 (diff) |
start to implement semantics part
Diffstat (limited to 'ast.c')
-rw-r--r-- | ast.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -306,7 +306,7 @@ char *cnode_debug_type_repr(CNode *ast) { case '~': type = "~"; break; case '!': type = "!"; break; case KW_SIZEOF: type = "sizeof"; break; - case EXP_POSTFIX: type = "pofix"; break; + case EXP_POSTFIX: type = "postfix"; break; case POSTFIX_ARR: type = "arr"; break; case POSTFIX_CALL: type = "call"; break; case POSTFIX_DOT: type = "dot"; break; @@ -367,7 +367,7 @@ char *cnode_debug_type_repr(CNode *ast) { assert(type); } if (aptr == abuff) - sprintf(buffer, "%s(%d,%d)", type, + sprintf(buffer, "%s(%d:%d)", type, ast->loc.row, ast->loc.col); else { |