-
Notifications
You must be signed in to change notification settings - Fork 0
Org mode parser #1
Comments
Disclaimer : I have 0 experience in parsing/lexing. I’m trying to work on multiple fronts, this parser in particular is probably not going to see any work, especially as I have other projects and I’m getting a little frustrated with this effort. I guess that last paragraph was more of a "my current state of affairs", and I just want to finish this by suggesting to port all org grammar discussions on the mailing list. Tom (@tgbugs) sent a message there to try and spark a conversation, and I’m pretty sure that Nicolas Goaziou would be glad to particiate there and give insights to go on with grammar efforts for Org-mode Best regards, |
Thanks Gerry, for the insights and links. Wow, you already have defined a lot grammer in your tree-sitter-org! It would be cool if it could all be generated and kept in sync with the grammer from org-parsers or from tgbugs laundry. |
@gagbo thanks for the |
Hi Gerry, I stumbled upon your post mentioning tree-sitter. Now I just found your tree-sitter repo.
We at org-parser have a pretty much complete EBNF grammar of the org syntax. Maybe it can be converted with some tool and kept in sync for the tree-sitter grammar? I don't know anything about the grammar required by tree-sitter, but maybe these projects can work together?
The raw parse tree from org-parser will be transformed to a simpler AST, but for tree-sitter it might already be sufficient. Although, not all styled (esp. nested styled) text in org-mode is recognized by our parser because it's hard or impossible with only EBNF.
The text was updated successfully, but these errors were encountered: