evhub / coconut

Simple, elegant, Pythonic functional programming.
http://coconut-lang.org
Apache License 2.0
4.04k stars 120 forks source link

Line-by-line parsing #815

Open evhub opened 8 months ago

evhub commented 8 months ago

If we introduced parsing individually for each lineitem, we could very easily cache and reuse prefix parses by storing the full compiler state after the lineitem. Would require adjusting locs.

evhub commented 7 months ago

Line-by-line parsing is supported now, but it slows things down enough that it doesn't seem worth trying to implement caching for this right now.