fpc/packages/cocoaint/utils/doc/Make Single Header.txt
Jonas Maebe b3ee4ea4eb + support for parsing docsets to add documentation to the parsed headers
* 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: trunk@16923 -
2011-02-16 18:46:26 +00:00

12 lines
793 B
Plaintext
Executable File

The parser can parse single files at a time but must first parse the entire framework in order to merge all relevant information.
1) cd to the directory which contains parser.php
2) php parser.php -root="/Developer/ObjectivePascal" -objp -all -frameworks="foundation" -only="NSObject.h"
Note: -root is the path to the directory which contains the base appkit and foundation folders. These folders come in the FPC distribution with some hand parsed headers and the master include units for each framework.
-frameworks are the frameworks which the headers belong to.
You can also do a quick parse of a single header for testing purposes or acquiring other information by using the command below.
php parser.php -root="/Developer/ObjectivePascal" -objp -header="appkit/NSApplication.h"