fparser.two.Fortran2008.error_stop_stmt_r856
Module containing Fortran2008 Error_Stop_Stmt rule R856
Module Contents
Classes
Fortran 2008 rule R856 |
- class fparser.two.Fortran2008.error_stop_stmt_r856.Error_Stop_Stmt(string, parent_cls=None)[source]
Bases:
fparser.two.utils.StmtBase
,fparser.two.utils.WORDClsBase
Fortran 2008 rule R856 error-stop-stmt is ERROR STOP [ stop-code ]
- static match(string)[source]
Check whether the input matches the rule
- Parameters:
string (str) – Text that we are trying to match.
- Returns:
None if there is no match or, if there is a match, a 2-tuple containing a string matching ‘ERROR STOP’ and an instance of
fparser.two.Fortran2003.Stop_Code
(or None if an instance of ‘Stop_Code’ is not required and not provided).- Return type:
(str,
fparser.two.Fortran2003.Stop_Code
or None) or NoneType