compiler/PPCTrimmingTokenNode.st
changeset 515 b5316ef15274
parent 452 9f4558b3be66
child 532 132d7898a2a1
equal deleted inserted replaced
502:1e45d3c96ec5 515:b5316ef15274
    17 !
    17 !
    18 
    18 
    19 child: anObject
    19 child: anObject
    20     
    20     
    21     children at: 2 put: anObject
    21     children at: 2 put: anObject
    22 !
       
    23 
       
    24 prefix
       
    25     ^ #token
       
    26 !
    22 !
    27 
    23 
    28 tokenClass
    24 tokenClass
    29     
    25     
    30     ^ tokenClass
    26     ^ tokenClass
    91 
    87 
    92 hash
    88 hash
    93     ^ super hash bitXor: tokenClass hash
    89     ^ super hash bitXor: tokenClass hash
    94 ! !
    90 ! !
    95 
    91 
       
    92 !PPCTrimmingTokenNode methodsFor:'ids'!
       
    93 
       
    94 defaultName
       
    95     ^ #token
       
    96 ! !
       
    97 
    96 !PPCTrimmingTokenNode methodsFor:'initialization'!
    98 !PPCTrimmingTokenNode methodsFor:'initialization'!
    97 
    99 
    98 initialize
   100 initialize
    99     super initialize.
   101     super initialize.
   100     children := Array new: 2
   102     children := Array new: 2