summaryrefslogtreecommitdiff
path: root/packages/cocoaint/utils/parser.php
Commit message (Collapse)AuthorAgeFilesLines
* + support for parsing docsets to add documentation to the parsed headersjonas2011-02-161-2/+7
| | | | | | | | | | | | * re-enabled support for ignoring certain methods, but removed all ignored methods because all of them are handled correctly with the current version - disabled adding the script version and time stamp to the generated headers, so not all headers change every time they are re-parsed + support for optional/required sections in protocols + documentation from Ryan git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16923 3ad0048d-3df7-0310-abae-a5850022a9f2
* * automatically comment out methods that take blocks as parameters or returnjonas2011-02-111-1/+1
| | | | | | | | | | | | | | | | | | | | them * handle inline protocol definitions in parameter lists (replace id<protocol> with protocol, and class<protocol[,protocol,..]> with class), and made some fixes to this support for fields (many "id" fields/parameters are now protocols) * fix from Phil Hess for parsing some read-only properties * also translate ..._BUT_DEPRECATED macros (without any "_IN_VERSION..." coming after it) into "deprecated" modifiers * several fixes for handling deprecation macros (in several cases, half the macro was mangled into the name of the symbol itself) * default now to parsing the iOS 4.2 SDK headers, and fixed passing an alternate SDK on the command line to make-ios-headers.sh * updated Cocoa headers as parsed by the new parser, and with the headers from Mac OS X 10.6.5/Safari 5.0.2 (contains some WebKit updates) git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16908 3ad0048d-3df7-0310-abae-a5850022a9f2
* * changed syntax of external objcclasses (see wiki/FPC_PasCocoa). Anotherjonas2011-01-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | change is that it is now also allowed to specify an external name for formal external class definitions, but if they are later mixed with regular class definitions the external names have to match. o because the "external" status of methods is now set while parsing the class rather than afterwards, some procdir compatibility checks had to be inlined because they only have to be performed for * also adapted the syntax for external cppclasses in the same way * fixed return type of NSObject.retainCount and NSObject.hash (NSUInteger instead of cint) * moved "patches" directory from cocoaint/src to cocoaint/utils/cocoa-skel so they are used by the conversion script when re-parsing the headers * updated Objective-C header parser script to o use the new external class syntax o not write inheritance information for root classes (NSObject, NSProxy) o use internal translation tables for some conflicting method names that are named specially in objcbase.pp and updated parsed headers * fixed rtl/inc/objcbase.pp and tests to conform to the new external class syntax git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16684 3ad0048d-3df7-0310-abae-a5850022a9f2
* * version 2.13 of the parser, by Ryan Joseph: mainly restructuring andjonas2010-12-301-54/+18
| | | | | | | cleanup git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16666 3ad0048d-3df7-0310-abae-a5850022a9f2
* * updated version of the conversion script, used to generate the previouslyjonas2010-12-081-105/+56
| | | | | | | | | | | | | committed cocoa unit conversions, and which can also be used to translate the iOS SDK 3.2 headers + scripts (make-cocoa-headers.sh, make-ios-headers.sh) to (re)build the Cocoa/iOS headers, along with skeleton directories that contain the necessary helper files and a few required patches + frameworks.xml used by the conversion script * updated build instructions git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16522 3ad0048d-3df7-0310-abae-a5850022a9f2
* * Added missing UndefinedClasses.inc to /uikitjosef2009-12-201-2/+1
| | | | | | | * Changed the PHP variable which was causing the parser to not produce iphone headers * Added /utils/iphone directory which is the last safe version of the parser. This is because future versions of the parser will likely break the iphone parsing ability before it can be fully restored. git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@14454 3ad0048d-3df7-0310-abae-a5850022a9f2
* * NSRange is defined correctlyjosef2009-10-031-26/+32
| | | | | | | + Added CoreData framework + Added WebKit framework git-svn-id: http://svn.freepascal.org/svn/fpc/branches/objc@13796 3ad0048d-3df7-0310-abae-a5850022a9f2
* * User patches are now workingjosef2009-10-011-7/+20
| | | | | | * Pointers to classes are no longer untyped. git-svn-id: http://svn.freepascal.org/svn/fpc/branches/objc@13786 3ad0048d-3df7-0310-abae-a5850022a9f2
* * Parser was ignoring -root input in previous version.josef2009-09-281-94/+1
| | | | git-svn-id: http://svn.freepascal.org/svn/fpc/branches/objc@13772 3ad0048d-3df7-0310-abae-a5850022a9f2
* * Procedures with varargs are parsed properly.josef2009-09-281-45/+55
| | | | | | | | | | | * Fixed macro that was causing CFString constants to fail. * Removed MacOSAll dependency from iPhoneAll.pas. * More enumerations are parsed in all frameworks. * Properties that returned values in iPhone headers are now fixed. * Properties from categories are included now. + Users can add hand parsed patches by putting them in the patches directory and they will be included during parsing. git-svn-id: http://svn.freepascal.org/svn/fpc/branches/objc@13770 3ad0048d-3df7-0310-abae-a5850022a9f2
* + Parser support for UIKit has been added and iPhoneAll.pasjosef2009-09-221-55/+135
| | | | | | | | | | * Pass by reference arguments are translated as pointers instead of var * Variable length arguments are parsed with the varargs keyword instead of array of const + Added IVarSize.pas which prints the size of ivar's in all AppKit/Foundation classes. + There are now "null" defined macros for IBOutlet and IBAction like in Cocoa. Use these instead of comments and they may become useful in the future for InterfaceBuilder support. + Foundation.pas is included which can be used for command line tools without AppKit. git-svn-id: http://svn.freepascal.org/svn/fpc/branches/objc@13754 3ad0048d-3df7-0310-abae-a5850022a9f2
* + Cocoa interfaces and parser by Ryan Josephjonas2009-09-101-0/+268
git-svn-id: http://svn.freepascal.org/svn/fpc/branches/objc@13688 3ad0048d-3df7-0310-abae-a5850022a9f2