Closed ghost closed 5 months ago
my ll(1)+ parser generator https://code.dlang.org/packages/darser does this.
darser looks nice. to be honest I would have personal interests into what I propose but I might use darser instead.
@JarkkoMukka have a look at the usage of darser in graphqld here https://github.com/burner/graphqld/blob/master/Makefile#L24
thats properly the best use case/example I have. Issue's and PR's always welcome!
I am going to remove gsoc2021 as this project does not have a mentor and the original author has deleted his account. This will not look well in the eyes of GSOC evaluators.
I'll just post a link to a project I started which i sort of related, probably not SOC appropriate, but maybe? You annotate your AST nodes with PEG-like syntax descriptions and the lib gives you a recursive descent parser that produces those AST nodes directly. Might provide inspiration, or be useful somehow? https://github.com/benjones/autoparsed
This has been worked on by Adela Vais. As far as I remember the project was completed.
@RazvanN7 I think that every issue that is closed as completed should have a link to repository / commit that resolves it. Say someone is working on a task that assumes this one is complete - if they need to code where can they find it?
Adela Vais's work was merged into Bison. There's no reason to have this open anymore.
Description
Pegged allows to describe how to parse an input. Unfortunatly it produces a parse tree, not an AST. This difference puts limits on the usability of the library.
The goals of the project are to
What are rough milestones of this project?
Pretty much the same as the goals.
How does this project help the D community?
Plenty of structured textual file formats would be much more easily usable.
Recommended skills
metaprogramming, CTFE, OOP, parsing.
What can students expect to get out of doing this project?
Point of Contact
to be determined
References
to be determined