zerodds-idl-cst 1.0.0-rc.7

Lossless concrete syntax tree for OMG IDL 4.2: tokens with attached trivia, a green/red tree that reproduces its input byte for byte.
Documentation
  • Coverage
  • 100%
    290 out of 290 items documented0 out of 70 items with examples
  • Size
  • Source code size: 108.2 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.1 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s 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-idl-cst

The syntax tree that keeps everything it read.

A lossless concrete syntax tree for OMG IDL 4.2: tokens carry their trivia, and a green/red tree reproduces its input byte for byte — including for a file that fails to parse, because error recovery has to hand back what it could not read.

SyntaxSpans narrows a span to the text it covers. A node's own span includes its leading trivia, which is right for reproducing the file and wrong for pointing a diagnostic at a declaration; the two questions have two answers and both live here.

This crate resolves no names and knows no types. It is the shape of the file, not its meaning; zerodds-idl-lower supplies that.