Re: first shot for a combinator library for d

2010-12-13 Thread Christian Köstlin
thanks for your feedback! Maybe add support for predicated alternatives? what is this :) ? If you *really* want to make it more convenient, you could make a string mixin front for it, so that one could do something like mixin(maek_parser(" start -> s1 s2; s1 -> (`ab`|`cd`) `ef`; s2 -> (`1`

Re: first shot for a combinator library for d

2010-12-10 Thread Ellery Newcomer
Nice. Maybe add support for predicated alternatives? If you *really* want to make it more convenient, you could make a string mixin front for it, so that one could do something like mixin(maek_parser(" start -> s1 s2; s1 -> (`ab`|`cd`) `ef`; s2 -> (`1`|`2`|`3`); ")); I don't recommen

first shot for a combinator library for d

2010-12-10 Thread Christian Köstlin
Hi, I try to learn D and as a testproject I wanted to implement combinator parsing for D. That's what I currently have: https://gist.github.com/736456#file_parser.d It is a simple combinator library including simple matchers, alternatives, sequences, optional, transformations of the results