ruby: slicc: allow mathematical operations on Ticks

This commit is contained in:
Nilay Vaish 2015-08-11 11:39:23 -05:00
parent 35d8e5b52b
commit 380a2ca918

View file

@ -67,6 +67,7 @@ class InfixOperatorExprAST(ExprAST):
elif self.op in ("+", "-", "*", "/"):
expected_types = [("int", "int", "int"),
("Cycles", "Cycles", "Cycles"),
("Tick", "Tick", "Tick"),
("Cycles", "int", "Cycles"),
("Scalar", "int", "Scalar"),
("int", "bool", "int"),