www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - What parser generator can let me run arbitrary code in its match

reply Dmitry Ponyatov <dponyatov gmail.com> writes:
- not abandoned years ago
- documentation and commented samples presenets
- CTFE the best
Nov 20 2023
next sibling parent reply Dmitry Ponyatov <dponyatov gmail.com> writes:
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.
Nov 20 2023
parent Guillaume Piolat <first.name gmail.com> writes:
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 explain recursive descent parser, including parsing binary operators with priorities.
Nov 20 2023
prev sibling parent Julian Fondren <julian.fondren gmail.com> writes:
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
Nov 20 2023