Reference Guide  2.5.0
__init__.py
1 # -----------------------------------------------------------------------------
2 # BSD 3-Clause License
3 #
4 # Copyright (c) 2017-2024, Science and Technology Facilities Council.
5 # All rights reserved.
6 #
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted provided that the following conditions are met:
9 #
10 # * Redistributions of source code must retain the above copyright notice, this
11 # list of conditions and the following disclaimer.
12 #
13 # * Redistributions in binary form must reproduce the above copyright notice,
14 # this list of conditions and the following disclaimer in the documentation
15 # and/or other materials provided with the distribution.
16 #
17 # * Neither the name of the copyright holder nor the names of its
18 # contributors may be used to endorse or promote products derived from
19 # this software without specific prior written permission.
20 #
21 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
24 # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
25 # COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
26 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
27 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
31 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32 # POSSIBILITY OF SUCH DAMAGE.
33 # -----------------------------------------------------------------------------
34 # Author S. Siso, STFC Daresbury Lab
35 # Modified by A. R. Porter and R. W. Ford, STFC Daresbury Lab
36 # Modified by J. Henrichs, Bureau of Meteorology
37 # -----------------------------------------------------------------------------
38 
39 ''' Symbols package module '''
40 
41 from psyclone.psyir.symbols.datasymbol import DataSymbol
42 from psyclone.psyir.symbols.containersymbol import ContainerSymbol
43 from psyclone.psyir.symbols.data_type_symbol import DataTypeSymbol
45  GenericInterfaceSymbol)
47  ArgumentInterface, AutomaticInterface, CommonBlockInterface,
48  DefaultModuleInterface, ImportInterface, PreprocessorInterface,
49  StaticInterface, UnknownInterface, UnresolvedInterface)
50 from psyclone.psyir.symbols.intrinsic_symbol import IntrinsicSymbol
51 from psyclone.psyir.symbols.routinesymbol import RoutineSymbol
52 from psyclone.psyir.symbols.symbol import Symbol, SymbolError
53 from psyclone.psyir.symbols.symbol_table import SymbolTable
54 from psyclone.psyir.symbols.typed_symbol import TypedSymbol
56  ArrayType, BOOLEAN_TYPE, CHARACTER_TYPE, DataType, INTEGER4_TYPE,
57  INTEGER8_TYPE, INTEGER_DOUBLE_TYPE, INTEGER_SINGLE_TYPE, INTEGER_TYPE,
58  NoType, REAL4_TYPE, REAL8_TYPE, REAL_DOUBLE_TYPE, REAL_SINGLE_TYPE,
59  REAL_TYPE, ScalarType, StructureType, TYPE_MAP_TO_PYTHON, UnresolvedType,
60  UnsupportedType, UnsupportedFortranType)
61 
62 # For auto documentation generation.
63 __all__ = ['ArgumentInterface',
64  'ArrayType',
65  'AutomaticInterface',
66  'BOOLEAN_TYPE',
67  'CHARACTER_TYPE',
68  'CommonBlockInterface',
69  'ContainerSymbol',
70  'DataSymbol',
71  'DataType',
72  'DataTypeSymbol',
73  'DefaultModuleInterface',
74  'GenericInterfaceSymbol',
75  'ImportInterface',
76  'INTEGER_TYPE',
77  'INTEGER_SINGLE_TYPE',
78  'INTEGER_DOUBLE_TYPE',
79  'INTEGER4_TYPE',
80  'INTEGER8_TYPE',
81  'IntrinsicSymbol',
82  'NoType',
83  'PreprocessorInterface',
84  'REAL_TYPE',
85  'REAL_SINGLE_TYPE',
86  'REAL_DOUBLE_TYPE',
87  'REAL4_TYPE',
88  'REAL8_TYPE',
89  'RoutineSymbol',
90  'ScalarType',
91  'StaticInterface',
92  'StructureType',
93  'Symbol',
94  'SymbolError',
95  'SymbolTable',
96  'TYPE_MAP_TO_PYTHON',
97  'TypedSymbol',
98  'UnsupportedFortranType',
99  'UnknownInterface',
100  'UnsupportedType',
101  'UnresolvedInterface',
102  'UnresolvedType']