branch | webgl |
changeset 9166 | 3774ac58e65e |
parent 8444 | 75db7bb8dce8 |
child 9954 | bf51bc7e2808 |
--- a/tools/pas2c/PascalParser.hs Sat Jun 15 23:44:37 2013 +0400 +++ b/tools/pas2c/PascalParser.hs Sat Jun 15 23:45:53 2013 +0400 @@ -24,9 +24,10 @@ return u iD = do - i <- liftM (flip Identifier BTUnknown) (identifier pas) + i <- identifier pas comments - return i + when (i == "not") $ unexpected "'not' used as an identifier" + return $ Identifier i BTUnknown unit = do string "unit" >> comments