cjc-ast 0.1.3

Abstract syntax tree definitions for CJC
Documentation
  • Coverage
  • 80.05%
    325 out of 406 items documented0 out of 119 items with examples
  • Size
  • Source code size: 139.72 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 17.45 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 18s Average build duration of successful builds.
  • all releases: 18s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • AdamEzzat1/CJC
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • AdamEzzat1

Abstract Syntax Tree definitions for the CJC compiler.

This crate defines the complete AST node taxonomy produced by [cjc_parser]: [Program], [Stmt]/[StmtKind], [Expr]/[ExprKind], [Decl]/[DeclKind], type expressions ([TypeExpr]/[TypeExprKind]), patterns ([Pattern]/[PatternKind]), and all supporting structures (identifiers, spans, operators, etc.).

This is a leaf crate with zero internal dependencies, ensuring it can be consumed by every downstream stage of the compiler pipeline without cycles.

Submodules

  • [visit] — Read-only visitor trait and walk functions for AST traversal
  • [metrics] — Structural statistics (node counts, depths, feature flags)
  • [validate] — Lightweight structural validation before HIR lowering
  • [inspect] — Deterministic text dumps for debugging and testing
  • [node_utils] — Pure query methods on [Expr], [Block], and [Program]