[Haskell-beginners] Making a generic interpreter

Patrick LeBoutillier patrick.leboutillier at gmail.com
Fri May 6 21:12:54 CEST 2011


Erik,


On Fri, May 6, 2011 at 1:39 PM, Erik Helin <erik.helin at gmail.com> wrote:
> Hi Patrick,
> thanks for taking your time!
>
> On Fri, May 6, 2011 at 18:45, Patrick LeBoutillier
> <patrick.leboutillier at gmail.com> wrote:
>> I don't see how you can make the StackBool something else than Bool.
>> The CMP and BRANCH operators seem to me very Boolean by definition.
>> Can you provide an example of how it would work?
>>
>> Patrick
>>
>
> I actually can :) I've been hacking today, and the result is:

Ok, now I get it!

Did you try Brent's suggestion? For me it worked great and also allows
you to drop the language extentions.


Patrick

-- 
=====================
Patrick LeBoutillier
Rosemère, Québec, Canada



More information about the Beginners mailing list