--- a/tools/PascalParser.hs Sat Apr 14 23:50:14 2012 +0400
+++ b/tools/PascalParser.hs Sun Apr 15 00:47:22 2012 +0400
@@ -14,7 +14,7 @@
import PascalBasics
import PascalUnitSyntaxTree
-knownTypes = ["shortstring", "char", "byte"]
+knownTypes = ["shortstring", "ansistring", "char", "byte"]
pascalUnit = do
comments
@@ -119,6 +119,7 @@
char '^' >> typeDecl >>= return . PointerTo
, try (string "shortstring") >> return (String 255)
, try (string "string") >> optionMaybe (brackets pas $ integer pas) >>= return . String . fromMaybe 255
+ , try (string "ansistring") >> optionMaybe (brackets pas $ integer pas) >>= return . String . fromMaybe 255
, arrayDecl
, recordDecl
, setDecl