tools/PascalParser.hs
changeset 6897 a9126661f613
parent 6895 31def088a870
child 7043 7c080e5ac8d0
equal deleted inserted replaced
6896:23b38e530967 6897:a9126661f613
   596         return $ InitTypeCast (Identifier t BTUnknown) i
   596         return $ InitTypeCast (Identifier t BTUnknown) i
   597         
   597         
   598 builtInFunction e = do
   598 builtInFunction e = do
   599     name <- choice $ map (\s -> try $ caseInsensitiveString s >>= \i -> notFollowedBy alphaNum >> return i) builtin
   599     name <- choice $ map (\s -> try $ caseInsensitiveString s >>= \i -> notFollowedBy alphaNum >> return i) builtin
   600     spaces
   600     spaces
   601     exprs <- option [] $ parens pas $ commaSep1 pas $ e
   601     exprs <- option [] $ parens pas $ option [] $ commaSep1 pas $ e
   602     spaces
   602     spaces
   603     return (name, exprs)
   603     return (name, exprs)
   604 
   604 
   605 systemUnit = do
   605 systemUnit = do
   606     string "system;"
   606     string "system;"