tools/pas2c/PascalParser.hs
branch0.9.21
changeset 10747 07ade56c3b4a
parent 10353 25f325b48a6c
child 10924 ed1b6914cac5
--- a/tools/pas2c/PascalParser.hs	Sun Jan 04 14:04:17 2015 -0500
+++ b/tools/pas2c/PascalParser.hs	Tue Jan 06 17:07:34 2015 +0100
@@ -629,6 +629,8 @@
         , try $ integer pas >>= \i -> notFollowedBy (char' '.') >> (return . InitNumber . show) i
         , try $ float pas >>= return . InitFloat . show
         , try $ integer pas >>= return . InitNumber . show
+        , try (string' "_S" >> stringLiteral pas) >>= return . InitString
+        , try (string' "_P" >> stringLiteral pas) >>= return . InitPChar
         , stringLiteral pas >>= return . InitString
         , char' '#' >> many digit >>= \c -> comments >> return (InitChar c)
         , char' '$' >> many hexDigit >>= \h -> comments >> return (InitHexNumber h)