Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 8aacefb

Browse files
committed
Parse string literals.
1 parent d076bbb commit 8aacefb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

semantic-core/src/Data/Core/Parser.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ lit = let x `given` n = x <$ reserved n in choice
101101
, Core.bool False `given` "#false"
102102
, Core.unit `given` "#unit"
103103
, Core.frame `given` "#frame"
104+
, between (string "\"") (string "\"") (Core.string . fromString <$> many ('"' <$ string "\\\"" <|> noneOf "\""))
104105
, lambda
105106
] <?> "literal"
106107

0 commit comments

Comments
 (0)