Skip to content

Cache generated LALR parse tables - #53

Merged
henrylee97 merged 4 commits into
masterfrom
codex/cache-parse-table
Jul 29, 2026
Merged

Cache generated LALR parse tables#53
henrylee97 merged 4 commits into
masterfrom
codex/cache-parse-table

Conversation

@henrylee97

Copy link
Copy Markdown
Member

Summary

  • Cache generated LALR(1) parse tables in <project_root>/.plare, keyed by a deterministic grammar fingerprint.
  • Reuse valid tables across processes while rebinding semantic actions to the current grammar; rebuild stale, corrupt, or unreadable caches and write updates atomically.
  • Support custom cache directories and cache_dir=None, with coverage for cache hits, invalidation, corruption, concurrency, and default behavior.

Testing

  • pytest -q (153 passed)
  • python -m pyright .
  • python -m black --check plare tests
  • python -m isort --check-only plare tests

henrylee97 and others added 4 commits July 29, 2026 07:04
Co-authored-by: GPT-5.6-Sol <codex@openai.com>
Co-authored-by: GPT-5.6-Sol <codex@openai.com>
Co-authored-by: GPT-5.6-Sol <codex@openai.com>
Co-authored-by: GPT-5.6-Sol <codex@openai.com>
@github-actions

Copy link
Copy Markdown

Pytest Report

Test Results

  • Tests: 153
  • Errors: 0
  • Failures: 0
  • Skipped: 0

Comment by ✨sambyeol/publish-pytest-action

@github-actions

Copy link
Copy Markdown

Pytest Report

Test Results

  • Tests: 153
  • Errors: 0
  • Failures: 0
  • Skipped: 0

Comment by ✨sambyeol/publish-pytest-action

@github-actions

Copy link
Copy Markdown

Super-linter summary

Language Validation result
PYTHON_BLACK Pass ✅
PYTHON_ISORT Pass ✅
YAML Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

@henrylee97 henrylee97 self-assigned this Jul 29, 2026
@henrylee97 henrylee97 added the enhancement New feature or request label Jul 29, 2026
@henrylee97
henrylee97 merged commit 5ea1159 into master Jul 29, 2026
7 checks passed
@henrylee97
henrylee97 deleted the codex/cache-parse-table branch July 29, 2026 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant