Changeset 3612 for src/Pugs/Lexer.hs

Show
Ignore:
Timestamp:
05/21/05 23:51:33 (4 years ago)
Author:
autrijus
svk:copy_cache_prev:
5201
Message:

* unify parsing for class Foo {} and class Foo; -- the latter

form was without is Bar handling.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Lexer.hs

    r3372 r3612  
    255255ruleTrait = rule "trait" $ do 
    256256    symbol "is" <|> symbol "does" 
    257     trait <- ruleQualifiedIdentifier 
     257    trait <- do 
     258        optional $ string "::" -- XXX Bad Hack 
     259        ruleQualifiedIdentifier 
    258260    return trait 
    259261