I want to parse PHP entities (classes, variables functions methods and properties) and save information on database (function signature, variable name et al). I'm trying to see alternatives for how I can archieve that with any language (the technique). So far I'm thinking of using regex to match stuffs but there might be better ways. I want to do almost same thing as ctags does.
Is there any other technique than using regex to match patterns?
I want to do something like
open php file>>>Parse entities>>>save to database (line number, signature, filepath et al)
example can be in PHP, no problem with that :)