ruby: slicc: allow mathematical operations on Ticks
This commit is contained in:
parent
35d8e5b52b
commit
380a2ca918
1 changed files with 1 additions and 0 deletions
|
@ -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"),
|
||||
|
|
Loading…
Reference in a new issue