import AParser
import Control.Applicative
+import Data.Char(isSpace, isAlpha, isAlphaNum)
------------------------------------------------------------
-- 1. Parsing repetitions
------------------------------------------------------------
spaces :: Parser String
-spaces = undefined
+spaces = zeroOrMore (satisfy isSpace)
ident :: Parser String
-ident = undefined
+ident = liftA2 (:) (satisfy isAlpha) (zeroOrMore (satisfy isAlphaNum))
------------------------------------------------------------
-- 3. Parsing S-expressions