docs: document remaining packages and simplify AST types #45

Merged
mvhutz merged 15 commits from docs/rest into main 2026-02-10 01:15:42 +00:00
Owner

Summary

  • Added doc comments across the codebase: pkg/lambda, pkg/saccharine, pkg/codec, pkg/engine, pkg/iterator, pkg/set, pkg/convert, internal/registry, and cmd/lambda.
  • Made lambda and saccharine expression structs use public fields instead of getters, matching go/ast conventions.
  • Removed superfluous constructors for saccharine and lambda expression/statement types in favor of struct literals.
  • Consolidated saccharine token constructors into a single NewToken function.
  • Removed the unused trace package.

Test plan

  • go build ./... passes.
  • go test ./... passes.
  • Verify go doc output renders correctly for documented packages.
## Summary - Added doc comments across the codebase: `pkg/lambda`, `pkg/saccharine`, `pkg/codec`, `pkg/engine`, `pkg/iterator`, `pkg/set`, `pkg/convert`, `internal/registry`, and `cmd/lambda`. - Made lambda and saccharine expression structs use public fields instead of getters, matching `go/ast` conventions. - Removed superfluous constructors for saccharine and lambda expression/statement types in favor of struct literals. - Consolidated saccharine token constructors into a single `NewToken` function. - Removed the unused `trace` package. ## Test plan - [x] `go build ./...` passes. - [x] `go test ./...` passes. - [ ] Verify `go doc` output renders correctly for documented packages.
mvhutz added 15 commits 2026-02-10 01:15:06 +00:00
mvhutz merged commit 361f529bdc into main 2026-02-10 01:15:42 +00:00
mvhutz deleted branch docs/rest 2026-02-10 01:15:42 +00:00
Sign in to join this conversation.