Closed adamwespiser closed 8 years ago
Use this in your parser
parseString :: Parser LispVal
parseString = do
x <- strLit
return $ String x
Repl> '("a")
List [String "a"]
Repl> "foo"
String "foo"
Repl> '("foo \"inner quote\" ")
List [String "foo \"inner quote\" "]
that's great! see https://github.com/write-you-a-scheme-v2/scheme/commit/05855b1e9c2943f8f3f9e912feb3895ca004181d for working solution.
@sdiehl, having problems getting the parser to work creating LispVal values of strings
It looks like the Parsec standard lisp parser is taking a different approach: https://hackage.haskell.org/package/lispparser-0.3.1/docs/src/Text-ParserCombinators-Parsec-Lisp.html
any insight on parsing in double quoted strings from the repl into LispVal?