From ef137d8acf0e48da2891066ba4bb2063e7bedbf5 Mon Sep 17 00:00:00 2001 From: Teddy Date: Wed, 26 Mar 2014 13:34:52 +0800 Subject: start to implement semantics part --- ast.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ast.c') 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 { -- cgit v1.2.3