Changeset 15477 for src/Pugs/AST.hs

Show
Ignore:
Timestamp:
03/05/07 19:25:41 (21 months ago)
Author:
audreyt
Message:

* Instead of inventing a complicated "special dispatch" for

super-magical pseudomethods like WHO/WHICH/ITEM/LIST, we
for now use the very convenient, very pythonesque treatment
of simply calling special method names like WHO, WHICH,
etc and hope that nobody mucks with them. ;)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/AST.hs

    r15473 r15477  
    424424 
    425425instance ((:>:) Call) Cxt where 
    426     cast CxtSlurpy{} = _LIST 
    427     cast _           = _ITEM 
    428  
    429 _LIST :: Call 
    430 _LIST = cast "LIST" 
    431  
    432 _ITEM :: Call 
    433 _ITEM = cast "ITEM" 
     426    cast CxtSlurpy{} = __LIST__ 
     427    cast _           = __ITEM__ 
     428 
     429__LIST__ :: Call 
     430__LIST__ = cast "__LIST__" 
     431 
     432__ITEM__ :: Call 
     433__ITEM__ = cast "__ITEM__"