Changeset 17047 for src/Pugs/Lexer.hs
- Timestamp:
- 07/14/07 04:45:22 (17 months ago)
- Files:
-
- 1 modified
-
src/Pugs/Lexer.hs (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Lexer.hs
r15594 r17047 13 13 wordAlpha, wordAny, isWordAlpha, isWordAny, 14 14 maybeParens, parens, whiteSpace, mandatoryWhiteSpace, lexeme, identifier, identLetter, 15 braces, brackets, angles, balanced , balancedDelim, decimal,16 17 ruleVerbatimIdentifier, ruleDelimitedIdentifier, ruleQualifiedIdentifier, ruleWhiteSpaceLine,15 braces, brackets, angles, balancedDelim, decimal, 16 17 ruleVerbatimIdentifier, ruleDelimitedIdentifier, ruleQualifiedIdentifier, 18 18 19 19 symbol, interpolatingStringLiteral, escapeCode, … … 131 131 #endif 132 132 133 {- 133 134 -- balanced: parses an open/close delimited expression of any non-alphanumeric character 134 135 balanced :: RuleParser String … … 140 141 return contents 141 142 142 {-143 143 -- The \b rule. 144 144 _ruleWordBoundary :: RuleParser () … … 190 190 return (c:cs) 191 191 192 {- 192 193 {-| 193 194 Match any amount of whitespace (not including newlines), followed by a newline … … 205 206 ruleEndOfLine :: RuleParser () 206 207 ruleEndOfLine = choice [ do { char '\n'; return () }, eof ] 208 -} 207 209 208 210 symbol :: String -> RuleParser String
