Coverage for hdl_registers/generator/python/reserved_keywords.py: 100%
1 statements
« prev ^ index » next coverage.py v7.6.8, created at 2024-12-01 20:50 +0000
« prev ^ index » next coverage.py v7.6.8, created at 2024-12-01 20:50 +0000
1# --------------------------------------------------------------------------------------------------
2# Copyright (c) Lukas Vik. All rights reserved.
3#
4# This file is part of the hdl-registers project, an HDL register generator fast enough to run
5# in real time.
6# https://hdl-registers.com
7# https://github.com/hdl-registers/hdl-registers
8# --------------------------------------------------------------------------------------------------
10# Reserved keywords in the Python programming language.
11# Should include everything up until Python 3.12.
12# From https://docs.python.org/3/reference/lexical_analysis.html#keywords
13# Note that they shall all be lowercase here in this set.
14RESERVED_PYTHON_KEYWORDS = {
15 "and",
16 "as",
17 "assert",
18 "async",
19 "await",
20 "break",
21 "class",
22 "continue",
23 "def",
24 "del",
25 "elif",
26 "else",
27 "except",
28 "false",
29 "finally",
30 "for",
31 "from",
32 "global",
33 "if",
34 "import",
35 "in",
36 "is",
37 "lambda",
38 "none",
39 "nonlocal",
40 "not",
41 "or",
42 "pass",
43 "raise",
44 "return",
45 "true",
46 "try",
47 "while",
48 "with",
49 "yield",
50}