Changeset 7952 for src/Pugs/Lexer.hs
- Timestamp:
- 11/14/05 03:15:26 (3 years ago)
- svk:copy_cache_prev:
- 10363
- Files:
-
- 1 modified
-
src/Pugs/Lexer.hs (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Lexer.hs
r7949 r7952 13 13 module Pugs.Lexer ( 14 14 wordAlpha, wordAny, isWordAlpha, isWordAny, 15 maybeParens, parens, whiteSpace, lexeme, identifier,15 maybeParens, parens, whiteSpace, mandatoryWhiteSpace, lexeme, identifier, 16 16 braces, brackets, angles, balanced, balancedDelim, decimal, 17 17 … … 69 69 whiteSpace :: CharParser st () 70 70 whiteSpace = P.whiteSpace perl6Lexer 71 mandatoryWhiteSpace :: CharParser st () 72 mandatoryWhiteSpace = skipMany1 (oneOf " \t\n") -- XXX unicode and whatnot 71 73 lexeme :: CharParser st a -> CharParser st a 72 74 lexeme = P.lexeme perl6Lexer … … 200 202 201 203 charControl :: GenParser Char st Char 202 charControl = do{ char ' ^'204 charControl = do{ char 'c' 203 205 ; code <- upper 204 ; return (toEnum (fromEnum code - fromEnum ' A'))206 ; return (toEnum (fromEnum code - fromEnum '@')) 205 207 } 206 208
