File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 44
55Lark 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
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ classifiers = [
1919packages = [{ include = " larkjs" }]
2020
2121[tool .poetry .dependencies ]
22- lark = " ^ 1.0.0"
22+ lark = " >= 1.0.0,<=1.1.6 "
2323
2424[build-system ]
2525requires = [" poetry-core>=1.0.0" ]
You can’t perform that action at this time.
0 commit comments