WAC language tooling for MoonBit
| Package | Responsibility |
|---|---|
| span | Source text, positions and documented Unicode offset units |
| diagnostic | Stable codes, severity, source labels and recovery details |
| scanner | Lossless tokens, comments and whitespace |
| ast | Immutable typed nodes and child collections |
| cst | Immutable lossless concrete structure, including malformed input |
| parser | Recovering source-to-AST/CST parsing with diagnostics |
| traversal | Explicit-stack walks, folds, reductions, events, cursors and immutable rewrites |
| printer | Stack-safe canonical AST-to-source emission |
| formatter | Stack-safe CST formatting that preserves comments and meaning |
fn version() -> String