Damien George | 04b9147 | 2014-05-03 23:27:38 +0100 | [diff] [blame] | 1 | /* |
| 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 George | 51dfcb4 | 2015-01-01 20:27:54 +0000 | [diff] [blame] | 27 | #include "py/mpconfig.h" |
| 28 | |
Damien George | eb7bfcb | 2014-01-04 15:57:35 +0000 | [diff] [blame] | 29 | // All the qstr definitions in this file are available as constants. |
Damien George | 0c36da0 | 2014-03-08 15:24:39 +0000 | [diff] [blame] | 30 | // That is, they are in ROM and you can reference them simply as MP_QSTR_xxxx. |
Damien George | eb7bfcb | 2014-01-04 15:57:35 +0000 | [diff] [blame] | 31 | |
Damien George | 6942f80 | 2015-01-11 17:52:45 +0000 | [diff] [blame] | 32 | // qstr configuration passed to makeqstrdata.py of the form QCFG(key, value) |
Damien George | 95836f8 | 2015-01-11 22:27:30 +0000 | [diff] [blame] | 33 | QCFG(BYTES_IN_LEN, MICROPY_QSTR_BYTES_IN_LEN) |
Damien George | c3bd941 | 2015-07-20 11:03:13 +0000 | [diff] [blame] | 34 | QCFG(BYTES_IN_HASH, MICROPY_QSTR_BYTES_IN_HASH) |
Damien George | 6942f80 | 2015-01-11 17:52:45 +0000 | [diff] [blame] | 35 | |
| 36 | Q() |
Damien George | 708c073 | 2014-04-27 19:23:46 +0100 | [diff] [blame] | 37 | Q(*) |
Damien George | 035a0a2 | 2015-10-12 21:49:03 +0100 | [diff] [blame] | 38 | Q(_) |
Damien George | dcb9ea7 | 2017-01-27 15:10:09 +1100 | [diff] [blame] | 39 | Q(/) |
Damien George | 897fe0c | 2014-04-15 22:03:55 +0100 | [diff] [blame] | 40 | Q(%#o) |
Jan Čapek | d76c65f | 2016-03-10 09:22:41 +0000 | [diff] [blame] | 41 | Q(%#x) |
| 42 | Q({:#b}) |
Paul Sokolovsky | ac2f7a7 | 2015-04-04 00:09:23 +0300 | [diff] [blame] | 43 | Q(\n) |
Paul Sokolovsky | e8432b3 | 2015-02-15 22:34:31 +0300 | [diff] [blame] | 44 | Q(maximum recursion depth exceeded) |
Paul Sokolovsky | ab5d082 | 2014-01-24 00:22:00 +0200 | [diff] [blame] | 45 | Q(<module>) |
| 46 | Q(<lambda>) |
| 47 | Q(<listcomp>) |
| 48 | Q(<dictcomp>) |
| 49 | Q(<setcomp>) |
| 50 | Q(<genexpr>) |
Damien George | b829b5c | 2014-01-25 13:51:19 +0000 | [diff] [blame] | 51 | Q(<string>) |
Paul Sokolovsky | ab5d082 | 2014-01-24 00:22:00 +0200 | [diff] [blame] | 52 | Q(<stdin>) |
Paul Sokolovsky | 73b7027 | 2014-04-13 05:28:46 +0300 | [diff] [blame] | 53 | Q(utf-8) |
Paul Sokolovsky | a3e50ea | 2014-04-13 06:55:24 +0300 | [diff] [blame] | 54 | |
Jan Čapek | d76c65f | 2016-03-10 09:22:41 +0000 | [diff] [blame] | 55 | // The following qstrings not referenced from anywhere in the sources |
| 56 | Q(__locals__) |
| 57 | Q(BufferError) |
| 58 | Q(FileExistsError) |
| 59 | Q(FileNotFoundError) |
| 60 | Q(FloatingPointError) |
| 61 | Q(UnboundLocalError) |