zerodds-lang-render 1.0.0-rc.7

Renders a language CST to text. Decides nothing: every decision sits in a rule and is therefore visible.
Documentation
  • Coverage
  • 100%
    162 out of 162 items documented0 out of 139 items with examples
  • Size
  • Source code size: 775.8 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.9 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • zero-objects/zero-dds
    18 5 2
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • SandraK82

zerodds-lang-render

Turns a language CST into text.

The renderer decides nothing. It does not consult the common AST, it does not branch on anything but the node in hand, and it never inserts a construct that is not in the tree. Every decision about what generated code contains sits in a rule, where it can be compared with the same rule for another language.

Each language renders in one documented style — Rust as rustfmt would, C++ and C in the brace style the previous emitters used, Java in the Oracle convention. Style is not configurable; a downstream formatter is the place for that.

This is the one crate where a String appears, and it appears only at the leaves.

See docs/specs/zerodds-lang-cst-1.0.md §5.