aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2013-12-05 18:48:32 +0200
committerYakov Goldberg <yakov.g@samsung.com>2013-12-05 18:48:32 +0200
commit2bc5dffe59f8185ae7910c3e9bca42122182a634 (patch)
tree046db8e77ae50e2a1c0beb3cf0173059bdc0b6b5
parentadd generation of eo file in Ragel format (diff)
downloadeo_bindings-2bc5dffe59f8185ae7910c3e9bca42122182a634.tar.gz
add implements and signals sections to Ragel eo
-rw-r--r--eoparser/cparser.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/eoparser/cparser.py b/eoparser/cparser.py
index 762927f..787a6af 100644
--- a/eoparser/cparser.py
+++ b/eoparser/cparser.py
@@ -1595,6 +1595,18 @@ class Cparser(object):
lines.append("%s};\n"%(tab * tab_level)) #close for property name
lines.append("};\n") #close for methods section
+ lines.append("implements {\n")
+ for tup in ret[IMPLEMENTS]:
+ if len(tup) == 2:
+ lines.append("%s%s :: %s;\n"%(tab * tab_level, tup[0], tup[1]))
+ elif len(tup) == 3:
+ lines.append("%s%s :: %s %s;\n"%(tab * tab_level, tup[0], tup[1], tup[2]))
+ lines.append("};\n") #close implements section
+
+ lines.append("signals {\n")
+ for tup in ret[SIGNALS]:
+ lines.append("%s%s; /*@ %s */\n"%(tab * tab_level, tup[0], tup[1]))
+ lines.append("};\n") #close signals section
for l in lines:
new_buf += "%s%s"%(tab_level * tab, l)