blob: 2f51d470ddf89abf3bf5b4e21cd3096a7b33fcb1 [file] [log] [blame]
Damien George04b91472014-05-03 23:27:38 +01001/*
2 * This file is part of the Micro Python project, http://micropython.org/
3 *
4 * The MIT License (MIT)
5 *
6 * Copyright (c) 2013, 2014 Damien P. George
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a copy
9 * of this software and associated documentation files (the "Software"), to deal
10 * in the Software without restriction, including without limitation the rights
11 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12 * copies of the Software, and to permit persons to whom the Software is
13 * furnished to do so, subject to the following conditions:
14 *
15 * The above copyright notice and this permission notice shall be included in
16 * all copies or substantial portions of the Software.
17 *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 * THE SOFTWARE.
25 */
26
Damien George51dfcb42015-01-01 20:27:54 +000027#include "py/mpconfig.h"
28
Damien Georgeeb7bfcb2014-01-04 15:57:35 +000029// All the qstr definitions in this file are available as constants.
Damien George0c36da02014-03-08 15:24:39 +000030// That is, they are in ROM and you can reference them simply as MP_QSTR_xxxx.
Damien Georgeeb7bfcb2014-01-04 15:57:35 +000031
Damien George6942f802015-01-11 17:52:45 +000032// qstr configuration passed to makeqstrdata.py of the form QCFG(key, value)
Damien George95836f82015-01-11 22:27:30 +000033QCFG(BYTES_IN_LEN, MICROPY_QSTR_BYTES_IN_LEN)
Damien George6942f802015-01-11 17:52:45 +000034
35Q()
Damien George708c0732014-04-27 19:23:46 +010036Q(*)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +000037Q(__build_class__)
38Q(__class__)
39Q(__doc__)
Paul Sokolovsky1d938c92014-02-04 00:46:17 +020040Q(__import__)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +000041Q(__init__)
Paul Sokolovsky13684fd2014-05-18 20:37:18 +030042Q(__new__)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +000043Q(__locals__)
44Q(__main__)
45Q(__module__)
46Q(__name__)
stijne00eeaf2014-11-12 14:57:34 +010047Q(__hash__)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +000048Q(__next__)
49Q(__qualname__)
Paul Sokolovsky13d52df2014-04-11 23:25:35 +030050Q(__path__)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +000051Q(__repl_print__)
Paul Sokolovskyd0f5e612014-07-25 11:00:15 +030052#if MICROPY_PY___FILE__
53Q(__file__)
54#endif
Damien Georgeeb7bfcb2014-01-04 15:57:35 +000055
Damien George09a0c642014-01-30 10:05:33 +000056Q(__bool__)
Paul Sokolovsky036ad762014-04-13 10:39:25 +030057Q(__contains__)
Paul Sokolovsky44307d52014-03-29 04:10:11 +020058Q(__enter__)
59Q(__exit__)
Damien George09a0c642014-01-30 10:05:33 +000060Q(__len__)
Damien George9e6e9352014-03-26 18:37:06 +000061Q(__iter__)
Damien George7c9c6672014-01-25 00:17:36 +000062Q(__getitem__)
Damien George7d0bfbe2014-02-08 19:01:47 +000063Q(__setitem__)
Paul Sokolovsky14de1142014-04-13 23:55:59 +030064Q(__delitem__)
Damien George7c9c6672014-01-25 00:17:36 +000065Q(__add__)
66Q(__sub__)
Paul Sokolovsky51bbf6a2014-03-16 15:16:54 +020067Q(__repr__)
68Q(__str__)
stijn28fa84b2015-02-14 18:43:54 +010069#if MICROPY_PY_DESCRIPTORS
70Q(__get__)
71Q(__set__)
Damien George56606f32015-04-04 20:15:31 +010072Q(__delete__)
stijn28fa84b2015-02-14 18:43:54 +010073#endif
Damien Georgee44d26a2014-03-31 22:57:56 +010074Q(__getattr__)
muxcc849f72014-04-05 15:49:03 +020075Q(__del__)
Paul Sokolovsky755565d2014-04-25 21:15:16 +030076Q(__call__)
Paul Sokolovsky5473f742014-06-08 00:01:46 +030077Q(__lt__)
Damien George779794a2014-08-26 09:31:26 +010078Q(__gt__)
79Q(__eq__)
80Q(__le__)
81Q(__ge__)
Damien George962a5d52015-01-21 00:19:42 +000082Q(__reversed__)
Paul Sokolovsky98c4bc32015-01-30 01:42:49 +020083#if MICROPY_PY_ALL_SPECIAL_METHODS
Paul Sokolovskye06cf892015-02-21 19:35:09 +020084Q(__mul__)
85Q(__truediv__)
86Q(__floordiv__)
Paul Sokolovsky98c4bc32015-01-30 01:42:49 +020087Q(__iadd__)
Paul Sokolovskye06cf892015-02-21 19:35:09 +020088Q(__isub__)
Paul Sokolovsky1bc53422015-03-30 02:29:59 +030089Q(__invert__)
90Q(__neg__)
91Q(__pos__)
Paul Sokolovsky98c4bc32015-01-30 01:42:49 +020092#endif
Damien George7c9c6672014-01-25 00:17:36 +000093
Damien Georgeeb7bfcb2014-01-04 15:57:35 +000094Q(micropython)
Damien George3417bc22014-05-10 10:36:38 +010095Q(bytecode)
Damien George2ac4af62014-08-15 16:45:41 +010096Q(const)
97
Damien Georgec90f59e2014-09-06 23:06:36 +010098#if MICROPY_EMIT_NATIVE
Damien Georgeeb7bfcb2014-01-04 15:57:35 +000099Q(native)
100Q(viper)
Damien George2ac4af62014-08-15 16:45:41 +0100101Q(uint)
Damien Georgee9dac3b2014-09-29 22:10:41 +0100102Q(ptr)
103Q(ptr8)
104Q(ptr16)
Damien George2ac4af62014-08-15 16:45:41 +0100105#endif
Damien Georgee5f8a772014-04-21 13:33:15 +0100106
107#if MICROPY_EMIT_INLINE_THUMB
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000108Q(asm_thumb)
Damien Georgee5f8a772014-04-21 13:33:15 +0100109Q(label)
110Q(align)
111Q(data)
112#endif
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000113
Damien George3d615282014-09-17 23:17:26 +0100114Q(builtins)
115
Damien Georgee9906ac2014-01-04 18:44:46 +0000116Q(Ellipsis)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000117Q(StopIteration)
Paul Sokolovsky5ab5ac52015-05-04 19:45:53 +0300118#if MICROPY_PY_BUILTINS_NOTIMPLEMENTED
119Q(NotImplemented)
120#endif
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000121
Damien Georgec5966122014-02-15 16:10:44 +0000122Q(BaseException)
Rachel Dowdall721c55d2014-03-22 15:28:16 +0000123Q(ArithmeticError)
Damien George71c51812014-01-04 20:21:15 +0000124Q(AssertionError)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000125Q(AttributeError)
Rachel Dowdall721c55d2014-03-22 15:28:16 +0000126Q(BufferError)
Rachel Dowdall721c55d2014-03-22 15:28:16 +0000127Q(EOFError)
Rachel Dowdall721c55d2014-03-22 15:28:16 +0000128Q(Exception)
129Q(FileExistsError)
130Q(FileNotFoundError)
131Q(FloatingPointError)
Rachel Dowdall721c55d2014-03-22 15:28:16 +0000132Q(GeneratorExit)
Paul Sokolovsky7cd54d72014-02-04 03:33:55 +0200133Q(ImportError)
Damien George9528cd62014-01-15 21:23:31 +0000134Q(IndentationError)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000135Q(IndexError)
Damien George124df6f2014-10-25 18:19:55 +0100136Q(KeyboardInterrupt)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000137Q(KeyError)
Rachel Dowdall721c55d2014-03-22 15:28:16 +0000138Q(LookupError)
139Q(MemoryError)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000140Q(NameError)
Paul Sokolovsky76f06de2014-02-09 13:17:36 +0200141Q(NotImplementedError)
Damien George9528cd62014-01-15 21:23:31 +0000142Q(OSError)
Paul Sokolovsky166bb402014-01-18 12:46:43 +0200143Q(OverflowError)
Rachel Dowdall721c55d2014-03-22 15:28:16 +0000144Q(RuntimeError)
Rachel Dowdall721c55d2014-03-22 15:28:16 +0000145Q(SyntaxError)
Damien George7a4ddd22014-05-24 23:32:19 +0100146Q(SystemExit)
Rachel Dowdall721c55d2014-03-22 15:28:16 +0000147Q(TypeError)
148Q(UnboundLocalError)
Rachel Dowdall721c55d2014-03-22 15:28:16 +0000149Q(ValueError)
Damien Georgec8b60f02015-04-20 13:29:31 +0000150#if MICROPY_EMIT_NATIVE
151Q(ViperTypeError)
152#endif
Rachel Dowdall300c8bd2014-03-20 22:40:38 +0000153Q(ZeroDivisionError)
Paul Sokolovsky71ebd4b2015-02-23 23:18:36 +0200154#if MICROPY_PY_BUILTINS_STR_UNICODE
155Q(UnicodeError)
156#endif
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000157
Damien George3ec0a1a2014-03-22 21:31:28 +0000158Q(None)
159Q(False)
160Q(True)
161Q(object)
Rachel Dowdall721c55d2014-03-22 15:28:16 +0000162
Damien Georgea71c83a2014-02-15 11:34:50 +0000163Q(NoneType)
164
Paul Sokolovsky0ef01d02015-03-18 01:25:04 +0200165#if MICROPY_PY_COLLECTIONS_ORDEREDDICT
166Q(OrderedDict)
167#endif
168
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000169Q(abs)
170Q(all)
171Q(any)
Paul Sokolovsky9512e9e2014-03-25 01:29:09 +0200172Q(args)
Damien Georgedd4f4532014-10-23 13:34:35 +0100173#if MICROPY_PY_ARRAY
Paul Sokolovsky427905c2014-01-18 19:24:47 +0200174Q(array)
Damien Georgedd4f4532014-10-23 13:34:35 +0100175#endif
Damien George897fe0c2014-04-15 22:03:55 +0100176Q(bin)
177Q({:#b})
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000178Q(bool)
Damien Georgedd4f4532014-10-23 13:34:35 +0100179#if MICROPY_PY_BUILTINS_BYTEARRAY
Paul Sokolovsky427905c2014-01-18 19:24:47 +0200180Q(bytearray)
Damien Georgedd4f4532014-10-23 13:34:35 +0100181#endif
182#if MICROPY_PY_BUILTINS_MEMORYVIEW
183Q(memoryview)
184#endif
Paul Sokolovskya80ff042014-01-20 20:32:50 +0200185Q(bytes)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000186Q(callable)
187Q(chr)
Damien George64131f32014-02-06 20:31:44 +0000188Q(classmethod)
Paul Sokolovsky48fdaad2014-04-13 10:17:04 +0300189Q(_collections)
Damien Georgef20375e2014-08-12 19:57:52 +0100190#if MICROPY_PY_BUILTINS_COMPLEX
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000191Q(complex)
Damien Georgef20375e2014-08-12 19:57:52 +0100192Q(real)
193Q(imag)
194#endif
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000195Q(dict)
Damien George4acb2452014-02-02 22:07:44 +0000196Q(dir)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000197Q(divmod)
John R. Lenton9daa7892014-01-14 23:55:01 +0000198Q(enumerate)
Damien Georged02c6d82014-01-15 22:14:03 +0000199Q(eval)
Damien Georgeca476792014-02-03 22:44:10 +0000200Q(exec)
Damien George2a3e2b92014-12-19 13:36:17 +0000201#if MICROPY_PY_BUILTINS_EXECFILE
202Q(execfile)
203#endif
John R. Lentonfca456b2014-01-15 01:37:08 +0000204Q(filter)
Damien George75ec22b2014-08-12 20:16:03 +0100205#if MICROPY_PY_BUILTINS_FLOAT
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000206Q(float)
Damien George75ec22b2014-08-12 20:16:03 +0100207#endif
Paul Sokolovskya985b452014-04-09 00:40:58 +0300208Q(from_bytes)
Paul Sokolovskye9137b92014-03-26 23:35:13 +0200209Q(getattr)
stijnc1832fd2015-02-14 17:36:59 +0100210Q(setattr)
Paul Sokolovskycc0af3d2014-04-06 01:00:46 +0300211Q(globals)
Paul Sokolovskyff306662014-05-11 19:05:42 +0300212Q(hasattr)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000213Q(hash)
Damien George58051112014-04-15 12:42:52 +0100214Q(hex)
Damien Georgeb013aea2014-04-15 12:50:21 +0100215Q(%#x)
xbe0ebf8532014-02-01 19:00:41 -0800216Q(id)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000217Q(int)
Damien George004cdce2014-01-09 21:43:51 +0000218Q(isinstance)
219Q(issubclass)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000220Q(iter)
221Q(len)
222Q(list)
Paul Sokolovskycc0af3d2014-04-06 01:00:46 +0300223Q(locals)
John R. Lenton39b174e2014-01-15 01:10:09 +0000224Q(map)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000225Q(max)
226Q(min)
Paul Sokolovskyd08fd682014-02-27 22:22:04 +0200227Q(namedtuple)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000228Q(next)
Damien George897fe0c2014-04-15 22:03:55 +0100229Q(oct)
230Q(%#o)
Damien George27e735f2014-04-05 23:02:23 +0100231Q(open)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000232Q(ord)
Paul Sokolovskye11b17c2014-02-05 00:47:06 +0200233Q(path)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000234Q(pow)
235Q(print)
236Q(range)
Paul Sokolovsky27f5bdd2014-04-26 21:15:56 +0300237Q(read)
Damien Georgee2fb2ba2014-01-15 21:40:48 +0000238Q(repr)
Damien George4c03b3a2014-08-12 18:33:40 +0100239Q(reversed)
Damien George1559a972014-10-31 11:28:50 +0000240Q(round)
John R. Lenton5c768392014-01-13 05:12:50 +0000241Q(sorted)
Damien George64131f32014-02-06 20:31:44 +0000242Q(staticmethod)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000243Q(sum)
Damien George35e2a4e2014-02-05 00:51:47 +0000244Q(super)
Paul Sokolovsky36c44992014-01-13 19:20:46 +0200245Q(str)
Paul Sokolovsky0c59db12014-02-04 07:55:10 +0200246Q(sys)
Paul Sokolovskya985b452014-04-09 00:40:58 +0300247Q(to_bytes)
Damien George71c51812014-01-04 20:21:15 +0000248Q(tuple)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000249Q(type)
Paul Sokolovsky9512e9e2014-03-25 01:29:09 +0200250Q(value)
Paul Sokolovsky27f5bdd2014-04-26 21:15:56 +0300251Q(write)
John R. Lenton07205ec2014-01-13 02:31:00 +0000252Q(zip)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000253
Damien Georgec9fc6202014-10-25 21:59:14 +0100254#if MICROPY_PY_BUILTINS_COMPILE
255Q(compile)
256Q(code)
257Q(single)
258#endif
259
Damien George48815662014-04-02 10:34:44 +0100260Q(sep)
261Q(end)
262
Peter D. Grayb2a237d2015-03-06 14:48:14 -0500263#if MICROPY_PY_BUILTINS_RANGE_ATTRS
264Q(step)
265Q(stop)
266#endif
267
Damien Georgec12b2212014-03-26 20:15:40 +0000268Q(clear)
269Q(copy)
270Q(fromkeys)
271Q(get)
272Q(items)
273Q(keys)
274Q(pop)
275Q(popitem)
276Q(setdefault)
277Q(update)
278Q(values)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000279Q(append)
Damien Georgec12b2212014-03-26 20:15:40 +0000280Q(close)
281Q(send)
282Q(throw)
283Q(count)
284Q(extend)
285Q(index)
286Q(remove)
287Q(insert)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000288Q(pop)
289Q(sort)
290Q(join)
xbe7b0f39f2014-01-08 14:23:45 -0800291Q(strip)
Paul Sokolovsky88107842014-04-26 06:20:08 +0300292Q(lstrip)
293Q(rstrip)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000294Q(format)
Damien George7d0bfbe2014-02-08 19:01:47 +0000295Q(key)
296Q(reverse)
Damien Georgec12b2212014-03-26 20:15:40 +0000297Q(add)
298Q(clear)
299Q(copy)
Damien Georgec12b2212014-03-26 20:15:40 +0000300Q(pop)
301Q(remove)
Damien Georgec12b2212014-03-26 20:15:40 +0000302Q(find)
303Q(rfind)
xbe3d9a39e2014-04-08 11:42:19 -0700304Q(rindex)
Damien Georgec12b2212014-03-26 20:15:40 +0000305Q(split)
Paul Sokolovskyac2f7a72015-04-04 00:09:23 +0300306#if MICROPY_PY_BUILTINS_STR_SPLITLINES
307Q(splitlines)
308Q(keepends)
309Q(\n)
310#endif
Paul Sokolovsky2a273652014-05-13 08:07:08 +0300311Q(rsplit)
Damien Georgec12b2212014-03-26 20:15:40 +0000312Q(startswith)
Paul Sokolovskyd098c6b2014-05-24 22:46:51 +0300313Q(endswith)
Damien Georgec12b2212014-03-26 20:15:40 +0000314Q(replace)
315Q(partition)
316Q(rpartition)
Paul Sokolovsky69135212014-05-10 19:47:41 +0300317Q(lower)
318Q(upper)
Kim Bautersa3f4b832014-05-31 07:30:03 +0100319Q(isspace)
320Q(isalpha)
321Q(isdigit)
322Q(isupper)
323Q(islower)
Damien George491cbd62014-05-06 16:38:54 +0000324Q(iterable)
325Q(start)
Paul Sokolovskyab5d0822014-01-24 00:22:00 +0200326
Damien Georgea71c83a2014-02-15 11:34:50 +0000327Q(bound_method)
328Q(closure)
329Q(dict_view)
330Q(function)
331Q(generator)
332Q(iterator)
333Q(module)
334Q(slice)
335
Damien George75ec22b2014-08-12 20:16:03 +0100336#if MICROPY_PY_BUILTINS_SET
337Q(discard)
338Q(difference)
339Q(difference_update)
340Q(intersection)
341Q(intersection_update)
342Q(isdisjoint)
343Q(issubset)
344Q(issuperset)
345Q(set)
346Q(symmetric_difference)
347Q(symmetric_difference_update)
348Q(union)
349Q(update)
350#endif
351
Damien Georgefb510b32014-06-01 13:32:54 +0100352#if MICROPY_PY_BUILTINS_FROZENSET
Paul Sokolovskyb181b582014-05-10 16:02:17 +0300353Q(frozenset)
354#endif
355
Damien Georgeee3fd462014-05-24 23:03:12 +0100356#if MICROPY_PY_MATH || MICROPY_PY_CMATH
Damien George0c36da02014-03-08 15:24:39 +0000357Q(math)
Damien Georgea9256392014-03-20 16:39:22 +0000358Q(e)
Damien George0c36da02014-03-08 15:24:39 +0000359Q(pi)
360Q(sqrt)
361Q(pow)
362Q(exp)
Damien George8854e1f2014-03-12 21:31:41 +0000363Q(expm1)
Damien George0c36da02014-03-08 15:24:39 +0000364Q(log)
365Q(log2)
366Q(log10)
367Q(cosh)
368Q(sinh)
369Q(tanh)
370Q(acosh)
371Q(asinh)
372Q(atanh)
373Q(cos)
374Q(sin)
375Q(tan)
376Q(acos)
377Q(asin)
378Q(atan)
379Q(atan2)
Rachel Dowdall5a14a1d2014-03-20 21:26:51 +0000380Q(ceil)
381Q(copysign)
382Q(fabs)
Rachel Dowdall5a14a1d2014-03-20 21:26:51 +0000383Q(fmod)
Rachel Dowdall249b9c72014-03-22 14:39:33 +0000384Q(floor)
Rachel Dowdall5a14a1d2014-03-20 21:26:51 +0000385Q(isfinite)
386Q(isinf)
387Q(isnan)
388Q(trunc)
Rachel Dowdall249b9c72014-03-22 14:39:33 +0000389Q(modf)
390Q(frexp)
391Q(ldexp)
392Q(degrees)
393Q(radians)
Damien George5cbeace2015-02-22 14:48:18 +0000394#if MICROPY_PY_MATH_SPECIAL_FUNCTIONS
Rachel Dowdall249b9c72014-03-22 14:39:33 +0000395Q(erf)
396Q(erfc)
397Q(gamma)
398Q(lgamma)
Damien Georgedbdfee12014-04-17 17:11:03 +0100399#endif
Damien George5cbeace2015-02-22 14:48:18 +0000400#endif
Damien Georgedbdfee12014-04-17 17:11:03 +0100401
Damien Georgeee3fd462014-05-24 23:03:12 +0100402#if MICROPY_PY_CMATH
Damien Georgedbdfee12014-04-17 17:11:03 +0100403Q(cmath)
404Q(phase)
405Q(polar)
406Q(rect)
407#endif
Damien George0c36da02014-03-08 15:24:39 +0000408
Damien George89deec02015-01-09 20:12:54 +0000409#if MICROPY_PY_MICROPYTHON_MEM_INFO
Damien George75ec22b2014-08-12 20:16:03 +0100410#if MICROPY_MEM_STATS
Damien George0c36da02014-03-08 15:24:39 +0000411Q(mem_total)
412Q(mem_current)
413Q(mem_peak)
Damien George89deec02015-01-09 20:12:54 +0000414#endif
Paul Sokolovsky6e8ff9c2014-12-01 20:41:56 +0200415Q(mem_info)
416Q(qstr_info)
Damien George75ec22b2014-08-12 20:16:03 +0100417#endif
Damien George0c36da02014-03-08 15:24:39 +0000418
Dave Hylands5b7fd202014-07-01 23:46:53 -0700419#if MICROPY_ENABLE_EMERGENCY_EXCEPTION_BUF && (MICROPY_EMERGENCY_EXCEPTION_BUF_SIZE == 0)
420Q(alloc_emergency_exception_buf)
421#endif
Paul Sokolovskye8432b32015-02-15 22:34:31 +0300422Q(maximum recursion depth exceeded)
Dave Hylands5b7fd202014-07-01 23:46:53 -0700423
Paul Sokolovskyab5d0822014-01-24 00:22:00 +0200424Q(<module>)
425Q(<lambda>)
426Q(<listcomp>)
427Q(<dictcomp>)
428Q(<setcomp>)
429Q(<genexpr>)
Damien Georgeb829b5c2014-01-25 13:51:19 +0000430Q(<string>)
Paul Sokolovskyab5d0822014-01-24 00:22:00 +0200431Q(<stdin>)
Paul Sokolovsky73b70272014-04-13 05:28:46 +0300432
433#if MICROPY_CPYTHON_COMPAT
434Q(encode)
435Q(decode)
436Q(utf-8)
437#endif
Paul Sokolovskya3e50ea2014-04-13 06:55:24 +0300438
Damien Georgeee3fd462014-05-24 23:03:12 +0100439#if MICROPY_PY_SYS
Paul Sokolovskya3e50ea2014-04-13 06:55:24 +0300440Q(argv)
Paul Sokolovsky978d2c02014-04-13 09:53:52 +0300441Q(byteorder)
442Q(big)
Paul Sokolovskyd99e9082014-05-10 16:50:45 +0300443Q(exit)
Paul Sokolovsky978d2c02014-04-13 09:53:52 +0300444Q(little)
Paul Sokolovskyb9b93542014-06-07 23:40:04 +0300445#ifdef MICROPY_PY_SYS_PLATFORM
446Q(platform)
447#endif
Paul Sokolovskya3e50ea2014-04-13 06:55:24 +0300448Q(stdin)
449Q(stdout)
450Q(stderr)
Damien George3c4b5d42015-05-13 23:49:21 +0100451#if MICROPY_PY_SYS_STDIO_BUFFER
452Q(buffer)
453#endif
Paul Sokolovskybbae42d2014-04-14 01:46:45 +0300454Q(version)
Paul Sokolovskybaaaf652014-04-13 09:46:58 +0300455Q(version_info)
Damien Georgec3184ae2015-04-21 14:45:04 +0000456#if MICROPY_PY_ATTRTUPLE
457Q(name)
458#endif
459Q(implementation)
Paul Sokolovsky4e0eeeb2014-07-03 16:50:11 +0300460#if MICROPY_PY_SYS_MAXSIZE
461Q(maxsize)
462#endif
Paul Sokolovsky8b85d142015-04-25 03:17:41 +0300463#if MICROPY_PY_SYS_EXC_INFO
464Q(exc_info)
465#endif
Paul Sokolovsky46c3ab22014-12-06 14:29:09 +0200466Q(print_exception)
Paul Sokolovskya3e50ea2014-04-13 06:55:24 +0300467#endif
Damien George777b0f32014-04-13 18:59:45 +0100468
Damien Georgeee3fd462014-05-24 23:03:12 +0100469#if MICROPY_PY_STRUCT
Paul Sokolovsky3d3ef362015-05-04 16:35:40 +0300470Q(ustruct)
Paul Sokolovsky62044602014-04-19 03:13:15 +0300471Q(pack)
472Q(unpack)
Paul Sokolovsky1829d862015-05-04 15:50:05 +0300473Q(calcsize)
Paul Sokolovsky62044602014-04-19 03:13:15 +0300474#endif
475
Paul Sokolovsky82158472014-06-28 03:03:47 +0300476#if MICROPY_PY_UCTYPES
477Q(uctypes)
Paul Sokolovsky3d3ef362015-05-04 16:35:40 +0300478Q(struct)
Paul Sokolovsky82158472014-06-28 03:03:47 +0300479Q(sizeof)
480Q(addressof)
481Q(bytes_at)
482Q(bytearray_at)
483
484Q(NATIVE)
485Q(LITTLE_ENDIAN)
486Q(BIG_ENDIAN)
487
488Q(VOID)
489
490Q(UINT8)
491Q(INT8)
492Q(UINT16)
493Q(INT16)
494Q(UINT32)
495Q(INT32)
496Q(UINT64)
497Q(INT64)
498
499Q(BFUINT8)
500Q(BFINT8)
501Q(BFUINT16)
502Q(BFINT16)
503Q(BFUINT32)
504Q(BFINT32)
505
506Q(FLOAT32)
507Q(FLOAT64)
508
509Q(ARRAY)
510Q(PTR)
511//Q(BITFIELD)
Paul Sokolovsky2097c8b2014-07-11 00:06:36 +0300512
513Q(BF_POS)
514Q(BF_LEN)
Paul Sokolovsky82158472014-06-28 03:03:47 +0300515#endif
516
Damien Georgeee3fd462014-05-24 23:03:12 +0100517#if MICROPY_PY_IO
Paul Sokolovskyfbdf2f12014-06-12 01:22:25 +0300518Q(_io)
Paul Sokolovsky27f5bdd2014-04-26 21:15:56 +0300519Q(readall)
Paul Sokolovsky1a55b6a2014-10-18 22:44:07 +0300520Q(readinto)
Paul Sokolovsky27f5bdd2014-04-26 21:15:56 +0300521Q(readline)
Damien Georged5f5b2f2014-05-03 22:01:32 +0100522Q(readlines)
Paul Sokolovsky838eb1f2014-11-17 00:16:14 +0200523Q(seek)
Paul Sokolovsky9e296662014-05-19 20:59:13 +0300524Q(FileIO)
525Q(TextIOWrapper)
Paul Sokolovskycb9dc082014-04-26 20:26:14 +0300526Q(StringIO)
527Q(BytesIO)
528Q(getvalue)
Paul Sokolovskycb66f412014-07-13 23:07:42 +0300529Q(file)
stijn2fe4cf72014-10-04 08:51:33 +0200530Q(mode)
531Q(r)
532Q(encoding)
Paul Sokolovskycb9dc082014-04-26 20:26:14 +0300533#endif
534
Damien Georgeee3fd462014-05-24 23:03:12 +0100535#if MICROPY_PY_GC
Paul Sokolovskyf9e54e02014-05-06 02:16:43 +0300536Q(gc)
537Q(collect)
Damien George8c1c7482014-05-08 23:04:49 +0100538Q(disable)
539Q(enable)
Damien George109c1de2014-10-31 21:30:46 +0000540Q(isenabled)
Paul Sokolovsky5aa740c2014-06-24 21:23:40 +0300541Q(mem_free)
542Q(mem_alloc)
Paul Sokolovskyf9e54e02014-05-06 02:16:43 +0300543#endif
544
Damien Georgefb510b32014-06-01 13:32:54 +0100545#if MICROPY_PY_BUILTINS_PROPERTY
Damien George777b0f32014-04-13 18:59:45 +0100546Q(property)
547Q(getter)
548Q(setter)
549Q(deleter)
550#endif
Paul Sokolovsky510296f2014-08-08 22:51:40 +0300551
Paul Sokolovsky34162872014-10-12 08:16:34 -0700552#if MICROPY_PY_UZLIB
553Q(uzlib)
554Q(decompress)
555#endif
556
Damien George612045f2014-09-17 22:56:34 +0100557#if MICROPY_PY_UJSON
558Q(ujson)
559Q(dumps)
Damien George89e46572014-09-21 11:40:01 +0100560Q(loads)
Damien George612045f2014-09-17 22:56:34 +0100561#endif
Paul Sokolovskyc71e0452014-09-12 18:48:07 +0300562
563#if MICROPY_PY_URE
564Q(ure)
565Q(compile)
566Q(match)
567Q(search)
568Q(group)
569Q(DEBUG)
570#endif
Damien Georgef5d69792014-10-22 17:37:18 +0000571
572#if MICROPY_PY_UHEAPQ
573Q(uheapq)
574Q(heappush)
575Q(heappop)
576Q(heapify)
577#endif
Paul Sokolovskyf4b19c82014-11-22 01:19:13 +0200578
579#if MICROPY_PY_UHASHLIB
580Q(uhashlib)
581Q(update)
582Q(digest)
Paul Sokolovskyf4b19c82014-11-22 01:19:13 +0200583Q(sha256)
584#endif
Paul Sokolovskybfdc2052014-11-29 06:19:30 +0200585
586#if MICROPY_PY_UBINASCII
587Q(ubinascii)
588Q(hexlify)
Dave Hylands3ad94d62015-05-18 14:41:25 -0700589Q(unhexlify)
Paul Sokolovskybfdc2052014-11-29 06:19:30 +0200590#endif
Paul Sokolovsky01162182015-05-03 20:25:40 +0300591
592#if MICROPY_PY_MACHINE
593Q(machine)
594Q(mem)
595Q(mem8)
596Q(mem16)
597Q(mem32)
598#endif