Changeset 15242 for src/Pugs/Lexer.hs
- Timestamp:
- 02/10/07 04:37:58 (22 months ago)
- Files:
-
- 1 modified
-
src/Pugs/Lexer.hs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Lexer.hs
r15230 r15242 379 379 readScope "temp" = STemp 380 380 readScope "env" = SEnv 381 readScope "constant"= SMy 381 382 readScope _ = SGlobal 382 383 383 384 ruleScopeName :: RuleParser String 384 ruleScopeName = choice . map symbol . map (map toLower) . map (tail . show) 385 $ [SState .. SOur] 385 ruleScopeName = choice $ map symbol scopeNames 386 387 scopeNames :: [String] 388 scopeNames = ("constant":) . map (map toLower) . map (tail . show) $ [SState .. SOur] 386 389 387 390 postSpace :: RuleParser a -> RuleParser a
