added glad generator and a glad runtime
This commit is contained in:
parent
2017f6195e
commit
ac18a84a9c
62 changed files with 32373 additions and 10 deletions
19
tools/glad-0.1.14a0/glad/lang/__init__.py
Normal file
19
tools/glad-0.1.14a0/glad/lang/__init__.py
Normal file
|
@ -0,0 +1,19 @@
|
|||
import glad.lang.c
|
||||
import glad.lang.d
|
||||
import glad.lang.nim
|
||||
import glad.lang.volt
|
||||
|
||||
|
||||
def get_generator(name, spec):
|
||||
_langs = [
|
||||
glad.lang.c,
|
||||
glad.lang.d,
|
||||
glad.lang.nim,
|
||||
glad.lang.volt
|
||||
]
|
||||
|
||||
for lang in _langs:
|
||||
gen, loader = lang.get_generator(name, spec)
|
||||
if gen is not None:
|
||||
return gen, loader
|
||||
return None, None
|
Loading…
Add table
Add a link
Reference in a new issue