Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lark-js now uses a fix Python version of Lark (1.1.5) #41

Merged
merged 2 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install poetry
run: python -m pip install poetry
- name: Install dependencies
run: python -m pip install lark
run: poetry install
- name: Test parser generator (Python)
run: python -m test.test
run: poetry run python -m test.test
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Lark is a popular parsing toolkit for Python.

This project is a live port of the Lark standalone parser to Javascript.
This project is a port of the Lark standalone parser to Javascript.

**Lark.js** takes a `.lark` grammar, and from it generates a standalone Javascript parser.

Expand Down Expand Up @@ -52,6 +52,8 @@ Install lark-js on Python:
pip install lark-js --upgrade
```

Note: lark-js requires that the version for lark-python is <=1.1.5

### Generate a Javascript LALR(1) parser

```sh
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ classifiers = [
packages = [{ include = "larkjs" }]

[tool.poetry.dependencies]
lark = "^1.0.0"
lark = ">=1.0.0,<=1.1.6"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
Loading