Skip to content

Commit

Permalink
remove unneeded loc:
Browse files Browse the repository at this point in the history
  • Loading branch information
bywang committed Aug 16, 2024
1 parent 2e1a633 commit 31dded7
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions ocaml/parser/gimpleParser.mly
Original file line number Diff line number Diff line change
Expand Up @@ -271,30 +271,6 @@ loc:
Const (Z.to_int $10))) } }
;

(*
loc:
ID { { lty = Void; lop = Var $1;
loffset = Const 0 } }
| LPAREN typ RPAREN ID ADDOP BYTE { { lty = $2; lop = Var $4;
loffset = Const $6 } }
| LPAREN typ RPAREN ID { { lty = $2; lop = Var $4;
loffset = Const 0 } }
| LPAREN typ RPAREN ANDOP ID { { lty = $2; lop = Ref (Var $5);
loffset = Const 0 } }
| LPAREN typ RPAREN ANDOP ID ADDOP BYTE { { lty = $2; lop = Ref (Var $5);
loffset = Const $7 } }
| LPAREN typ RPAREN ANDOP ID ADDOP ID MULOP NUM
{ { lty = $2; lop = Ref (Var $5);
loffset = Mul (Var $7, Const (Z.to_int $9)) } }
| LPAREN typ RPAREN ANDOP ID ADDOP BYTE ADDOP ID MULOP NUM
{ { lty = $2; lop = Ref (Var $5);
loffset = Add (Const $7, Mul (Var $9, Const (Z.to_int $11))) } }
| LPAREN typ RPAREN ID ADDOP ID MULOP NUM
{ { lty = $2; lop = Var $4;
loffset = Mul (Var $6, Const (Z.to_int $8)) } }
;
*)

condition:
| op EEQOP op { Eq ($1, $3) }
| op NEQOP op { Neq ($1, $3) }
Expand Down

0 comments on commit 31dded7

Please sign in to comment.