summaryrefslogtreecommitdiff
path: root/src/nsgenbind-parser.y
Commit message (Collapse)AuthorAgeFilesLines
* restructure AST node creation to avoid castsVincent Sanders2016-11-271-11/+11
| | | | | | | | | | | | | | | | This changes Abstract Syntax Tree node creation for both webidl and genbind syntax tress. If a node is to be created with a numeric value instead of a pointer a separate API is now used instead of casting through void. This fixes parsing and AST building on big endian 64bit platforms where casting through void, which is completely undefined behaviour, generates different and non-functioning code. The solution in this patch is properly portable and correct without relying on casting at all. Thanks to James Clarke <jrtc27@jrtc27.com> for the original debugging and patch demonstrating how to work round the bug.
* fix ambiguity in grammar around class argumentsVincent Sanders2016-02-071-4/+2
|
* Correctly annotate unused variables with a macroVincent Sanders2016-02-061-2/+5
|
* Extend the permitted values of the binding method namesVincent Sanders2015-10-121-2/+21
|
* Allow empty classesVincent Sanders2015-09-281-5/+9
|
* annotates binding AST with source linenumber and fileVincent Sanders2015-09-281-4/+14
| | | | | Uses annotated AST to put line directives in the generated source so any code errors in the binding can be easily located.
* Improve the parser error reportingVincent Sanders2015-09-281-12/+75
| | | | | | | The parser now reports the correct file and line number for errors. Additionally the @n location structure in rules now has a filename member in addition to first_line. These members are useful for adding location information in generated source.
* Simplify genbind AST handling of preface, prologue, epilogue and postfaceVincent Sanders2015-09-261-96/+76
|
* Make the binding parser understand c typesVincent Sanders2015-09-251-101/+118
| | | | | | Instead of c types being opaque strings this makes the bindig parser understand them. This is necessary for extended attribute parsing in future but also makes the binding more easily understandable.
* Add ptototype method type to bindingVincent Sanders2015-08-051-0/+6
| | | | | This allows additional cdata to be added to the generated prototype constructor.
* Fix initialiser parameter listVincent Sanders2015-08-021-1/+5
| | | | | | The initialiser parameter list parsing was missing creation of a parameter node in the AST and the parameter iterator was looking for a method node instead of a paramter node.
* make the duktape libdom generator output initializersVincent Sanders2015-07-261-47/+77
|
* chnage binding AST to put methds inside class nodesVincent Sanders2015-07-221-3/+44
|
* Change binding grammar to new approach.Vincent Sanders2015-07-211-170/+216
|
* add flags to interface within bindingVincent Sanders2014-05-161-2/+52
|
* move binding type from explicit statement into declaration.Vincent Sanders2014-05-161-12/+1
| | | | | As a side effect the binding declaration changes and looses its (unused) name/identifier
* cope with older bison deirectives to get a pure parserVincent Sanders2014-05-021-1/+4
|
* extend binding DSL with prologue and epilogue stanzasVincent Sanders2013-01-021-2/+26
|
* name and docuemnt the binding property attributeVincent Sanders2012-11-211-9/+15
|
* make property shared status and type handling selection genericVincent Sanders2012-11-211-11/+43
|
* allow unshared parameter to accept property names as well as typesVincent Sanders2012-11-201-0/+6
|
* add unshared optionVincent Sanders2012-11-201-1/+13
|
* implement basic property getter functionalityVincent Sanders2012-10-291-0/+34
|
* add internal and API to binding languageVincent Sanders2012-10-291-6/+37
| | | | split out class operation, initialisation and new generation
* The name of teh tool is nsgenbind correct this everywhereVincent Sanders2012-10-231-0/+228