aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/pyolian
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2018-01-25 22:51:28 +0100
committerDave Andreoli <dave@gurumeditation.it>2018-01-25 22:51:42 +0100
commit7255954ccce34c189d7401a932875d95834087f3 (patch)
tree23e3a706922ca792adf17c15924eab6918b324e6 /src/scripts/pyolian
parentecore: prune existing thread_join callbacks during ecore_fork_reset (diff)
downloadefl-7255954ccce34c189d7401a932875d95834087f3.tar.gz
pyolian: improve a bit the 2 example templates
Diffstat (limited to 'src/scripts/pyolian')
-rw-r--r--src/scripts/pyolian/README.md2
-rw-r--r--src/scripts/pyolian/test_gen_class.template2
-rw-r--r--src/scripts/pyolian/test_gen_namespace.template20
3 files changed, 16 insertions, 8 deletions
diff --git a/src/scripts/pyolian/README.md b/src/scripts/pyolian/README.md
index 61bf0dc52d..f803077c01 100644
--- a/src/scripts/pyolian/README.md
+++ b/src/scripts/pyolian/README.md
@@ -358,7 +358,7 @@ defined as follows:
sometimes it is useful or necessary to set variables in the template.
Can also be used to capture the output of e.g. an evaluated macro.
-Moreover all the Eolian classes and enums (as defined in eolian.py) is available
+Moreover all the Eolian classes and enums (as defined in eolian.py) are available
in the template, fe:
* `Function` eolian.Function (class)
diff --git a/src/scripts/pyolian/test_gen_class.template b/src/scripts/pyolian/test_gen_class.template
index ff8c17de62..15129bf080 100644
--- a/src/scripts/pyolian/test_gen_class.template
+++ b/src/scripts/pyolian/test_gen_class.template
@@ -32,7 +32,7 @@ Methods:
Properties:
===========
<!--(for func in cls.properties)-->
- * ${func.name}$ (<!--(for v in func.getter_values)-->${v.type.c_type}$ ${v.name}$, <!--(end)-->)
+ * ${func.name}$ (<!--(for v in func.getter_values)-->${v.type.c_type_default}$ ${v.name}$, <!--(end)-->)
<!--(else)-->
no properties available
<!--(end)-->
diff --git a/src/scripts/pyolian/test_gen_namespace.template b/src/scripts/pyolian/test_gen_namespace.template
index 87557c6ad8..2276c4ce96 100644
--- a/src/scripts/pyolian/test_gen_namespace.template
+++ b/src/scripts/pyolian/test_gen_namespace.template
@@ -6,15 +6,15 @@ Namespace: ${namespace.name}$ ${namespace.namespaces}$
Regular Classes:
================
<!--(for cls in namespace.regulars)-->
- * ${cls.full_name}$ (${cls.type.name.lower()}$)
+ * ${cls.full_name}$
<!--(else)-->
no classes available
<!--(end)-->
-Interfaces:
-===========
-<!--(for cls in namespace.interfaces)-->
- * ${cls.full_name}$ (${cls.type.name.lower()}$)
+Abstract Classes:
+================
+<!--(for cls in namespace.abstracts)-->
+ * ${cls.full_name}$
<!--(else)-->
no classes available
<!--(end)-->
@@ -22,7 +22,15 @@ Interfaces:
Mixins:
=======
<!--(for cls in namespace.mixins)-->
- * ${cls.full_name}$ (${cls.type.name.lower()}$)
+ * ${cls.full_name}$
+<!--(else)-->
+ no classes available
+<!--(end)-->
+
+Interfaces:
+===========
+<!--(for cls in namespace.interfaces)-->
+ * ${cls.full_name}$
<!--(else)-->
no classes available
<!--(end)-->