jamesrhester / Lerche.jl

A Julia port of the Lark parser
MIT License
45 stars 3 forks source link

Allow immediate transformation during parsing #16

Open jamesrhester opened 3 years ago

jamesrhester commented 3 years ago

Building parse trees from very large files (e.g.> 200MB data file) can occupy considerable memory. If the transform is applied immediately at the point that the syntactical construct is recognised, memory can be economised, particularly if only certain information is relevant. This would also allow streaming data. Lark already has this capability via the transform option to Lark, which in Lerche is simply executed following the completion of parsing.

Considerations: