fix ast printer names
parent
00f4c05784
commit
18cfcfe44f
|
@ -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;
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue