Ver1.0 && address and alignment support && better console log
This commit is contained in:
+711
-811
File diff suppressed because it is too large
Load Diff
@@ -11,8 +11,8 @@ type_node *type_list_head = nullptr;
|
||||
// 宏定义列表
|
||||
define_node *define_list_head = nullptr;
|
||||
|
||||
// 源文件列表
|
||||
file_node *source_file_list_head = nullptr;
|
||||
// 源文件及头文件列表
|
||||
file_node *source_and_header_file_list_head = nullptr;
|
||||
|
||||
// 文件列表
|
||||
FILE *input_reference_A2L_file = nullptr;
|
||||
|
||||
+24
-7
@@ -13,25 +13,42 @@ extern "C"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
printf("\n\n");
|
||||
log_printf(LOG_SYS_INFO, "SrcToA2L Ver1.0");
|
||||
log_printf(LOG_SYS_INFO, "Auther: LuChiChick");
|
||||
log_printf(LOG_SYS_INFO, "%s\n%s\n%s\n\n", "Open source links:",
|
||||
" ├─Github: https://git.luchichick.cn/LuChiChick/SrcToA2L",
|
||||
" └─Personal Git System: https://git.luchichick.cn/LuChiChick/SrcToA2L");
|
||||
|
||||
log_printf(LOG_SYS_INFO, "Start argument solve.\n\n");
|
||||
|
||||
// 处理输入部分
|
||||
solve_args(argc, argv);
|
||||
|
||||
printf("\n\n");
|
||||
|
||||
// 进行宏定义解析
|
||||
printf("\n\n");
|
||||
log_printf(LOG_SYS_INFO, "Start constant value definition solve.\n\n");
|
||||
solve_defines();
|
||||
|
||||
printf("\n\n");
|
||||
|
||||
// 进行类型解析
|
||||
printf("\n\n");
|
||||
log_printf(LOG_SYS_INFO, "Start compound type definition solve.\n\n");
|
||||
solve_types();
|
||||
|
||||
// 处理中间件
|
||||
printf("\n\n");
|
||||
log_printf(LOG_SYS_INFO, "Start calibration and measurement solve.\n\n");
|
||||
solve_middleware();
|
||||
|
||||
// 处理最终输出
|
||||
solve_A2L_output();
|
||||
if (input_reference_A2L_file != nullptr)
|
||||
{
|
||||
printf("\n\n");
|
||||
log_printf(LOG_SYS_INFO, "Start merging middleware into reference A2L file.\n\n");
|
||||
solve_A2L_output();
|
||||
}
|
||||
|
||||
print_log(LOG_SUCCESS, "Done.\nVer0.3");
|
||||
log_printf(LOG_SYS_INFO, "Done.");
|
||||
clean_and_exit(0);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
+722
-408
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user