2 import Text.ParserCombinators.Parsec hiding (spaces)
3 import System.Environment
6 symbol = oneOf "!#$%&|*+-/:<=>?@^_~"
9 spaces = skipMany space
11 readExpr :: String -> String
12 readExpr input = case parse (spaces >> symbol) "lisp" input of
13 Left err -> "No match: " ++ show err
14 Right val -> "Found value"
19 putStrLn (readExpr args)