Re: homework help: upn parser

2003-12-15 Thread Graham Klyne
At 13:12 14/12/03 +0100, Max Hoffmann wrote: Dear Haskell cafe members, I am somebody one could well call a bloody beginner but the elegance of functional programming and am therefore truly interested to learn more about Haskell. Now I have an assignment to write a parsing function to convert a s

Re: homework help: upn parser

2003-12-15 Thread Leon Smith
Hi Max! This is a type definiton, which says that parsing takes one argument, a String, and gives you back a list of OpTree: parsing :: String->[OpTree] This is a function definition. The part before the = is called the left hand side, while the part after the = is called the right hand sid

homework help: upn parser

2003-12-14 Thread Max Hoffmann
Dear Haskell cafe members, I am somebody one could well call a bloody beginner but the elegance of functional programming and am therefore truly interested to learn more about Haskell. Now I have an assignment to write a parsing function to convert a string of a mathematical expression into a tr