From 13be4238314d1a9903b037ab749074575ef0d1eb Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 25 Jul 2015 21:59:19 +0100 Subject: initial duktape libdom generator This generator creates all the output files and generates the finalisers for every class. --- test/data/bindings/HTMLUnknownElement.bnd | 17 +++++++++++++++++ test/data/bindings/browser-duk.bnd | 12 ++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 test/data/bindings/HTMLUnknownElement.bnd (limited to 'test/data/bindings') diff --git a/test/data/bindings/HTMLUnknownElement.bnd b/test/data/bindings/HTMLUnknownElement.bnd new file mode 100644 index 0000000..376a823 --- /dev/null +++ b/test/data/bindings/HTMLUnknownElement.bnd @@ -0,0 +1,17 @@ +class HTMLUnknownElement { + preface %{ +/* class pre */ + %}; + + prologue %{ +/* class pro */ + %}; + + epilogue %{ +/* class epi */ + %}; + + postface %{ +/* class post */ + %}; +} diff --git a/test/data/bindings/browser-duk.bnd b/test/data/bindings/browser-duk.bnd index 4e06d23..273eae9 100644 --- a/test/data/bindings/browser-duk.bnd +++ b/test/data/bindings/browser-duk.bnd @@ -15,18 +15,30 @@ binding duk_libdom { webidl "console.idl"; preface %{ +/* DukTape JavaScript bindings for NetSurf browser + * + * Copyright 2015 Vincent Sanders + * This file is part of NetSurf, http://www.netsurf-browser.org/ + * Released under the terms of the MIT License, + * http://www.opensource.org/licenses/mit-license + */ %}; prologue %{ +/* binding prologue */ %}; epilogue %{ +/* binding epilogue */ %}; postface %{ +/* binding postface */ %}; } +#include "HTMLUnknownElement.bnd" + class Node { private "dom_node *" node; -- cgit v1.2.3