aboutsummaryrefslogtreecommitdiff
path: root/src/tpc.y
diff options
context:
space:
mode:
Diffstat (limited to 'src/tpc.y')
-rw-r--r--src/tpc.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tpc.y b/src/tpc.y
index d8fd1f1..64652d9 100644
--- a/src/tpc.y
+++ b/src/tpc.y
@@ -121,8 +121,8 @@ Instr:
121| ';' 121| ';'
122| RETURN Exp ';' { gen_function_return(return_type, $<type>2); } 122| RETURN Exp ';' { gen_function_return(return_type, $<type>2); }
123| RETURN ';' { gen_function_return(return_type, VOID_T);} 123| RETURN ';' { gen_function_return(return_type, VOID_T);}
124| READE '(' IDENT ')' ';' { gen_reade($<ident>3); } 124| READE '(' IDENT ')' ';' { gen_reade($<ident>3, scope); }
125| READC '(' IDENT ')' ';' { gen_readc($<ident>3); } 125| READC '(' IDENT ')' ';' { gen_readc($<ident>3, scope); }
126| PRINT '(' Exp ')' ';' { gen_print($<type>3);} 126| PRINT '(' Exp ')' ';' { gen_print($<type>3);}
127| IF '(' Exp IfHandling')' Instr { gen_if_label($<num>4); } 127| IF '(' Exp IfHandling')' Instr { gen_if_label($<num>4); }
128| IF '(' Exp IfHandling')' Instr ELSE IfEndHandling Instr IfElseEndHandling 128| IF '(' Exp IfHandling')' Instr ELSE IfEndHandling Instr IfElseEndHandling