Re: What parser generator can let me run arbitrary code in its match rules?

2023-11-20 Thread Julian Fondren via Digitalmars-d-learn
On Monday, 20 November 2023 at 23:50:24 UTC, Dmitry Ponyatov wrote: - not abandoned years ago - documentation and commented samples presenets - CTFE the best https://code.dlang.org/packages/pegged

Re: What parser generator can let me run arbitrary code in its match rules?

2023-11-20 Thread Guillaume Piolat via Digitalmars-d-learn
On Monday, 20 November 2023 at 23:56:36 UTC, Dmitry Ponyatov wrote: Or maybe someone advice me some set of books deeply targets for learning of binary and symmetric parsing (such as binpac), DCG in C or using generators in D, etc to let me write my own lib. 'Crafting Interpreters' book

Re: What parser generator can let me run arbitrary code in its match rules?

2023-11-20 Thread Dmitry Ponyatov via Digitalmars-d-learn
Or maybe someone advice me some set of books deeply targets for learning of binary and symmetric parsing (such as binpac), DCG in C or using generators in D, etc to let me write my own lib. Everething I found (besides the Dragon book) uses black magic with Haskell, Lisp etc.

What parser generator can let me run arbitrary code in its match rules?

2023-11-20 Thread Dmitry Ponyatov via Digitalmars-d-learn
- not abandoned years ago - documentation and commented samples presenets - CTFE the best

scanner parser generator

2014-03-30 Thread needs
hi, i need a scanner parser generator that generates d code. i found abandoned, primitive and d1 projects. is there something one can use with the current version and -m64? regards

Re: scanner parser generator

2014-03-30 Thread evilrat
On Sunday, 30 March 2014 at 13:08:08 UTC, needs wrote: hi, i need a scanner parser generator that generates d code. i found abandoned, primitive and d1 projects. is there something one can use with the current version and -m64? regards pegged? http://code.dlang.org

Re: scanner parser generator

2014-03-30 Thread needs
thanks i take a look at it. actually i thought along the lines of antlr or coo/r. On Sunday, 30 March 2014 at 13:20:49 UTC, evilrat wrote: On Sunday, 30 March 2014 at 13:08:08 UTC, needs wrote: hi, i need a scanner parser generator that generates d code. i found abandoned, primitive and d1

Re: Parser generator?

2012-07-06 Thread Philippe Sigaud
Yeah. It's pretty cool. It really shows up D's metaprogramming capabilities. It's a bit hell to debug it, though. But I finally managed to get a working parser out of it. I received your suggestion of a full debug mode explaining what rules where activated and wich did not. Except now I

Re: Parser generator?

2012-07-06 Thread Roman D. Boiko
On Friday, 6 July 2012 at 06:10:28 UTC, Philippe Sigaud wrote: Roman recently templated the parse tree to allow multiple outputs and we didn't update the docs, sorry. That was https://github.com/chadjoan, not me :) But I was amazed that my needs have been met so well.

Re: Parser generator?

2012-07-06 Thread Roman D. Boiko
On Friday, 6 July 2012 at 06:10:28 UTC, Philippe Sigaud wrote: void buildGraph(Output o) { void parseToGraph(ParseTree p) { writeln(p.ruleName); } parseToGraph(o.parseTree); } What do parseToGraph and buildGraph do? buildGraph unwraps parseTree from

Re: Parser generator?

2012-07-06 Thread Wouter Verhelst
Philippe Sigaud philippe.sig...@gmail.com writes: Yeah. It's pretty cool. It really shows up D's metaprogramming capabilities. It's a bit hell to debug it, though. But I finally managed to get a working parser out of it. I received your suggestion of a full debug mode explaining what

Re: Parser generator?

2012-07-05 Thread Wouter Verhelst
Jonathan M Davis jmdavisp...@gmx.com writes: On Wednesday, July 04, 2012 15:32:16 Wouter Verhelst wrote: Jonathan M Davis jmdavisp...@gmx.com writes: On Wednesday, July 04, 2012 14:53:02 Wouter Verhelst wrote: Hi folks, Does someone know of a parser generator for D? If it doesn't

Parser generator?

2012-07-04 Thread Wouter Verhelst
Hi folks, Does someone know of a parser generator for D? If it doesn't exist, I can write a parser by hand, but having it generated (at least for my initial permutation) seems like a better idea... Thanks, -- The volume of a pizza of thickness a and radius z can be described by the following

Re: Parser generator?

2012-07-04 Thread Jonathan M Davis
On Wednesday, July 04, 2012 14:53:02 Wouter Verhelst wrote: Hi folks, Does someone know of a parser generator for D? If it doesn't exist, I can write a parser by hand, but having it generated (at least for my initial permutation) seems like a better idea... Thanks, https://github.com

Re: Parser generator?

2012-07-04 Thread Wouter Verhelst
Jonathan M Davis jmdavisp...@gmx.com writes: On Wednesday, July 04, 2012 14:53:02 Wouter Verhelst wrote: Hi folks, Does someone know of a parser generator for D? If it doesn't exist, I can write a parser by hand, but having it generated (at least for my initial permutation) seems like

Re: Parser generator?

2012-07-04 Thread Jonathan M Davis
On Wednesday, July 04, 2012 15:32:16 Wouter Verhelst wrote: Jonathan M Davis jmdavisp...@gmx.com writes: On Wednesday, July 04, 2012 14:53:02 Wouter Verhelst wrote: Hi folks, Does someone know of a parser generator for D? If it doesn't exist, I can write a parser by hand, but having

Re: Parser generator?

2012-07-04 Thread Timon Gehr
On 07/04/2012 11:41 PM, Jonathan M Davis wrote: On Wednesday, July 04, 2012 15:32:16 Wouter Verhelst wrote: Jonathan M Davisjmdavisp...@gmx.com writes: On Wednesday, July 04, 2012 14:53:02 Wouter Verhelst wrote: Hi folks, Does someone know of a parser generator for D? If it doesn't exist

Re: Parser generator?

2012-07-04 Thread Mirko Pilger
Does someone know of a parser generator for D? http://www.complang.org/ragel/ http://www.semitwist.com/goldie/

Re: Parser generator?

2012-07-04 Thread Jerome BENOIT
Apparently Flex/Bison can be used: see last answer in http://www.digitalmars.com/d/archives/digitalmars/D/31679.html hth, Jerome On 04/07/12 22:53, Wouter Verhelst wrote: Hi folks, Does someone know of a parser generator for D? If it doesn't exist, I can write a parser by hand, but having