bug fix
This commit is contained in:
@@ -540,6 +540,7 @@ static Node *parse_statement(Context *ctx)
|
||||
switch(current(ctx))
|
||||
{
|
||||
case '(':
|
||||
case '[':
|
||||
case '+':
|
||||
case '-':
|
||||
case TINT:
|
||||
|
||||
+1
-1
@@ -184,7 +184,7 @@ def serialize(node):
|
||||
|
||||
elif node['kind'] == 'do-while':
|
||||
|
||||
return 'do ' + serialize(node['body']) + ' while: ' + serialize_expr(node['cond']) + ';'
|
||||
return 'do ' + serialize(node['body']) + ' while ' + serialize_expr(node['cond']) + ';'
|
||||
|
||||
elif node['kind'] == 'return':
|
||||
|
||||
|
||||
Reference in New Issue
Block a user