Adds division to multiplicative expression. (#2091)

* Multiplication and division have the same priority.
* A new builtin interface DivWith is added.
* In some tests expecting a compilation error (syntax error), the error
  message now says it is expecting SLASH or binary *.
This commit is contained in:
Junhee Cho authored and GitHub committed 2022-09-19 15:02:29 -07:00
1 parent 57cc4c6dec
commit 69d4363ea5
15 files changed
+89 -8

No files matched your search

+2
View File
@@ -123,6 +123,8 @@ auto ToString(Operator op) -> std::string_view {
return "<<";
case Operator::BitShiftRight:
return ">>";
case Operator::Div:
return "/";
case Operator::Neg:
case Operator::Sub:
return "-";