aboutsummaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2014-03-26 13:34:52 +0800
committerTeddy <ted.sybil@gmail.com>2014-03-26 13:34:52 +0800
commitef137d8acf0e48da2891066ba4bb2063e7bedbf5 (patch)
treec4da6b05f28d4412e4020e65147d8359a201bfad /ast.c
parentc3b22761ae47922b29de30d18a6a0f3c4541daf7 (diff)
start to implement semantics part
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ast.c b/ast.c
index 6bbc176..b07eca8 100644
--- a/ast.c
+++ b/ast.c
@@ -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
{