Nektar++
Loading...
Searching...
No Matches
__init__.py
Go to the documentation of this file.
2# Provides Nektar support
3#
4# This file is derived from Myokit.
5# See http://myokit.org for copyright, sharing, and licensing details.
6#
7from __future__ import absolute_import, division
8from __future__ import print_function, unicode_literals
9
10from ._exporter import NektarExporter
11from ._ewriter import NektarExpressionWriter
12
13
14# Importers
15
16# Exporters
17_exporters = {
18 'nektar': NektarExporter,
19}
20
21
23 """
24 Returns a dict of all exporters available in this module.
25 """
26 return dict(_exporters)
27
28
29# Expression writers
30_ewriters = {
31 'nektar': NektarExpressionWriter,
32}
33
34
36 """
37 Returns a dict of all expression writers available in this module.
38 """
39 return dict(_ewriters)
40
41
42# Language keywords
43keywords = [
44 # Basic language keywords
45 'auto',
46 'break',
47 'case',
48 'char',
49 'const',
50 'continue',
51 'default',
52 'do',
53 'double',
54 'else',
55 'enum',
56 'extern',
57 'float',
58 'for',
59 'goto',
60 'if',
61 'inline',
62 'int',
63 'long',
64 'register',
65 'return',
66 'short',
67 'signed',
68 'sizeof',
69 'static',
70 'struct',
71 'switch',
72 'typedef',
73 'union',
74 'unsigned',
75 'void',
76 'volatile',
77 'while',
78 # From stddef.h
79 'NULL',
80 'offsetof',
81 'ptrdiff_t',
82 'wchar_t',
83 'size_t',
84 # From limits.h
85 # TODO?
86 # From math.h
87 'M_E',
88 'M_LOG2E',
89 'M_LOG10E',
90 'M_LN2',
91 'M_LN10',
92 'M_PI',
93 'M_PI_2',
94 'M_PI_4',
95 'M_1_PI',
96 'M_2_PI',
97 'M_2_SQRTPI',
98 'M_SQRT2',
99 'M_SQRT1_2',
100 'MAXFLOAT',
101 'HUGE_VAL',
102 'acos',
103 'asin',
104 'atan',
105 'atan2',
106 'ceil',
107 'cos',
108 'cosh',
109 'exp',
110 'fabs',
111 'floor',
112 'fmod',
113 'frexp',
114 'ldexp',
115 'log',
116 'log10',
117 'modf',
118 'pow',
119 'sin',
120 'sinh',
121 'sqrt',
122 'tan',
123 'tanh',
124 'erf',
125 'erfc',
126 'gamma',
127 'hypot',
128 'j0',
129 'j1',
130 'jn',
131 'lgamma',
132 'y0',
133 'y1',
134 'yn',
135 'isnan',
136 'acosh',
137 'asinh',
138 'atanh',
139 'cbrt',
140 'expm1',
141 'ilogb',
142 'log1p',
143 'logb',
144 'nextafter',
145 'remainder',
146 'rint',
147 'scalb',
148 # From sys/wait.h
149 # TODO?
150 # From stdlib.h
151 # http://pubs.opengroup.org/onlinepubs/7908799/xsh/stdlib.h.html
152 # Says: "Inclusion of the <stdlib.h> header may also make visible all
153 # symbols from <stddef.h>, <limits.h>, <math.h> and <sys/wait.h>."
154 'EXIT_FAILURE',
155 'EXIT_SUCCESS',
156 'RAND_MAX',
157 'MB_CUR_MAX',
158 'div_t',
159 'ldiv_t',
160 'a64l',
161 'abort',
162 'abs',
163 'atexit',
164 'atof',
165 'atoi',
166 'atol',
167 'bsearch',
168 'calloc',
169 'div',
170 'drand48',
171 'ecvt',
172 'erand48',
173 'exit',
174 'fcvt',
175 'free',
176 'gcvt',
177 'getenv',
178 'getsubopt',
179 'grantpt',
180 'initstate',
181 'jrand48',
182 'l64a',
183 'labs',
184 'lcong48',
185 'ldiv',
186 'lrand48',
187 'malloc',
188 'mblen',
189 'mbstowcs',
190 'mbtowc',
191 'mktemp',
192 'mkstemp',
193 'mrand48',
194 'nrand48',
195 'ptsname',
196 'putenv',
197 'qsort',
198 'rand',
199 'rand_r',
200 'random',
201 'realloc',
202 'realpath',
203 'seed48',
204 'setkey',
205 'setstate',
206 'srand',
207 'srand48',
208 'srandom',
209 'strtod',
210 'strtol',
211 'strtoul',
212 'system',
213 'ttyslot',
214 'unlockpt',
215 'valloc',
216 'wcstombs',
217 'wctomb',
218 # C++
219 'asm',
220 'new',
221 'try',
222 'using',
223 'operator',
224 'namespace',
225 'delete',
226 'friend',
227 'private',
228 'bal',
229 'protected',
230 'static_cast',
231 'catch',
232 'public',
233 'virtual',
234 'const_cast',
235 'template',
236 'dynamic_cast',
237 'class',
238 'this',
239 'true',
240 'throw',
241 'false',
242 # Nektar++
243 'NekDouble',
244 'Array',
245 'OneD',
246]
ewriters()
Definition __init__.py:35
exporters()
Definition __init__.py:22