Skip to content

Commit

Permalink
Merge pull request #41 from lark-parser/fixed_version
Browse files Browse the repository at this point in the history
Lark-js now uses a fix Python version of Lark (1.1.5)
  • Loading branch information
erezsh authored Feb 22, 2024
2 parents 29ef81e + 4548450 commit 72331cb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
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

0 comments on commit 72331cb

Please sign in to comment.