Don't append return to void procedures

This commit is contained in:
2025-01-13 11:55:19 +01:00
parent b45b00a3f6
commit 3bd4c3af6f
7 changed files with 138 additions and 46 deletions

View File

@ -31,6 +31,9 @@ namespace gcc
void enter_scope();
tree_symbol_mapping leave_scope();
void build_binarary_operation(bool condition, source::binary_expression *expression,
tree_code operator_code, tree left, tree right, tree target_type);
public:
generic_visitor();

View File

@ -24,12 +24,15 @@ namespace source
less,
greater,
less_equal,
greater_equal
greater_equal,
disjunction,
conjunction
};
enum class unary_operator
{
reference
reference,
negation
};
class variable_declaration;