def p_typedef(self, p):
        '''typedef : TYPEDEF field_type IDENTIFIER annotations'''
        p[0] = ast.Typedef(
            name=p[3], target_type=p[2], annotations=p[4], lineno=p.lineno(3)
        )
def p_typedef ( self , p ) : p [ 0 ] = ast . Typedef ( name = p [ 3 ] , target_type = p [ 2 ] , annotations = p [ 4 ] , lineno = p . lineno ( 3 ) )
typedef : TYPEDEF field_type IDENTIFIER annotations