Advertisement
Guest User

Untitled

a guest
Oct 13th, 2018
1,412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. parseRe :: String -> (AST, String)
  2. parseRe str  
  3.    | null rest = (ast, [])  
  4.    | head rest == '+' = (Plus ast ast2, rest2)
  5.    | otherwise (ast, rest)
  6.   where
  7.     (ast, rest) = parseSq str
  8.     (ast2, rest2) = parseRe (tail rest)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement