Files
EVEngine/docs/dev/superpowers
西风逍遥游 6c5ae409f5 feat(dnut): add the L1 .dnut sequence language and the RPG story dialect
New L1 module `dnut_interpreter` owns the shared lexer, the registry-driven
compiler, the compiled sequence model and the cross-frame interpreter. Domain
vocabularies are registered by the modules that own them; the core never
interprets a domain payload.

- `DnutLexer` / `DnutCompiler`: shared `.dnut` front end with statement-level
  error recovery, skipping of non-`story` top-level blocks, and step legality
  deferred entirely to the registry.
- `SequenceAsset` / `SequenceRuntime`: compiled sequence model plus a
  cross-frame interpreter with call frames, a bounded execution budget, and
  version-checked capture/restore of the cursor.
- `StepKindRegistry`: strict step validation that rejects undeclared fields and
  runs the descriptor's own domain invariants.
- `rpg`: `RpgDialect` registers the RPG vocabulary (movement, animation, object
  selection, skill/attribute/inventory/equipment changes) behind a Pimpl
  boundary, so public headers stay free of cross-module includes.
- 17 unit tests across `test/dnut_interpreter.cpp` and `test/rpg_dialect.cpp`.
2026-09-17 17:19:02 +08:00
..