fparser.two.Fortran2008.if_stmt_r837

Module containing Fortran2008 If_Stmt rule R837

Module Contents

Classes

If_Stmt

Fortran 2008 rule R837

class fparser.two.Fortran2008.if_stmt_r837.If_Stmt(string, parent_cls=None)[source]

Bases: fparser.two.Fortran2003.If_Stmt

Fortran 2008 rule R837 if-stmt is IF ( scalar-logical-expr ) action-stmt

The implementation of this rule only replaces the use_names and action_stmt_class attributes to use the Fortran 2008 variant Action_Stmt_C828 instead of fparser.two.Fortran2003.Action_Stmt_C802.

Associated constraints are:

C828 (R837) The action-stmt in the if-stmt shall not be an end-function-stmt,

end-mp-subprogram-stmt, end-program-stmt, end-subroutine-stmt, or if-stmt.

use_names = ['Scalar_Logical_Expr', 'Action_Stmt_C828'][source]
action_stmt_cls[source]