Commit Graph
2 Commits
Author SHA1 Message Date
aneurinandClaude Sonnet 5.5 d15c8fd3e6 Refuse to write a document's includes into one file by accident
- Write and WriteTo return an error for a document with includes unless the
  includes are inlined, instead of dropping the files they hold. Only
  WriteFiles collects included files and checks them for conflicts.
- ExpandVariables leaves comments as they are.
- An inlined file no longer leaves a line of its own for the include's line
  break.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 18:30:19 +00:00
aneurinandClaude Sonnet 5.5 3d2ab78a32 Add editing, writing and building documents
Header.Get, Set and Delete edit opcodes in place and keep the text around
them. Write and WriteFiles take WriteOptions to inline includes, expand
variables and set line endings. Build makes a document from a typed
Instrument, with options to split regions into included files and to
hoist repeated values into #define directives.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 17:41:34 +00:00