aboutsummaryrefslogtreecommitdiff
path: root/src/printer.cpp
diff options
context:
space:
mode:
authorgingerBill <ginger.bill.22@gmail.com>2016-07-11 00:10:15 +0100
committergingerBill <ginger.bill.22@gmail.com>2016-07-11 00:10:15 +0100
commit9f90ff50cf4f93e6c6bb622bc2098dc7cea7f240 (patch)
treedbc084bf93b054808dfdf1582cfaaf279537cee9 /src/printer.cpp
parentf7a669d342c96451a3e0be84e2e51af8631f90ec (diff)
Tags, enclosed proc results and better error handling
Diffstat (limited to 'src/printer.cpp')
-rw-r--r--src/printer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/printer.cpp b/src/printer.cpp
index 26b9e0c2c..f34dd4559 100644
--- a/src/printer.cpp
+++ b/src/printer.cpp
@@ -24,6 +24,7 @@ void print_ast(AstNode *node, isize indent) {
gb_printf("(tag)\n");
print_indent(indent+1);
print_token(node->tag_expression.name);
+ print_ast(node->tag_expression.expression, indent+1);
break;
case AstNode_UnaryExpression:
@@ -137,7 +138,7 @@ void print_ast(AstNode *node, isize indent) {
gb_printf("(decl:proc,immutable)\n");
print_ast(node->procedure_declaration.procedure_type, indent+1);
print_ast(node->procedure_declaration.body, indent+1);
- print_ast(node->procedure_declaration.tag, indent+1);
+ print_ast(node->procedure_declaration.tag_list, indent+1);
break;
case AstNode_TypeDeclaration: