Entities Mentioned



  1. Well, I hope that was useful :) > interpretExp (Add (Mul (Simple 5) (Simple 4)) (Simple 3)) > compile (Add (Mul (Simple 5) (Simple 4)) (Simple 3)) [OpPush 3,OpPush 4,OpPush 5,OpMul,OpAdd] > let x = [OpPush 3,OpPush 4,OpPush 5,OpMul,OpAdd] in run x Cheers! For your QuickCheck property, I think you'd also want to know that the stack has only one element. Also, what's the "True ==>" for? How about this replacement: prop_compile tree = run $ compile tree == [interpretExp tree] Hello, Thanks for your (Read Full Article)

    Related Articles

Login to comment.

 
Home All Articles Entities Quotes Comments Login Register Powered by HiveFire