[1131] 添加 stem 格式(等价于 ts,Scheme S-expression 存储)#3857
Merged
Conversation
- devel/1131.md 增加 File -> Open 对话框与 python.stem 说明 - 使用 stem 转换器重新生成 python.stem,修正手动版本结构错误 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
验证 python.stem 与 python.ts 解析结果一致。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
stem文件格式,语义等价于ts,使用 UTF-8 编码的 Scheme S-expression 持久化。TeXmacs/plugins/stem/progs/data/stem.scm,复用stm序列化并做herk-tree/utf8-tree转码。new_buffer.cpp的attach_subformat、文件打开对话框中加入stem。moebius/moebius/data/scheme_der.cpp对) ;comment行尾注释的处理,避免插入空字符串子节点。python.ts为试点生成python.stem,并新增等价性测试。Test plan
xmake b stem构建通过xmake r 70_7通过,format-from-suffix \"stem\" => \"stem\"xmake r stem_python_equiv通过,python.stem与python.ts解析结果一致load-buffer python.stem验证加载后文档非空🤖 Generated with Claude Code