Re: Pattern Matching

"[[[*(aqqq),bqqq],cqq],[dqqq,eqqq]]"

success
(0, (1, 18))
(1, (2, 14))
(2, (3, 9))
(3, (a, 4, 4))
(4, (q, 5, 5))
(5, (q, 6, 6))
(6, (q, 7, 7))
(7, (3, 8))
(8, (13, 13))
(9, (b, 10, 10))
(10, (q, 11, 11))
(11, (q, 12, 12))
(12, (q, 13, 13))
(13, (17, 17))
(14, (c, 15, 15))
(15, (q, 16, 16))
(16, (q, 17, 17))
(17, (28, 28))
(18, (19, 23))
(19, (d, 20, 20))
(20, (q, 21, 21))
(21, (q, 22, 22))
(22, (q, 27, 27))
(23, (e, 24, 24))
(24, (q, 25, 25))
(25, (q, 26, 26))
(26, (q, 27, 27))
(27, (28, 28))
(28, (0, 0))
(29, (0, 0))
david@works:~\$