compiler/PPCNilNode.st
changeset 391 553a5456963b
child 392 9b297f0d949c
equal deleted inserted replaced
390:17ba167b8ee1 391:553a5456963b
       
     1 "{ Package: 'stx:goodies/petitparser/compiler' }"
       
     2 
       
     3 PPCNode subclass:#PPCNilNode
       
     4 	instanceVariableNames:''
       
     5 	classVariableNames:''
       
     6 	poolDictionaries:''
       
     7 	category:'PetitCompiler-Nodes'
       
     8 !
       
     9 
       
    10 PPCNilNode comment:''
       
    11 !
       
    12 
       
    13 !PPCNilNode methodsFor:'as yet unclassified'!
       
    14 
       
    15 acceptsEpsilon
       
    16 	^ true
       
    17 !
       
    18 
       
    19 asInlined
       
    20 	^ PPCInlineNilNode new
       
    21 !
       
    22 
       
    23 compileWith: compiler effect: effect id: id
       
    24 	compiler startMethod: id.
       
    25 	compiler add: '^ nil.'.
       
    26  ^ compiler stopMethod.
       
    27 !
       
    28 
       
    29 firstCharParser
       
    30 	^ PPFailingParser new
       
    31 !
       
    32 
       
    33 prefix
       
    34 	^ #nil
       
    35 ! !
       
    36