probcomp / Venturecxx

Primary implementation of the Venture probabilistic programming system
http://probcomp.csail.mit.edu/venture/
GNU General Public License v3.0
28 stars 6 forks source link

factor common logic out of ChurchPrime and VentureScript parsers #39

Open riastradh-probcomp opened 9 years ago

riastradh-probcomp commented 9 years ago

I made copypasta of the ChurchPrime parser in the VentureScript parser to get the latter working as quickly as possible without requiring changes to the ChurchPrime parser. But now much of that copypasta can and should be merged, perhaps after the now-irrelevant parts are culled.

axch commented 9 years ago

Notably, the Trie class is just a utility data structure without particular parser-specific content. I apologize for leaving it in the parser module in the first place.