将代码拆分为多个文件 #3

Closed
opened 2023-08-28 15:41:30 +00:00 by szTom · 0 comments
Collaborator

至少拆分为分词模块、语法解析模块、证明验证模块和程序入口。另外单独拆分:

  • 出错误处理模块,可以考虑使用C++异常。
  • 文件读取模块,抽象读入操作。

把源代码分割为 .hpp.cpp,并且把 .hpp 放在 include 目录下。

备注:

创建 include 目录后,记得把

xmake.lua Line 15 in db6c6cc7aa
-- add_includedirs("include/")
取消注释。

至少拆分为分词模块、语法解析模块、证明验证模块和程序入口。另外单独拆分: - 出错误处理模块,可以考虑使用C++异常。 - 文件读取模块,抽象读入操作。 把源代码分割为 `.hpp` 和 `.cpp`,并且把 `.hpp` 放在 `include` 目录下。 备注: 创建 `include` 目录后,记得把 https://git.gzezfisher.top/ez_lcw/acpa/src/commit/db6c6cc7aae5d6a29d8ec251f7fa4b08628aeca8/xmake.lua#L15 取消注释。
szTom added this to the 8月迭代计划 project 2023-08-28 15:41:30 +00:00
szTom closed this issue 2023-08-29 12:37:27 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ez_lcw/acpa#3
No description provided.