docblock

phpDocumentor-style DocBlock (T_DOC_COMMENT token) tokenizer


This extension is like the tokenizer extension for PHP.
It takes a document comment (docblock) like this one:

/**
* information {@inlinetag}
* @tags
*/

and parses it into tokens.

The primary function is docblock_tokenize(), which accepts a
string, and returns an array of arrays of array(TOKEN, "token").
TOKEN is one of DOCBLOCK_* constants.

docblock_tokenize() has an optional second bool parameter that
determine whether to output non-essential tokens like
the /** * stuff.

docblock_token_name() takes a DOCBLOCK_* constant and returns its name

License: PHP License

Latest releases

Version Release Download
0.2.0 2006-06-27 docblock-0.2.0.tgz
0.1.0 2005-11-22 docblock-0.1.0.tgz
Show all releases

Changelog

Version Message
0.2.0 Bugfix release
- fix Bug #7952: terse mode ignores simplelist end
- fix Bug #7953: {@internal}} returned as inline tag inside
0.1.0 Initial release. This release supports all docblock features that
phpDocumentor supports.
Show complete changelog