Changeset 8153 for src/Pugs/Lexer.hs

Show
Ignore:
Timestamp:
12/10/05 13:24:15 (3 years ago)
Author:
gaal
Message:

* Refactor Cxt, Pos, and Prag nodes in Exp to a unified Ann

(for Annotation) type. This should ease work on lexical pragmas.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Lexer.hs

    r8006 r8153  
    163163interpolatingStringLiteral startrule endrule interpolator = do 
    164164    list <- stringList 0 
    165     return . Cxt (CxtItem $ mkType "Str") $ homogenConcat list 
     165    return $ Ann (Cxt (CxtItem $ mkType "Str")) (homogenConcat list) 
    166166    where 
    167167    homogenConcat :: [Exp] -> Exp