Changeset 10026 for src/Pugs/Lexer.hs

Show
Ignore:
Timestamp:
04/18/06 19:20:31 (3 years ago)
Author:
audreyt
Message:

* Preparing for a default-commit parser.

(also fix the Lexer overeager commit reported by Leo.)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Lexer.hs

    r10011 r10026  
    278278 
    279279tryRule :: String -> GenParser Char st a -> GenParser Char st a 
    280 tryRule name action = (<?> name) $ lexeme $ action 
     280tryRule name action = (<?> name) $ lexeme $ try action 
    281281 
    282282tryVerbatimRule :: String -> GenParser tok st a -> GenParser tok st a 
    283 tryVerbatimRule name action = (<?> name) $ action 
     283tryVerbatimRule name action = (<?> name) $ try action 
    284284 
    285285ruleScope :: RuleParser Scope 
     
    351351tryChoice :: [GenParser tok st a] -- ^ List of candidate parsers 
    352352          -> GenParser tok st a 
    353 tryChoice = choice 
    354 -- tryChoice = choice . map try 
     353tryChoice = choice . map try 
    355354 
    356355{-|