Skip to content

Commit d84b89a

Browse files
Merge branch 'lark-parser:master' into master
2 parents e3f1c7f + 72331cb commit d84b89a

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/node.js.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ jobs:
3434
uses: actions/setup-python@v2
3535
with:
3636
python-version: 3.8
37+
- name: Install poetry
38+
run: python -m pip install poetry
3739
- name: Install dependencies
38-
run: python -m pip install lark
40+
run: poetry install
3941
- name: Test parser generator (Python)
40-
run: python -m test.test
42+
run: poetry run python -m test.test

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Lark is a popular parsing toolkit for Python.
66

7-
This project is a live port of the Lark standalone parser to Javascript.
7+
This project is a port of the Lark standalone parser to Javascript.
88

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

@@ -52,6 +52,8 @@ Install lark-js on Python:
5252
pip install lark-js --upgrade
5353
```
5454

55+
Note: lark-js requires that the version for lark-python is <=1.1.5
56+
5557
### Generate a Javascript LALR(1) parser
5658

5759
```sh

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ classifiers = [
1919
packages = [{ include = "larkjs" }]
2020

2121
[tool.poetry.dependencies]
22-
lark = "^1.0.0"
22+
lark = ">=1.0.0,<=1.1.6"
2323

2424
[build-system]
2525
requires = ["poetry-core>=1.0.0"]

0 commit comments

Comments
 (0)