PHP Tokens Parsing help |
[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
[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).
[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, as my knowledge isn't superb. Thanks again!
[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! |
Welcome Guest, Not a member yet? Register Sign In |