summaryrefslogtreecommitdiffstats
path: root/tools/codegenerator/example/Example-lval-rval.template
diff options
context:
space:
mode:
Diffstat (limited to 'tools/codegenerator/example/Example-lval-rval.template')
-rw-r--r--tools/codegenerator/example/Example-lval-rval.template18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/codegenerator/example/Example-lval-rval.template b/tools/codegenerator/example/Example-lval-rval.template
new file mode 100644
index 0000000..77d506e
--- /dev/null
+++ b/tools/codegenerator/example/Example-lval-rval.template
@@ -0,0 +1,18 @@
+<%
+import SwigTypeParser
+%>
+Module Name: ${module.@name}
+<%
+module.function.each { functionNode ->
+%>
+ function: ${functionNode.@name}
+<%
+ functionNode.parm.eachWithIndex { param, index ->
+%>
+ parameter ${index}= name:${param.@name}, type:${param.@type}<% if (param.@value) { %>, default value: ${param.@value} <% } %>
+ type:${SwigTypeParser.SwigType_str(param.@type)}
+ lvalue-type:${SwigTypeParser.SwigType_lstr(param.@type)}
+<%
+ }
+}
+%>