#NEWLINE# def test_plp_sngl( self ) : #NEWLINE# #INDENT# tokens = list ( lexical ( 'PLP' ) ) #NEWLINE# self . assertEquals ( 1 , len ( tokens ) ) #NEWLINE# self . assertEquals ( 'T_INSTRUCTION' , tokens [ 0 ] [ 'type' ] ) #NEWLINE# ast = syntax ( self ) #NEWLINE# self . assertEquals ( 1 , len ( ast ) ) #NEWLINE# self . assertEquals ( 'S_IMPLIED' , ast [ 0 ] [ 'type' ] ) #NEWLINE# code = semantic ( ast ) #NEWLINE# self . assertEquals ( code , [ 40 ] )