<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1460734307339_26235">Hi,</div><div id="yui_3_16_0_ym19_1_1460734307339_26292"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1460734307339_26293"><br id="yui_3_16_0_ym19_1_1460734307339_26340">I have two types,<br id="yui_3_16_0_ym19_1_1460734307339_26341"><br id="yui_3_16_0_ym19_1_1460734307339_26342">Tag = String<br id="yui_3_16_0_ym19_1_1460734307339_26343">Val = String<br id="yui_3_16_0_ym19_1_1460734307339_26344"><br id="yui_3_16_0_ym19_1_1460734307339_26345">and I want to creat expressions based on equality,  t = v  (where t is Tag, v is Val)<br id="yui_3_16_0_ym19_1_1460734307339_26346">and containment ie<br id="yui_3_16_0_ym19_1_1460734307339_26347">t IN v1, v2, v3, v4<br id="yui_3_16_0_ym19_1_1460734307339_26348"><br id="yui_3_16_0_ym19_1_1460734307339_26349">ie a tag equals a value or a tag is contained in a list of values.<br id="yui_3_16_0_ym19_1_1460734307339_26350">Furthyermore I would like to apply AND and OR, i.e.<br id="yui_3_16_0_ym19_1_1460734307339_26351"><br id="yui_3_16_0_ym19_1_1460734307339_26352">(t1 = v OR t1 IN v1, v2, v3) AND (t2 = v2) ect etc<br id="yui_3_16_0_ym19_1_1460734307339_26353"><br id="yui_3_16_0_ym19_1_1460734307339_26354">I want to use Parsec and I'm ok with basic combinators but I want to get as far as making this a simple DSL but I don't want to <br id="yui_3_16_0_ym19_1_1460734307339_26355">use buildExpressionParser  - at least not initially. I want to do this from first principles, understand what I'm doing and then maybe use buildExpressionParser.<br id="yui_3_16_0_ym19_1_1460734307339_26356"><br id="yui_3_16_0_ym19_1_1460734307339_26357">Any help would be really appreciated.<br id="yui_3_16_0_ym19_1_1460734307339_26358"><br id="yui_3_16_0_ym19_1_1460734307339_26359">Thanks<br id="yui_3_16_0_ym19_1_1460734307339_26360"><br id="yui_3_16_0_ym19_1_1460734307339_26361">Mike<br id="yui_3_16_0_ym19_1_1460734307339_26362"><br></div></div></body></html>