Changeset 6067 for src/Pugs/Lexer.hs

Show
Ignore:
Timestamp:
08/04/05 15:41:44 (3 years ago)
Author:
scook0
svk:copy_cache_prev:
8204
Message:

* Initial stab at some Haddock docs for Parser.hs
* Formatted CodeGen?.hs' poem for Haddock :-)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Lexer.hs

    r5539 r6067  
    9494    return (c:cs) 
    9595 
     96{-| 
     97Match any amount of whitespace (not including newlines), followed by a newline 
     98(as matched by 'ruleEndOfLine'). 
     99-} 
    96100ruleWhiteSpaceLine :: GenParser Char st () 
    97101ruleWhiteSpaceLine = do 
     
    99103    ruleEndOfLine 
    100104 
     105{-| 
     106Match either a single newline, or EOF (which constitutes the termination of a 
     107line anyway). 
     108-} 
    101109ruleEndOfLine :: GenParser Char st () 
    102110ruleEndOfLine = choice [ do { char '\n'; return () }, eof ]