Changeset 12265 for src/Pugs/Lexer.hs
- Timestamp:
- 08/15/06 18:55:42 (2 years ago)
- Files:
-
- 1 modified
-
src/Pugs/Lexer.hs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Lexer.hs
r12264 r12265 279 279 codes <- choice 280 280 [ many1 digit >>= \ds -> do 281 trace ("Warning: \\" ++ ds ++ " interpreted as decimal \\d" ++ ds ++ "; write \\o" ++ ds ++ " for octal digits")$ return [read ds]281 error ("Error: \\" ++ ds ++ " is ambiguous: write as decimal \\d" ++ ds ++ " or octal \\o" ++ ds ++ " instead") -- $ return [read ds] 282 282 , based 'o' 8 octDigit 283 283 , based 'x' 16 hexDigit
