MCPcopy Index your code
hub / github.com/KhronosGroup/Vulkan-Docs / dependencyLanguage

Function dependencyLanguage

scripts/parse_dependency.py:262–277  ·  view source on GitHub ↗

Return an API dependency expression translated to a form suitable for asciidoctor conditionals or header file comments. - dependency - the expression - leafMarkup - function taking an extension / version name and returning an equivalent marked up version -

(dependency, leafMarkup, opMarkup, parenthesize)

Source from the content-addressed store, hash-verified

260 raise Exception(f'invalid op: {op}')
261
262def dependencyLanguage(dependency, leafMarkup, opMarkup, parenthesize):
263 """Return an API dependency expression translated to a form suitable for
264 asciidoctor conditionals or header file comments.
265
266 - dependency - the expression
267 - leafMarkup - function taking an extension / version name and
268 returning an equivalent marked up version
269 - opMarkup - function taking an operator ('+' / ',') name name and
270 returning an equivalent marked up version
271 - parenthesize - True if parentheses should be used in the resulting
272 expression, False otherwise"""
273
274 global exprStack
275 exprStack = []
276 results = dependencyBNF().parse_string(dependency, parse_all=True)
277 return evalDependencyLanguage(exprStack, leafMarkup, opMarkup, parenthesize, root = True, parent_op = None)
278
279# aka specmacros = False
280def dependencyLanguageComment(dependency):

Callers 3

dependencyLanguageCFunction · 0.85

Calls 2

dependencyBNFFunction · 0.85
evalDependencyLanguageFunction · 0.85

Tested by

no test coverage detected