Generate top-level code from symbol tables
This commit is contained in:
@ -312,9 +312,14 @@ namespace elna::boot
|
||||
return std::static_pointer_cast<type_info>(shared_from_this());
|
||||
}
|
||||
|
||||
procedure_info::procedure_info(const procedure_type symbol, const std::vector<std::string> names)
|
||||
procedure_info::procedure_info(const procedure_type symbol, const std::vector<std::string> names,
|
||||
std::shared_ptr<symbol_table> parent_table)
|
||||
: symbol(symbol), names(names)
|
||||
{
|
||||
if (parent_table != nullptr)
|
||||
{
|
||||
this->symbols = std::make_shared<symbol_table>(parent_table);
|
||||
}
|
||||
}
|
||||
|
||||
std::shared_ptr<procedure_info> procedure_info::is_procedure()
|
||||
|
Reference in New Issue
Block a user