|
@@ -121,6 +121,7 @@ t_io_infos *file_infos; /* input and output files used by the compiler */
|
|
|
%token RETURN
|
|
|
%token READ
|
|
|
%token WRITE
|
|
|
+%token BRANGE
|
|
|
|
|
|
%token <label> DO
|
|
|
%token <while_stmt> WHILE
|
|
@@ -565,6 +566,10 @@ exp: NUMBER { $$ = create_expression ($1, IMMEDIATE); }
|
|
|
(program, exp_r0, $2, SUB);
|
|
|
}
|
|
|
}
|
|
|
+ | BRANGE LPAR exp COMMA exp COMMA exp RPAR {
|
|
|
+ $$ = handle_brange_op(program, $3, $5, $7);
|
|
|
+ }
|
|
|
+
|
|
|
;
|
|
|
|
|
|
%%
|