leekscript-analysis 0.1.0

LeekScript semantic analysis: scope, validation, type checking
Documentation
  • Coverage
  • 65.49%
    74 out of 113 items documented0 out of 9 items with examples
  • Size
  • Source code size: 199.53 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 9.83 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 24s Average build duration of successful builds.
  • all releases: 24s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • NyalephTheCat

Semantic analysis: scope building and validation.

Signature files (.sig): When .sig files are provided (e.g. stdlib), they are parsed with the signature grammar, then type expressions in each function/global declaration are turned into Type via parse_type_expr and seeded into the root scope. The type checker uses these for inference (e.g. call return types, global variable types). Use analyze_with_signatures(program_root, signature_roots) so that built-in names resolve and types are inferred from the .sig definitions.