(WIP) Restructuring of the project, rework of addons.
This commit is contained in:
11
test/codegen/templates/header.jinja
Normal file
11
test/codegen/templates/header.jinja
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
#if !defined(SPP_AST_GEN)
|
||||
{% for class in ast.get_namespace('tst').classes %}
|
||||
/*
|
||||
{{ class.name }}
|
||||
{% for method in class.methods %}
|
||||
{{ method.return_type }} {{ method.name }} ({% for param in method.params %} {{ param.type }} {{ param.name }} {% endfor %})
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
*/
|
||||
#endif
|
||||
3
test/codegen/templates/source.jinja
Normal file
3
test/codegen/templates/source.jinja
Normal file
@@ -0,0 +1,3 @@
|
||||
{% for cls in source.namespace.classes %}
|
||||
// {{ cls.class_decl.typename.format() }}
|
||||
{% endfor %}
|
||||
Reference in New Issue
Block a user