def p_namedblock_statement(self, p):
        """namedblock_statement : basic_statement
        | decl
        | integerdecl
        | realdecl
        | parameterdecl
        | localparamdecl
        """
        if isinstance(p[1], Decl):
            for r in p[1].list:
                if (not isinstance(r, Reg) and not isinstance(r, Wire)
                    and not isinstance(r, Integer) and not isinstance(r, Real)
                        and not isinstance(r, Parameter) and not isinstance(r, Localparam)):
                    raise ParseError("Syntax Error")
        p[0] = p[1]
        p.set_lineno(0, p.lineno(1))
def p_namedblock_statement ( self , p ) : if isinstance ( p [ 1 ] , Decl ) : for r in p [ 1 ] . list : if ( not isinstance ( r , Reg ) and not isinstance ( r , Wire ) and not isinstance ( r , Integer ) and not isinstance ( r , Real ) and not isinstance ( r , Parameter ) and not isinstance ( r , Localparam ) ) : raise ParseError ( "Syntax Error" ) p [ 0 ] = p [ 1 ] p . set_lineno ( 0 , p . lineno ( 1 ) )
namedblock_statement : basic_statement
        | decl
        | integerdecl
        | realdecl
        | parameterdecl
        | localparamdecl