Oops, function call has parens
authorunc0rr
Sat, 19 Nov 2011 19:30:20 +0300
changeset 6397 6eb58ae8b510
parent 6396 71dd6b8494e5
child 6398 33c92c4ac749
child 6399 a904c735979c
Oops, function call has parens
tools/PascalParser.hs
--- a/tools/PascalParser.hs	Fri Nov 18 12:47:40 2011 -0500
+++ b/tools/PascalParser.hs	Sat Nov 19 19:30:20 2011 +0300
@@ -630,6 +630,6 @@
 builtInFunction e = do
     name <- choice $ map (\s -> try $ caseInsensitiveString s >>= \i -> notFollowedBy alphaNum >> return i) builtin
     spaces
-    exprs <- many1 e
+    exprs <- parens pas $ commaSep1 pas $ e
     spaces
     return (name, exprs)