writeonce/compiler/test/golden/tokens/gotcha.expected
shoney.arickathil 012562290d feat(compiler): Tasks 1-4 — scaffold, diagnostics, lexer, declaration parser
- Task 1: OCaml/dune scaffold with woc CLI (exit codes 0/1/2), just woc-build/woc-test
- Task 2: Diagnostics module — WO-E coded diagnostics with excerpts, related sites, ordered dedup collector, exit-code decision
- Task 3: Newline-significant lexer mirroring rt conventions (self/me/subscribe/insert stay idents), --dump-tokens, golden test framework with bless mode
- Task 4: Declaration parser — class/type/interface/fn signatures, @gc/@table annotations, brace-depth skip-on-block (service/policy/on), decl-level recovery, --dump-ast goldens
- 13 golden fixtures (tokens + AST) with WOC_BLESS=1 support
- just woc-test green (14 diag + 93 runner checks)
2026-08-10 09:00:08 +02:00

28 lines
391 B
Text

1:58 NEWLINE
2:1 IDENT(self)
2:6 IDENT(me)
2:9 IDENT(subscribe)
2:19 IDENT(receive)
2:27 IDENT(insert)
2:34 IDENT(select)
2:40 NEWLINE
3:1 KW_TYPE
3:6 KW_CLASS
3:12 KW_INTERFACE
3:22 KW_FN
3:25 KW_LET
3:29 KW_MUT
3:33 KW_TAKE
3:38 KW_RETURN
3:45 KW_IF
3:48 KW_ELSE
3:53 KW_WHILE
3:59 KW_FOR
3:63 KW_IN
3:66 KW_TRUE
3:71 KW_FALSE
3:76 NEWLINE
4:1 KW_INSERT
4:8 KW_SELECT
4:14 NEWLINE
5:1 EOF