Files
legis/examples
claude 33bd4a78ff Phase 0+1: workspace scaffolding and lexer
Stand up the Cargo workspace for the Legis compiler and implement the lexer,
the first stage of the pipeline described in the v1.0 specification.

- legis-diag: Diagnostic type plus the banned-jargon guard that the whole
  toolchain is tested against (no forbidden programming term may appear in any
  message). Whole-word, underscore-aware matching so quoted code identifiers
  are not false positives.
- legis-lexer: logos-based lexer covering the full token list. Numbers carry no
  sign (unary minus is a parser concern), text and multi-line text values,
  doc comments preserved while line/block comments are dropped, longest-match
  tags and operators, plain-English lexer errors.
- legis-cli: the `legis` binary with a `tokens` inspection command.
- examples/calculator.lgi: the specification's reference program, the milestone
  the pipeline is built toward.
- PLAN.md: phased implementation roadmap (LLVM-from-start).

18 tests pass; fmt and clippy clean. The lexer tokenizes the reference
calculator with no errors.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 16:05:27 -05:00
..