summaryrefslogtreecommitdiff
path: root/src/parser.mly
diff options
context:
space:
mode:
authorKathy Gray2016-02-23 15:13:55 +0000
committerKathy Gray2016-02-23 15:19:53 +0000
commit941cfeba96830e8716a49a6f24755f68f1de2197 (patch)
tree1f2cf6bec99552d5ad7266c034988083a47dedfe /src/parser.mly
parent91cfc8b9a4d54a438f3f6dd4aa78c8a5264b90cd (diff)
Several fixes
Improve printing for asl to sail readability; Add -o option for selecting the name of file generation; Add additional initial check module for turning generated ast nodes into ready-to-type-check ast nodes
Diffstat (limited to 'src/parser.mly')
-rw-r--r--src/parser.mly8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/parser.mly b/src/parser.mly
index 27bc249a..3261551b 100644
--- a/src/parser.mly
+++ b/src/parser.mly
@@ -156,7 +156,7 @@ let make_vector_sugar order_set is_inc typ typ1 =
%token <string> String Bin Hex
%token <string> Amp At Carrot Div Eq Excl Gt Lt Plus Star Tilde
-%token <string> AmpAmp CarrotCarrot Colon ColonColon EqDivEq EqEq ExclEq ExclExcl
+%token <string> AmpAmp CarrotCarrot Colon ColonColon EqEq ExclEq ExclExcl
%token <string> GtEq GtEqPlus GtGt GtGtGt GtPlus HashGtGt HashLtLt
%token <string> LtEq LtEqPlus LtGt LtLt LtLtLt LtPlus StarStar TildeCarrot
@@ -166,7 +166,7 @@ let make_vector_sugar order_set is_inc typ typ1 =
%token <string> StarUnderSi StarUnderU StarUnderUi TwoCarrot PlusUnderS MinusUnderS
%token <string> AmpI AtI CarrotI DivI EqI ExclI GtI LtI PlusI StarI TildeI
-%token <string> AmpAmpI CarrotCarrotI ColonColonI EqDivEqI EqEqI ExclEqI ExclExclI
+%token <string> AmpAmpI CarrotCarrotI ColonColonI EqEqI ExclEqI ExclExclI
%token <string> GtEqI GtEqPlusI GtGtI GtGtGtI GtPlusI HashGtGtI HashLtLtI
%token <string> LtEqI LtEqPlusI LtGtI LtLtI LtLtLtI LtPlusI StarStarI TildeCarrotI
@@ -238,8 +238,6 @@ id:
{ idl (DeIid($3)) }
| Lparen Deinfix ColonColon Rparen
{ idl (DeIid($3)) }
- | Lparen Deinfix EqDivEq Rparen
- { idl (DeIid($3)) }
| Lparen Deinfix EqEq Rparen
{ idl (DeIid($3)) }
| Lparen Deinfix ExclEq Rparen
@@ -433,7 +431,7 @@ nexp_typ:
| Num Minus nexp_typ
{ tloc (ATyp_minus((tlocl (ATyp_constant $1) 1 1),$3)) }
| Lparen Num Minus nexp_typ Rparen
- { tloc (ATyp_minus((tlocl (ATyp_constant $2) 2 2),$4)) }
+ { tloc (ATyp_minus((tlocl (ATyp_constant $2) 2 2),$4)) }
tup_typ_list: