title: Parsing PHP/JavaScript document structure in Delphi
body: <p>I need to parse PHP &amp; JavaScript documents structure to get the info about document functions &amp; their parameters, classes &amp; their methods, variables, and so on ...
  I'm wondering if there is any solution for doing that (no regular expressions) ... I've heard about something called "lexing" however I was unable to find any examples even the ones that could me tell if this is something what I am looking for or not ...</p>
  
  <p>thanks in advance</p>