Comments (7)
Considering that v_args(meta=True)
is being tested with the order meta, items
, and those tests still pass, I don't think that changed:
Line 209 in ba5ae31
Not sure what you mean with the rename?
Are you sure you are actually looking at 1.1.7
? Both of these changes are stuff from pre-1.0.0
from lark.
Having uninstalled 1.1.5 and installed 1.1.7 again, I can't reproduce the argument order problem, so maybe something funny happened with my pip version locally. If that's the case, the only problems seem to be the reference to ParseTree
here: https://lark-parser.readthedocs.io/en/stable/classes.html#lark.Lark.parse (n.b. this is listed as the return type of parse
, but it seems to be called Tree
now) and the fact that the docs aren't building on ReadTheDocs.
from lark.
No, ParseTree
is correct there. It's an alias for Tree['Token']
.
from lark.
Ah! I found it. I had this (I guess defunct?) package installed in my global site_packages:
https://pypi.org/project/lark-parser/
It's a bit confusing that the readthedocs project is called lark-parser
but on pypi its lark
. I guess this is because lark
was already taken. I don't know if it's possible/desirable to take the pypi lark-parser
offline, or at least warn people not to use it.
from lark.
I don't want to take lark-parser offline from pypi, because it might break existing projects that use an old version. However, we don't publish any new packages there. What sort of warning do you think I should place, and where?
Yes, https://lark.readthedocs.io/ is occupied by an unmaintained project.
@MegaIng IIRC he willingly relinquished lark
on PyPI. Perhaps we can ask him to do the same with readthedocs?
from lark.
Yeah, we should ask.
from lark.
Perhaps you could publish a final version under lark-parser
that either issues a deprecation warning whenever the module is imported or is just a stub depending on the latest version of lark
. There seem to be some reasonable suggestions in this article:
https://www.dampfkraft.com/code/how-to-deprecate-a-pypi-package.html
People should be able to keep the old behaviour if they depend on lark-parser==0.12.0
.
from lark.
Related Issues (20)
- Is there a way to receive callbacks when a rule finishes
- Checking for allowed tokens with accepts() triggers transformer callbacks HOT 4
- Directly used literals not returned by transformer HOT 1
- Ability to search for parseable substrings HOT 6
- Improve IMAP ID parser HOT 13
- multiline strings in python3 grammar HOT 1
- Type of `tree.data` is wrong. HOT 1
- File input to `parse` method gives TypeError: object of type '_io.TextIOWrapper' has no len() HOT 5
- CPython 3.11.7 breaks `regex` module compatible pattern width calculations HOT 9
- Exclude classes in create_tranformer by user provided pedicate
- Make Token inherit from Generic. HOT 2
- Data structure for getting possible terminal sequences? HOT 2
- AssertionError when using templates HOT 4
- lark.exceptions.UnexpectedCharacters: No terminal matches ',' in the current parser context, at line 1 col 8 HOT 1
- Ability to inline branches not documented in the grammar reference HOT 3
- Parser error messages are not deterministic HOT 2
- Docs: Example link to blog.erezsh.com dead HOT 1
- parsing.py example - lark.exceptions.GrammarError HOT 1
- Please remove the duplicate PYPI record HOT 1
- Transformer raises AttributeError when a tree is only a token HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lark.