![]() |
PHP Tokens Parsing help - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: PHP Tokens Parsing help (/showthread.php?tid=7346) |
PHP Tokens Parsing help - El Forum - 04-04-2008 [eluser]James Pax[/eluser] Hi there, I know 2nd thread today, but doubts are annhiliating me today ![]() I'm building a special plug-and-play "phpdoc" style app for CI, as I need a more dynamic and interactive documenter for my projects. The problem is that the documentation for the php tokeniser is a bit confusing, I made a parser but changed it a million times and got loads of weird outputs! lol! I followed the original docs (PHP Tokenizer CLASS,PHP TOKEN List); Code: public function extinguish($fire) I would be happy if I just knew how to extract a class method's body, source and line number. If anybody has a link to some deeper documentation, that would be ùber-awesome!!!! James PHP Tokens Parsing help - El Forum - 04-04-2008 [eluser]James Pax[/eluser] please somebody pop up... I'm going crazy ![]() PHP Tokens Parsing help - El Forum - 04-04-2008 [eluser]m4rw3r[/eluser] Regexes could maybe be good for extracting the contents of a class. And the reflection API could be a good place to look at if you want to check properties, methods, arguments, etc. (Reflection API, only PHP 5). I would also like to have another documenter than Doxygen (it makes some errors), which I use for the moment, so I can maybe help you (quite busy, but I hope I can help a little). PHP Tokens Parsing help - El Forum - 04-05-2008 [eluser]James Pax[/eluser] yes! thank you m4rw3r! Sometimes google doesn't help if you don't know the right keywords to put in ![]() This Reflection API is awesome! Just what I need and even better than the PHP Tokenizer Class!! You rock! ![]() Anyways, I would be happy to have hand or two, ![]() PHP Tokens Parsing help - El Forum - 04-05-2008 [eluser]m4rw3r[/eluser] I think doxygen is good for documenting my code for developers (internal docs), but if I want something more customizable, doxygen isn't up for the job. So I will gladly help you with building a customizable PHPdoc app! |