diff options
Diffstat (limited to 'src/tpc.y')
-rw-r--r-- | src/tpc.y | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |