Skip to content

Implement compile-time format attribute parsing#1

Merged
wjjsn merged 1 commit into
mainfrom
codex/fix-fwrite-parameter-parsing
Oct 22, 2025
Merged

Implement compile-time format attribute parsing#1
wjjsn merged 1 commit into
mainfrom
codex/fix-fwrite-parameter-parsing

Conversation

@wjjsn
Copy link
Copy Markdown
Owner

@wjjsn wjjsn commented Oct 22, 2025

Summary

  • add compile-time analysis of format strings to build attribute tables for literals, escapes, and placeholders
  • route argument printing through the analyzed attributes with support for integral, floating, and string types
  • update the example program to exercise placeholder and escaped brace handling

Testing

  • cmake --build build
  • ./build/em_fmt

https://chatgpt.com/codex/tasks/task_b_68f823a21a74832d96dbc52440b11271

@wjjsn
Copy link
Copy Markdown
Owner Author

wjjsn commented Oct 22, 2025

1.write_argument应该使用concept或模板特化以支持对自定义类型的支持
2.打印float时不应该申请这么大的栈内存。
3.应该添加{:xx}格式解析

@wjjsn wjjsn merged commit 70a298a into main Oct 22, 2025
1 check passed
@wjjsn wjjsn deleted the codex/fix-fwrite-parameter-parsing branch October 22, 2025 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant