Hello everybody. I'm working on a haskell project in which I need to evaluate haskell expressions that are given in an input File. For instance: A file containing "Peter==Peter" or "3+2==5" or "home in [a-z]*sex[a-z]*" (see I need to use regular expressions too) is given as input The file contents are read as String type and I need to evaluate them to True or False. I'm looking for the way to parse and translate these expressions in order to evaluate them. Thanks for you help. J. ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
On 2005-02-08, Javier García-Vivó Albors <jgarciavivo@dsic.upv.es> wrote:
I'm working on a haskell project in which I need to evaluate haskell expressions that are given in an input File.
You may want to look at hs-plugins. Alternatively, Langhage.Haskell.* in fptools may help you do do what you want, albeit with more effort on your part. -- John
participants (2)
-
Javier García-Vivó Albors -
John Goerzen