tolysz / hiccup

Automatically exported from code.google.com/p/hiccup
GNU Lesser General Public License v2.1
1 stars 0 forks source link

Parser is very messy #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Since I don't really know the rules for tcl tokenizing and substitution
that well, the code in BSParse is really quite ad-hoc and messy.

Firstly, most of the methods are unclear as to what they expect and what
they return. 

Guh. Well, it works for most major cases, but there are a lot of problems.

I need to figure out what gets initially parsed, what gets interpolated
later,  and how much of the latter I can speculatively do in the former.

Also, it'd sure be nice to have a custom parser monad.. Maybe isn't really
cutting it.

Original issue reported on code.google.com by consa...@gmail.com on 11 Jan 2008 at 9:24

GoogleCodeExporter commented 9 years ago
'chain', 'tryGet', and 'orElse' combinators seem to be improving this.

Original comment by consa...@gmail.com on 26 Feb 2008 at 7:42

GoogleCodeExporter commented 9 years ago
Fixed, for the purposes of this.

Original comment by consa...@gmail.com on 16 Apr 2008 at 7:45