Changeset 10059 for src/Pugs/Lexer.hs

Show
Ignore:
Timestamp:
04/23/06 14:04:21 (3 years ago)
Author:
audreyt
Message:

* Third-party cleanup #1:

  • Remove most of Parsec from our source tree;

the remaining Expr.hs and Token.hs will be reimplemented
to support true dynamic Perl 6 operator precedence parsing
with "is looser", "is parsed" and friends.

  • Remove Dimitry Golubovsky's UnicodeC.c from our tree. (This touches pretty most of the .hs file.)

* Update dependency to GHC 6.4.1, because UnicodeC.c and the

Unicode-aware Parsec was not there in 6.4.0.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Lexer.hs

    r10027 r10059  
    11{-# OPTIONS_GHC -fglasgow-exts -fvia-C -optc-w #-} 
    2 {-# OPTIONS_GHC -#include "../UnicodeC.h" #-} 
    32 
    43{-| 
     
    3029import Pugs.AST 
    3130import Pugs.Rule 
    32 import Pugs.Rule.Language 
    3331import Pugs.Types 
    3432import Pugs.Parser.Types 
     
    7977angles     = P.angles     perl6Lexer 
    8078balanced   :: CharParser st String 
    81 balanced   = P.balanced   perl6Lexer 
     79balanced   = P.balanced 
    8280balancedDelim :: Char -> Char 
    83 balancedDelim = P.balancedDelim perl6Lexer 
     81balancedDelim = P.balancedDelim 
    8482decimal    :: CharParser st Integer 
    8583decimal    = P.decimal    perl6Lexer 
     
    107105ruleVerbatimIdentifier :: GenParser Char st String 
    108106ruleVerbatimIdentifier = (<?> "identifier") $ do 
    109     c  <- identStart perl6Def 
    110     cs <- many (identLetter perl6Def) 
     107    c  <- P.identStart perl6Def 
     108    cs <- many (P.identLetter perl6Def) 
    111109    return (c:cs) 
    112110