Allow extern variables
This commit is contained in:
@@ -348,12 +348,18 @@ namespace elna::boot
|
||||
variable_declaration(const struct position position,
|
||||
std::vector<identifier_definition>&& identifier, std::shared_ptr<type_expression> variable_type,
|
||||
expression *body = nullptr);
|
||||
variable_declaration(const struct position position,
|
||||
std::vector<identifier_definition>&& identifier, std::shared_ptr<type_expression> variable_type,
|
||||
std::monostate);
|
||||
|
||||
void accept(parser_visitor *visitor) override;
|
||||
|
||||
bool has_initializer() const;
|
||||
|
||||
const std::vector<identifier_definition> identifiers;
|
||||
type_expression& variable_type();
|
||||
expression *const body;
|
||||
expression *const body{ nullptr };
|
||||
const bool is_extern{ false };
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user