Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Parsec and Parsing (mike h)
----------------------------------------------------------------------
Message: 1
Date: Mon, 18 Apr 2016 08:35:19 +0000 (UTC)
From: mike h <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of Primarily
Beginner-level Topics Related To Haskell <[email protected]>
Subject: [Haskell-beginners] Parsec and Parsing
Message-ID:
<[email protected]>
Content-Type: text/plain; charset="utf-8"
Hi,
I have two types,
Tag = String
Val = String
and I want to creat expressions based on equality,? t = v? (where t is Tag, v
is Val)
and containment ie
t IN v1, v2, v3, v4
ie a tag equals a value or a tag is contained in a list of values.
Furthyermore I would like to apply AND and OR, i.e.
(t1 = v OR t1 IN v1, v2, v3) AND (t2 = v2) ect etc
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
use buildExpressionParser? - at least not initially. I want to do this from
first principles, understand what I'm doing and then maybe use
buildExpressionParser.
Any help would be really appreciated.
Thanks
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20160418/afd0debd/attachment-0001.html>
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 94, Issue 15
*****************************************