Implement while loops
This commit is contained in:
@ -525,5 +525,32 @@ namespace source
|
||||
{
|
||||
return *m_body;
|
||||
}
|
||||
|
||||
const char *print_binary_operator(const binary_operator operation)
|
||||
{
|
||||
switch (operation)
|
||||
{
|
||||
case binary_operator::sum:
|
||||
return "+";
|
||||
case binary_operator::subtraction:
|
||||
return "-";
|
||||
case binary_operator::multiplication:
|
||||
return "*";
|
||||
case binary_operator::division:
|
||||
return "/";
|
||||
case binary_operator::equals:
|
||||
return "=";
|
||||
case binary_operator::not_equals:
|
||||
return "/=";
|
||||
case binary_operator::less:
|
||||
return "<";
|
||||
case binary_operator::less_equal:
|
||||
return "<=";
|
||||
case binary_operator::greater:
|
||||
return ">";
|
||||
case binary_operator::greater_equal:
|
||||
return ">=";
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user