parseh: support anonymous enums and enums with initializers

This commit is contained in:
Andrew Kelley
2016-04-22 21:43:48 -07:00
parent 8187396f64
commit 66163692ad
5 changed files with 240 additions and 193 deletions

View File

@@ -523,7 +523,8 @@ static void render_node(AstRender *ar, AstNode *node) {
AstNode *lhs = node->data.field_access_expr.struct_expr;
Buf *rhs = &node->data.field_access_expr.field_name;
render_node(ar, lhs);
fprintf(ar->f, ".%s", buf_ptr(rhs));
fprintf(ar->f, ".");
print_symbol(ar, rhs);
break;
}
case NodeTypeUse: