-
-
Notifications
You must be signed in to change notification settings - Fork 410
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
Draft of Version 1.0 #925
Draft of Version 1.0 #925
Conversation
Codecov Report
@@ Coverage Diff @@
## master #925 +/- ##
==========================================
+ Coverage 87.12% 87.63% +0.51%
==========================================
Files 50 49 -1
Lines 6804 6893 +89
==========================================
+ Hits 5928 6041 +113
+ Misses 876 852 -24
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Tasks remaining:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few initial comments. I will take another look or too and maybe even just implement everything mentioned here in my own commits.
@@ -193,7 +191,7 @@ def __init__(self, token, expected, considered_rules=None, state=None, interacti | |||
# TODO considered_rules and expected can be figured out using state | |||
self.line = getattr(token, 'line', '?') | |||
self.column = getattr(token, 'column', '?') | |||
self.pos_in_stream = getattr(token, 'pos_in_stream', None) | |||
self.pos_in_stream = getattr(token, 'start_pos', None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can just rename the attribute.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean, in the exceptions?
I'm less concerned about that (and anyway, start_pos
wouldn't be a good name in this case). But I'm open to suggestions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough. Keep pos_in_stream
ast_utils, grammar, and indenter
About the type-merging, you can possibly use https:/ilevkivskyi/com2ann to convert type comments to type annotations. I remember finding a repo that can merge type annotations... I'll get back when I remember it |
@ThatXliner We are not using Type comments. We have separate stub files. |
Oh right. My bad. I found https:/ambv/retype but it wasn't what I remembered. Hope it helps, though |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(I think setup.py also needs to be updated for py36
)
load_grammar, reconstruct, and visitors
exceptions, lark, and tree
__init__, lexer, and parsers/__init__
Here is a list of compatibility/deprecated code I have come across in case you want to remove some of it.
|
More updates to v1.0
Fixes some of the items @chanicpanic mentioned in this PR - #993 Regarding
|
Btw, @chanicpanic & @MegaIng, I think we should just merge this, and continue work over the |
That would mean that we are not going to release any other version before 1.0, not even a |
We can always continue working on a 0.12 branch. But I'm not sure that we need to. |
Fair enough. Merge is good IMO. (Or do we also want to rename to |
Seems pointless to me |
Fair enough. I dont have a strong opinion either, but this would be a prime opportunity. |
No objections to merging from me. |
Alright. I'll do it tomorrow then. |
Lark |
Changes so far