Merge: objcwrapper: generate valid Nit code for large Objective-C classes
authorJean Privat <jean@pryen.org>
Fri, 28 Aug 2015 20:34:03 +0000 (16:34 -0400)
committerJean Privat <jean@pryen.org>
Fri, 28 Aug 2015 20:34:03 +0000 (16:34 -0400)
commit628653238cc1516fcddb294b22aba4880b05fce1
tree328186d659cff6fd10eb033c2dcaa80584ce02a0
parent1d16c38117990885067f11228bf41ce0a0c7c614
parent1ac27ef6f258b695231ac8db3dbf6a894641793d
Merge: objcwrapper: generate valid Nit code for large Objective-C classes

This PR continues the good work of #1661 by improving further the code generator of _objcwrapper_. The main change is the revamp of the code generator module, the detection of unknown types so they are not used in active methods, and improvements to the gammar and preprocessor to accept some GNUStep classes.

The generated code now passes nitpick but there is some problems with the generated Objective-C. Some types are not correctly reproduced. So it is not usable as of yet, but it is not too far.

The main limiting factors at this points are functions pointers used as parameters, the class hierarchy that is not duplicated and the Objective-C FFI not working on GNU/Linux.

Pull-Request: #1664
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>