mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
[Tolk] Completely rework stdlib: multiple files and renaming
- split stdlib.tolk into multiple files (tolk-stdlib/ folder) (the "core" common.tolk is auto-imported, the rest are needed to be explicitly imported like "@stdlib/tvm-dicts.tolk") - all functions were renamed to long and clear names - new naming is camelCase
This commit is contained in:
parent
e2edadba92
commit
12ff28ac94
48 changed files with 2966 additions and 2458 deletions
|
@ -132,9 +132,20 @@ static void generate_output_func(SymDef* func_sym) {
|
|||
}
|
||||
}
|
||||
|
||||
void pipeline_generate_fif_output_to_std_cout() {
|
||||
void pipeline_generate_fif_output_to_std_cout(const AllSrcFiles& all_src_files) {
|
||||
std::cout << "\"Asm.fif\" include\n";
|
||||
std::cout << "// automatically generated from " << G.generated_from << std::endl;
|
||||
std::cout << "// automatically generated from ";
|
||||
bool need_comma = false;
|
||||
for (const SrcFile* file : all_src_files) {
|
||||
if (!file->is_stdlib_file()) {
|
||||
if (need_comma) {
|
||||
std::cout << ", ";
|
||||
}
|
||||
std::cout << file->rel_filename;
|
||||
need_comma = true;
|
||||
}
|
||||
}
|
||||
std::cout << std::endl;
|
||||
std::cout << "PROGRAM{\n";
|
||||
|
||||
bool has_main_procedure = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue