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 authored and leewei05 committed Sep 15, 2023
1 parent d486388 commit 214d125
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 214d125

Please sign in to comment.