robrix / Hammer

Parsing and pattern matching in Objective-C
BSD 3-Clause "New" or "Revised" License
75 stars 1 forks source link

Separate predicates from combinators #78

Closed robrix closed 10 years ago

robrix commented 10 years ago

Combinators-as-predicates-for-combinators means that you can’t use concatenation/alternation as and/or. Instead of HMRConcatenate(x, y), implement & use HMRConcatenateP(x, y) which returns a predicate which matches HMRConcatenation instances with x and y.

robrix commented 10 years ago

Depends on #80.