abau / co4

COmplexity COncerned COnstraint COmpiler
GNU General Public License v3.0
2 stars 3 forks source link

semantic labelling: more powerful patterns #58

Open jwaldmann opened 10 years ago

jwaldmann commented 10 years ago

at the moment, data Pattern m = Any | Exactly m. Here, m is an element of the model, so actually a Nat. We could extend to data Pattern m = Any | LessThan m | Exactly m | GreaterThan m. Probably the following representation gives better code: data Pattern m = Pattern m Ordering; data Ordering = Any | LT | EQ | GT.