Set up OCaml core language foundation#33
Merged
Conversation
Implements the core WokeLang interpreter in OCaml as specified in the anchor file, making the language runnable with OCaml toolchain only. Core implementation: - core/ast.ml: Abstract Syntax Tree with consent gates, units, gratitude - core/lexer.mll: Lexer with all WokeLang keywords and operators - core/parser.mly: Menhir parser for complete grammar - core/eval.ml: Tree-walking interpreter with: - Consent gate semantics (only if okay) - Units of measure with type checking - Gratitude tracking - Error handling (attempt safely/or reassure) - Emote annotations - core/main.ml: CLI entry point Build system: - dune-project: Dune 3.0 project configuration - core/dune: Library and executable definitions Golden path example: - examples/hello_world.wl: Demonstrates core features Test suite: - test/test_wokelang.ml: Lexer, parser, evaluator, diagnostics tests - test/conformance/: Conformance corpus for consent/units semantics Documentation: - docs/core/SETUP.md: OCaml-only setup instructions - docs/core/INDEX.md: Core vs optional documentation index - docs/core/SPEC.core.scm: Formal semantics specification CI: - .github/workflows/ocaml-core.yml: Build/test on OCaml 5.0+ Quarantines existing Rust implementation per anchor directive.
Adds just recipes per authority stack contract: - build: compile OCaml core via dune - test: run OCaml test suite - demo: run hello_world.wl example - smoke: full golden path (test + demo) - conformance: run conformance corpus - setup-ocaml: install dependencies via opam - check-toolchain: verify OCaml tools present - ci: full CI pipeline Quarantines Rust recipes as [private].
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.