Changeset 12265 for src/Pugs/Lexer.hs

Show
Ignore:
Timestamp:
08/15/06 18:55:42 (2 years ago)
Author:
audreyt
Message:

* Pugs.Lexer: "\0123" is now as dead as "\123" -- both fatal parsefails.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Lexer.hs

    r12264 r12265  
    279279    codes <- choice 
    280280        [ 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] 
    282282        , based 'o'  8 octDigit 
    283283        , based 'x' 16 hexDigit