Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Challenging Sum.
Index -> Programming, General Programming -> Functional Programming
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
neokewl




PostPosted: 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
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, General Programming -> Functional Programming
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 1 Posts ]
Jump to:   


Style:  
Search: