
11 Nov
2009
11 Nov
'09
1:23 p.m.
On Wed, Nov 11, 2009 at 04:32:05AM -0800, Philippos Apolinarius wrote:
data Op = AND | OR | NOT deriving (Show, Read) data Tree= L Int | T Op [Tree] deriving (Show, Read)
Hmm, you see,
philip@desktop:~/jhctut$ ./jtree Give me a tree: T AND (L 1, L 2)
jtree_code.c:2670: case fell off Aborted
you declared 'T Op [Tree]' so you should give 'T AND [L 1, L 2]' as the tree, right? -- Felipe.