fparser.two.Fortran2008.critical_construct_r810

Module containing Fortran2008 Critical_Construct rule R810

Module Contents

Classes

Critical_Construct

Fortran 2008 Rule 810.

class fparser.two.Fortran2008.critical_construct_r810.Critical_Construct(string, parent_cls=None)[source]

Bases: fparser.two.utils.BlockBase

Fortran 2008 Rule 810.

critical-construct is critical-stmt

block end-critical-stmt

TODO: Should disallow RETURN (C809) and CYCLE or EXIT to outside block (C811)

subclass_names = [][source]
use_names = ['Critical_Stmt', 'Execution_Part_Construct', 'End_Critical_Stmt'][source]
static match(reader)[source]

Attempt to match the supplied content with this Rule.

Parameters:

reader (fparser.common.readfortran.FortranFileReader | fparser.common.readfortran.FortranStringReader) – the fortran file reader containing the line(s) of code that we are trying to match

Returns:

instance of class that has matched or None if no match.

Return type:

fparser.two.utils.BlockBase | NoneType