samppah / com.kmaki.vader.xrnx

1 stars 0 forks source link

Recursive parse? #16

Open samppah opened 10 years ago

samppah commented 10 years ago

see issue #13 . Dynamic content needs a parse possibility (live parsing of dynamic values such as "current line") and LPeg dynamic rule generation would benefit of recursive parsing.

This would mean: separate target ranges (only expression in target?), and content ranges/ expression into a "__string" subkey of parse table. Call parse() on this subkey when needed.

Seems like this should work. Does recursive parse need to go through the directive dispatcher..? Hmm.