Challenging Sum.
Author |
Message |
neokewl
|
Posted: Sat Jan 13, 2007 8:12 pm Post subject: Challenging Sum. |
|
|
Hi All,
Check this challenging sum that i came across:
given below is a grammar for a particular language:
a = (Int,Int)
r = a:a | es
e = Int | e+e | SUM(r) |ref a
es = e | e,es
c = cell a is e
s = c | c;s
define a function tht computes the locations (Int,Int) contained in a sheet s.
hint: implement the above grammars as data types in haskell........ |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
|
|