Skip to content

[0039] 实现 (liii config-parser) INI 配置文件解析库#776

Open
Kabukimono-Sakura wants to merge 4 commits intoMoganLab:mainfrom
Kabukimono-Sakura:feat/config-parser
Open

[0039] 实现 (liii config-parser) INI 配置文件解析库#776
Kabukimono-Sakura wants to merge 4 commits intoMoganLab:mainfrom
Kabukimono-Sakura:feat/config-parser

Conversation

@Kabukimono-Sakura
Copy link
Copy Markdown
Contributor

概述

  • 实现 (liii config-parser) 库,参考 Python configparser 模块设计
  • 提供 16 个核心 API:读取、查询、修改、写出
  • 支持 DEFAULT section 继承、Key 大小写不敏感、多分隔符/注释符
  • 包含 28 个测试场景、64 个断言,涵盖 Python configparser 官方 Quick Start 示例

变更文件

  • goldfish/liii/config-parser.scm: 核心实现(16 个 API)
  • tests/liii/config-parser-test.scm: 测试用例(64 checks, 0 failed)
  • README.md / README_ZH.md: 标准库表格新增条目

验证与测试

  • 代码格式化: bin/gf fmt
  • 自动化测试:bin/gf tests/liii/config-parser-test.scm 结果为 64 correct, 0 failed
  • 边界处理:注释、空行、多分隔符、大小写、布尔值转换、DEFAULT 继承、错误处理

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant