-
Notifications
You must be signed in to change notification settings - Fork 2
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
Is the project maintained? #7
Comments
There are no alternatives or forks I know of. I at some point want to get back to updating this, but am currently doing other stuff. If you want to make contributions, you are free to do that, I will spend some time reviewing and merging PR if someone else initiates them. The reason it's still on the docs page is because AFAIK it's still functional, right? It would be nice to update, but AFAIK there is currently no need for, the basic syntax highlighting + navigation still works. Instead someone could create a full LSP. We started with that, but never really got anywhere. |
@MegaIng thanks for the fast answer.
Yes, it is functional, but lacks any updates and is usable only in very simple cases, which can be handled without the plugin, IMO.
Nice to hear that. I'd really love to use a plugin for a nicer and more convenient development of parsers with Lark, and this project can really help when the issues will be resolved. I guess it's better not to close the issue for others to know about the state of the project. |
Mostly. |
It stopped throwing Java errors inside PyCharm (for some reason, maybe the newer version of PyCharm just suppresses those?) but it marks e.g. the following as having syntax errors in it: _sep{x, sep}: [ x ( sep x )* ]
_SPACE: " "
MINUS: "-"
INT: MINUS? "0".."9"+
start: "[" _SPACE* _sep{INT, _SPACE} _SPACE* "]" (it marks the [EDIT]: As I want to become a Minecraft dev at some point I can maybe get some Java experience here, so I may spend some time the next days/weeks (however long it takes me to do this in my spare time) to get myself into this codebase and add template syntax support. |
Okay. I've started to get into the code and I see that basically all files that seem relevant are auto-generated and not intended for manual editing. |
I believe I mostly followed one of the official tutorials, maybe this one: https://plugins.jetbrains.com/docs/intellij/custom-language-support-tutorial.html The tool for the relevant files, i.e. the I can't currently provide more detailed instructions, I also need to work myself back into all this. But if you provide a PR, I will definitely spend some time on that, and I might also at some point implement this stuff myself. I currently don't actively use lark all that much myself, so it's a bit low priority. |
Well, I use it right now to create my own joke esolang, so for me it's quite important :D IntelliJ automatically suggested Grammar Kit to me, so I already knew that, but I'll look into the docs link tomorrow afternoon when I have some spare time again. [EDIT]: *the next day* I explained what I'm doing to my mum today (who has no clue of programming, but I never give up trying to explain all of it to her XD) and you know what? Explaining it often helps, even if the one you're explaining it to doesn't understand what you're talking about. So I figured out that the plugin's code was generated by JFlex, which is also mentioned in Grammar-Kit's description. So I suppose there's a way to use Grammar-Kit to generate the Java code, I'll look into it tomorrow and see if that new knowledge helps me maybe implement the template syntax highlighting relatively quickly. |
As the title says, I have a question: is the project maintained and going to be supported? Latest commit was >3 years ago (Feb 1, 2020), but it's still on the main page of Lark parser docs: https://lark-parser.readthedocs.io/en/latest/#syntax-highlighting. Maybe there are any alternatives or forks?
The text was updated successfully, but these errors were encountered: