Changeset 12268 for src/Pugs/Lexer.hs
- Timestamp:
- 08/15/06 19:18:47 (2 years ago)
- Files:
-
- 1 modified
-
src/Pugs/Lexer.hs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Lexer.hs
r12266 r12268 280 280 [ many1 digit >>= \ds -> case ds of 281 281 "0" -> return [0] 282 -- "\08..." and "\09..." are treated as "\0" and then "8..." or "9...". 283 ('0':xs@(x:_)) | x == '8' || x == '9' -> return (0:map (toInteger . ord) xs) 282 284 _ -> error ("Error: Invalid escape sequence \\" ++ ds ++ "; write as decimal \\d" ++ ds ++ " or octal \\o" ++ ds ++ " instead") -- $ return [read ds] 283 285 , based 'o' 8 octDigit
