fix ast printer names

master
Josh Wolfe 2015-11-30 22:40:52 -07:00
parent 00f4c05784
commit 18cfcfe44f
2 changed files with 5 additions and 5 deletions

View File

@ -363,7 +363,7 @@ static TypeTableEntry * analyze_expression(CodeGen *g, BlockContext *context, Ty
return g->builtin_types.entry_i32;
case NodeTypeStringLiteral:
zig_panic("TODO");
zig_panic("TODO: string literal");
case NodeTypeUnreachable:
return g->builtin_types.entry_unreachable;

View File

@ -229,18 +229,18 @@ void ast_print(AstNode *node, int indent) {
ast_print(node->data.prefix_op_expr.primary_expr, indent + 2);
break;
case NodeTypeNumberLiteral:
fprintf(stderr, "PrimaryExpr Number %s\n",
fprintf(stderr, "NumberLiteral %s\n",
buf_ptr(&node->data.number));
break;
case NodeTypeStringLiteral:
fprintf(stderr, "PrimaryExpr String '%s'\n",
fprintf(stderr, "StringLiteral '%s'\n",
buf_ptr(&node->data.string));
break;
case NodeTypeUnreachable:
fprintf(stderr, "PrimaryExpr Unreachable\n");
fprintf(stderr, "Unreachable\n");
break;
case NodeTypeSymbol:
fprintf(stderr, "PrimaryExpr Symbol %s\n",
fprintf(stderr, "Symbol %s\n",
buf_ptr(&node->data.symbol));
break;
case NodeTypeUse: