dlang-community / Pegged

A Parsing Expression Grammar (PEG) module, using the D programming language.
534 stars 66 forks source link

Run-time parsing of Peg grammars #295

Open nordlow opened 4 years ago

nordlow commented 4 years ago

As a temporary solution to recent problems with Pegged's memory consumption is/would it be possible to make the grammar-to-parser generation happen at run-time instead of compile-time? Is this already possible?

enjoysmath commented 1 year ago

Have you looked into asModule option in pegged? Also, there's rdmd you could call to recompile a DLL I guess. Then you could re-import the DLL from your EXE.