Move all number comparison clause gaurds into a single block
@@ -307,54 +307,38 @@ ClauseGuard4: UntypedClauseGuard = {
right: Box::new(right),
},
- ClauseGuard5 => <>,
-}
-
-ClauseGuard5: UntypedClauseGuard = {
- <s:@L> <left:ClauseGuard5> ">." <right:ClauseGuard6> <e:@L> => ClauseGuard::GtFloat {
+ <s:@L> <left:ClauseGuard4> ">." <right:ClauseGuard5> <e:@L> => ClauseGuard::GtFloat {
location: location(s, e),
typ: (),
left: Box::new(left),
right: Box::new(right),
},
- ClauseGuard6 => <>,
-}
-
-ClauseGuard6: UntypedClauseGuard = {
- <s:@L> <left:ClauseGuard6> ">=." <right:ClauseGuard7> <e:@L> => ClauseGuard::GtEqFloat {
+ <s:@L> <left:ClauseGuard4> ">=." <right:ClauseGuard5> <e:@L> => ClauseGuard::GtEqFloat {
location: location(s, e),
typ: (),
left: Box::new(left),
right: Box::new(right),
},
- ClauseGuard7 => <>,
-}
-
-ClauseGuard7: UntypedClauseGuard = {
- <s:@L> <left:ClauseGuard7> "<." <right:ClauseGuard8> <e:@L> => ClauseGuard::LtFloat {
+ <s:@L> <left:ClauseGuard4> "<." <right:ClauseGuard5> <e:@L> => ClauseGuard::LtFloat {
location: location(s, e),
typ: (),
left: Box::new(left),
right: Box::new(right),
},
- ClauseGuard8 => <>,
-}
-
-ClauseGuard8: UntypedClauseGuard = {
- <s:@L> <left:ClauseGuard8> "<=." <right:ClauseGuard9> <e:@L> => ClauseGuard::LtEqFloat {
+ <s:@L> <left:ClauseGuard4> "<=." <right:ClauseGuard5> <e:@L> => ClauseGuard::LtEqFloat {
location: location(s, e),
typ: (),
left: Box::new(left),
right: Box::new(right),
},
- ClauseGuard9 => <>,
+ ClauseGuard5 => <>,
}
-ClauseGuard9: UntypedClauseGuard = {
+ClauseGuard5: UntypedClauseGuard = {
<s:@L> <name:VarName> <e:@L> => ClauseGuard::Var {
location: location(s, e),
typ: (),
