www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - sdpc - Simple/Stupid D parser combinator

reply Yuxuan Shui <yshuiv7 gmail.com> writes:
GitLab: https://gitlab.com/yshui/sdpc
Documents: https://yshui.gitlab.io/sdpc
Dub: http://code.dlang.org/packages/sdpc

I started this project ~1.8 years ago. It only took me a couple 
of weeks to write, and I learned a lot about D's template system 
(and its limitations) by writing it. But back then I wasn't 
confident with the code quality and documentation enough to make 
it public. Then life caught up with me and I can't spend time on 
it.

Recently I finally got some time and decided to cleanup the code 
and make it available to more people. Now I'm comfortable with it 
enough to have more eyes on it.

sdpc is a very simple parser combinator library. So it lacks some 
bells and whistles like left recursion or memoization. But it 
should be able to handle a lot of the simpler use cases.

(I know we have pry now. A bit of competition won't hurt =] ).
Mar 23 2017
next sibling parent Yuxuan Shui <yshuiv7 gmail.com> writes:
BTW, ddox cleanly has some problem with this symbol:

https://yshui.gitlab.io/sdpc/sdpc/parsers/skip_whitespace.html
Mar 23 2017
prev sibling parent reply Basile B. <b2.temp gmx.com> writes:
On Thursday, 23 March 2017 at 22:55:10 UTC, Yuxuan Shui wrote:
 GitLab: https://gitlab.com/yshui/sdpc
 Documents: https://yshui.gitlab.io/sdpc
 Dub: http://code.dlang.org/packages/sdpc

 I started this project ~1.8 years ago. It only took me a couple 
 of weeks to write, and I learned a lot about D's template 
 system (and its limitations) by writing it. But back then I 
 wasn't confident with the code quality and documentation enough 
 to make it public. Then life caught up with me and I can't 
 spend time on it.

 Recently I finally got some time and decided to cleanup the 
 code and make it available to more people. Now I'm comfortable 
 with it enough to have more eyes on it.

 sdpc is a very simple parser combinator library. So it lacks 
 some bells and whistles like left recursion or memoization. But 
 it should be able to handle a lot of the simpler use cases.

 (I know we have pry now. A bit of competition won't hurt =] ).
Thanks for sharing this but your project is not visible! Gitlab is a bit confusing because by default repositories are private. Go to your project setting(should be https://gitlab.com/yshui/sdpc/edit): - set "Project Visibility" to "public". - set "Repository" to "everyone with access".
Mar 24 2017
parent Yuxuan Shui <yshuiv7 gmail.com> writes:
On Friday, 24 March 2017 at 17:53:14 UTC, Basile B. wrote:
 On Thursday, 23 March 2017 at 22:55:10 UTC, Yuxuan Shui wrote:
 [...]
Thanks for sharing this but your project is not visible! Gitlab is a bit confusing because by default repositories are private. Go to your project setting(should be https://gitlab.com/yshui/sdpc/edit): - set "Project Visibility" to "public". - set "Repository" to "everyone with access".
Thanks for pointing this out! Obviously I only set "Visibility" to "public" and forgot the other settings...
Mar 24 2017