fparser.common.utils
Various utility functions.
Permission to use, modify, and distribute this software is given under the terms of the NumPy License. See http://scipy.org.
NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. Author: Pearu Peterson <pearu@cens.ioc.ee> Created: May 2006
Module Contents
Classes
Make classes available as attributes of this class. |
Functions
|
Split (an optionally bracketed) comma-separated list into |
|
|
|
|
|
|
|
|
|
|
|
Convert Fortran code to Statement tree. |
Attributes
- exception fparser.common.utils.ParseError[source]
Bases:
Exception
Common base class for all non-exit exceptions.
- exception fparser.common.utils.AnalyzeError[source]
Bases:
Exception
Common base class for all non-exit exceptions.
- fparser.common.utils.split_comma(line, item=None, comma=',', keep_empty=False, brackets=None)[source]
Split (an optionally bracketed) comma-separated list into items and return a list containing them. If supplied then brackets must be a list of containing two strings, the first being the opening bracket and the second the closing bracket.
- fparser.common.utils.str2stmt(string, isfree=True, isstrict=False)[source]
Convert Fortran code to Statement tree.
- class fparser.common.utils.classes[source]
Bases:
type
Make classes available as attributes of this class.
To add a class to the attributes list, one must use:
class Name(metaclass=classes):
in the definition of the class.
In addition, apply the following tasks:
decorate analyze methods with show_item_on_failure