Skip to content

Commit

Permalink
Generate code of modulo expression
Browse files Browse the repository at this point in the history
  • Loading branch information
Lai-YT committed Sep 15, 2023
1 parent c45fde4 commit 68f48f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,9 @@ std::string DivExprNode::Op_() const {
return "/";
}

std::string ModExprNode::OpName_() const {}
std::string ModExprNode::OpName_() const {
return "rem";
}

std::string ModExprNode::Op_() const {
return "%";
Expand Down

0 comments on commit 68f48f6

Please sign in to comment.