Replace Byte pointer with a generic pointer type
This commit is contained in:
@ -180,6 +180,8 @@ namespace elna::boot
|
||||
build_procedure(definition->heading()), definition->parameter_names);
|
||||
|
||||
this->symbols->enter(definition->identifier.identifier, info);
|
||||
this->symbols = std::make_shared<symbol_table>(this->symbols);
|
||||
|
||||
if (definition->body.has_value())
|
||||
{
|
||||
for (constant_definition *const constant : definition->body.value().constants())
|
||||
@ -195,6 +197,7 @@ namespace elna::boot
|
||||
statement->accept(this);
|
||||
}
|
||||
}
|
||||
this->symbols = this->symbols->scope();
|
||||
}
|
||||
|
||||
void declaration_visitor::visit(assign_statement *statement)
|
||||
|
@ -350,7 +350,7 @@ namespace elna::boot
|
||||
result->enter("Word", std::make_shared<type_info>(type(std::make_shared<primitive_type>("Word"))));
|
||||
result->enter("Char", std::make_shared<type_info>(type(std::make_shared<primitive_type>("Char"))));
|
||||
result->enter("Bool", std::make_shared<type_info>(type(std::make_shared<primitive_type>("Bool"))));
|
||||
result->enter("Byte", std::make_shared<type_info>(type(std::make_shared<primitive_type>("Byte"))));
|
||||
result->enter("Pointer", std::make_shared<type_info>(type(std::make_shared<primitive_type>("Pointer"))));
|
||||
result->enter("Float", std::make_shared<type_info>(type(std::make_shared<primitive_type>("Float"))));
|
||||
result->enter("String", std::make_shared<type_info>(type(std::make_shared<primitive_type>("String"))));
|
||||
|
||||
|
Reference in New Issue
Block a user