Changeset 10011 for src/Pugs/Lexer.hs
- Timestamp:
- 04/18/06 11:15:18 (3 years ago)
- Files:
-
- 1 modified
-
src/Pugs/Lexer.hs (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Lexer.hs
r9887 r10011 146 146 aheadSym '-' '>' = False -- XXX hardcode 147 147 aheadSym '!' '~' = False -- XXX hardcode 148 aheadSym x '=' = not (x `elem` "!~+-*&/|.%^ ")148 aheadSym x '=' = not (x `elem` "!~+-*&/|.%^<>") 149 149 aheadSym '?' y = not (y `elem` "&|^?") 150 150 aheadSym '+' y = not (y `elem` "&|^+") … … 278 278 279 279 tryRule :: String -> GenParser Char st a -> GenParser Char st a 280 tryRule name action = (<?> name) $ lexeme $ tryaction280 tryRule name action = (<?> name) $ lexeme $ action 281 281 282 282 tryVerbatimRule :: String -> GenParser tok st a -> GenParser tok st a 283 tryVerbatimRule name action = (<?> name) $ tryaction283 tryVerbatimRule name action = (<?> name) $ action 284 284 285 285 ruleScope :: RuleParser Scope … … 351 351 tryChoice :: [GenParser tok st a] -- ^ List of candidate parsers 352 352 -> GenParser tok st a 353 tryChoice = choice . map try 353 tryChoice = choice 354 -- tryChoice = choice . map try 354 355 355 356 {-|
