vulkan-object 1.4.349__tar.gz → 1.4.351__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {vulkan_object-1.4.349/src/vulkan_object.egg-info → vulkan_object-1.4.351}/PKG-INFO +1 -1
- {vulkan_object-1.4.349 → vulkan_object-1.4.351}/pyproject.toml +1 -1
- {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object/parse_dependency.py +14 -14
- {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object/vk.xml +732 -180
- {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object/vulkan_object.py +1 -1
- {vulkan_object-1.4.349 → vulkan_object-1.4.351/src/vulkan_object.egg-info}/PKG-INFO +1 -1
- {vulkan_object-1.4.349 → vulkan_object-1.4.351}/LICENSE +0 -0
- {vulkan_object-1.4.349 → vulkan_object-1.4.351}/MANIFEST.in +0 -0
- {vulkan_object-1.4.349 → vulkan_object-1.4.351}/README.md +0 -0
- {vulkan_object-1.4.349 → vulkan_object-1.4.351}/setup.cfg +0 -0
- {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object/__init__.py +0 -0
- {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object/apiconventions.py +0 -0
- {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object/base_generator.py +0 -0
- {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object/cgenerator.py +0 -0
- {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object/generator.py +0 -0
- {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object/reg.py +0 -0
- {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object/spec_tools/conventions.py +0 -0
- {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object/spec_tools/util.py +0 -0
- {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object/stripAPI.py +0 -0
- {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object/video.xml +0 -0
- {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object/vkconventions.py +0 -0
- {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object.egg-info/SOURCES.txt +0 -0
- {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object.egg-info/dependency_links.txt +0 -0
- {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object.egg-info/requires.txt +0 -0
- {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object.egg-info/top_level.txt +0 -0
- {vulkan_object-1.4.349 → vulkan_object-1.4.351}/tests/test_registry.py +0 -0
|
@@ -45,8 +45,8 @@ from pyparsing import (
|
|
|
45
45
|
ParseException,
|
|
46
46
|
CaselessKeyword,
|
|
47
47
|
Suppress,
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
DelimitedList,
|
|
49
|
+
infix_notation,
|
|
50
50
|
Combine,
|
|
51
51
|
)
|
|
52
52
|
import math
|
|
@@ -125,8 +125,8 @@ def push_first(toks):
|
|
|
125
125
|
dependencyIdent = Word(f"{alphanums}_:")
|
|
126
126
|
|
|
127
127
|
# Infix expression for depends expressions
|
|
128
|
-
dependencyExpr = pp.
|
|
129
|
-
[ (pp.
|
|
128
|
+
dependencyExpr = pp.infix_notation(dependencyIdent,
|
|
129
|
+
[ (pp.one_of(', +'), 2, pp.OpAssoc.LEFT), ])
|
|
130
130
|
|
|
131
131
|
# BNF grammar for depends expressions
|
|
132
132
|
_bnf = None
|
|
@@ -144,16 +144,16 @@ def dependencyBNF():
|
|
|
144
144
|
boolop = and_ | or_
|
|
145
145
|
|
|
146
146
|
expr = Forward()
|
|
147
|
-
expr_list =
|
|
147
|
+
expr_list = DelimitedList(Group(expr))
|
|
148
148
|
atom = (
|
|
149
149
|
boolop[...]
|
|
150
150
|
+ (
|
|
151
|
-
(dependencyIdent).
|
|
151
|
+
(dependencyIdent).set_parse_action(push_first)
|
|
152
152
|
| Group(lpar + expr + rpar)
|
|
153
153
|
)
|
|
154
154
|
)
|
|
155
155
|
|
|
156
|
-
expr <<= atom + (boolop + atom).
|
|
156
|
+
expr <<= atom + (boolop + atom).set_parse_action(push_first)[...]
|
|
157
157
|
_bnf = expr
|
|
158
158
|
return _bnf
|
|
159
159
|
|
|
@@ -180,11 +180,11 @@ def protectBNF():
|
|
|
180
180
|
atom = (
|
|
181
181
|
boolop[...]
|
|
182
182
|
+ (
|
|
183
|
-
protectIdent.copy().
|
|
183
|
+
protectIdent.copy().set_parse_action(push_first)
|
|
184
184
|
| Group(lpar + expr + rpar)
|
|
185
185
|
)
|
|
186
186
|
)
|
|
187
|
-
expr <<= atom + (boolop + atom).
|
|
187
|
+
expr <<= atom + (boolop + atom).set_parse_action(push_first)[...]
|
|
188
188
|
_protect_bnf = expr
|
|
189
189
|
return _protect_bnf
|
|
190
190
|
|
|
@@ -225,7 +225,7 @@ def evaluateDependency(dependency, isSupported):
|
|
|
225
225
|
|
|
226
226
|
global exprStack
|
|
227
227
|
exprStack = []
|
|
228
|
-
results = dependencyBNF().
|
|
228
|
+
results = dependencyBNF().parse_string(dependency, parse_all=True)
|
|
229
229
|
val = evaluateStack(exprStack[:], isSupported)
|
|
230
230
|
return val
|
|
231
231
|
|
|
@@ -273,7 +273,7 @@ def dependencyLanguage(dependency, leafMarkup, opMarkup, parenthesize):
|
|
|
273
273
|
|
|
274
274
|
global exprStack
|
|
275
275
|
exprStack = []
|
|
276
|
-
results = dependencyBNF().
|
|
276
|
+
results = dependencyBNF().parse_string(dependency, parse_all=True)
|
|
277
277
|
return evalDependencyLanguage(exprStack, leafMarkup, opMarkup, parenthesize, root = True, parent_op = None)
|
|
278
278
|
|
|
279
279
|
# aka specmacros = False
|
|
@@ -314,7 +314,7 @@ def protectLanguageC(protect):
|
|
|
314
314
|
- protect - the protect expression string"""
|
|
315
315
|
global exprStack
|
|
316
316
|
exprStack = []
|
|
317
|
-
protectBNF().
|
|
317
|
+
protectBNF().parse_string(protect, parse_all=True)
|
|
318
318
|
return evalDependencyLanguage(exprStack, leafMarkupCProtect, opMarkupC,
|
|
319
319
|
parenthesize=True, root=True, parent_op=None)
|
|
320
320
|
|
|
@@ -344,7 +344,7 @@ def dependencyNames(dependency):
|
|
|
344
344
|
|
|
345
345
|
global exprStack
|
|
346
346
|
exprStack = []
|
|
347
|
-
results = dependencyBNF().
|
|
347
|
+
results = dependencyBNF().parse_string(dependency, parse_all=True)
|
|
348
348
|
# print(f'names(): stack = {exprStack}')
|
|
349
349
|
return evalDependencyNames(exprStack)
|
|
350
350
|
|
|
@@ -386,7 +386,7 @@ def dependencyMarkup(dependency):
|
|
|
386
386
|
|
|
387
387
|
- dependency - the expression"""
|
|
388
388
|
|
|
389
|
-
parsed = dependencyExpr.
|
|
389
|
+
parsed = dependencyExpr.parse_string(dependency)
|
|
390
390
|
return markupTraverse(parsed)
|
|
391
391
|
|
|
392
392
|
if __name__ == "__main__":
|