fab.parse#
Classes
|
Analysis results for a single file. |
|
An analysis result for a file which resulted in an empty parse tree. |
Exceptions
- exception fab.parse.ParseException#
- class fab.parse.AnalysedFile(fpath, file_hash=None)#
Analysis results for a single file. Abstract base class.
- Parameters:
If not provided, the self.file_hash property is lazily evaluated in case the file does not yet exist.
- to_dict()#
Create a dict representing the object.
The dict may be written to json, so can’t contain sets. Lists are sorted for reproducibility in testing.
- classmethod field_names()#
Defines the order in which we want fields to appear in str or repr strings.
Calling this helps to ensure any lazy attributes are evaluated before use, e.g when constructing a string representation of the instance, or generating a hash value.
- class fab.parse.EmptySourceFile(fpath)#
An analysis result for a file which resulted in an empty parse tree.
Modules
C language handling classes. |
|
Fortran language handling classes. |
|
Common functionality for both Fortran and (sanitised) X90 processing. |
|