summaryrefslogtreecommitdiff
path: root/src/nsgenbind-parser.y
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-08-05 22:58:05 +0100
committerVincent Sanders <vince@kyllikki.org>2015-08-05 22:58:05 +0100
commitdca5aa6db8f0dbcae283aee21605d8d1a85d7f94 (patch)
tree9c885d3bcedde0fbe557c63d61a385a0097a64d0 /src/nsgenbind-parser.y
parent619dbd53bc4624e3a4e9bb291e61ed358272d009 (diff)
downloadnsgenbind-dca5aa6db8f0dbcae283aee21605d8d1a85d7f94.tar.gz
nsgenbind-dca5aa6db8f0dbcae283aee21605d8d1a85d7f94.tar.bz2
Add ptototype method type to binding
This allows additional cdata to be added to the generated prototype constructor.
Diffstat (limited to 'src/nsgenbind-parser.y')
-rw-r--r--src/nsgenbind-parser.y6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nsgenbind-parser.y b/src/nsgenbind-parser.y
index 0f30dfc..1462b39 100644
--- a/src/nsgenbind-parser.y
+++ b/src/nsgenbind-parser.y
@@ -131,6 +131,7 @@ add_method(struct genbind_node **genbind_ast,
%token TOK_METHOD
%token TOK_GETTER
%token TOK_SETTER
+%token TOK_PROTOTYPE
%token TOK_DBLCOLON
@@ -339,6 +340,11 @@ MethodType
{
$$ = GENBIND_METHOD_TYPE_SETTER;
}
+ |
+ TOK_PROTOTYPE
+ {
+ $$ = GENBIND_METHOD_TYPE_PROTOTYPE;
+ }
;
ParameterList