Hi Edward and folks,

I'm working on my PHP parser, and I have a couple of detailed
questions:

1)  The way these files are structures is:

----------------------------------------------------------------------
<?php

class Classname()
{
    public function Functioname()
    {
    }
    ....
}
----------------------------------------------------------------------

etc.




If I do:
----------------------------------------------------------------------
self.hasClasses = True
self.hasFunctions = True
----------------------------------------------------------------------

I get the Classname() node, but the functions aren't scanned.




If I do
----------------------------------------------------------------------
self.hasClasses = False
self.hasFunctions = True
----------------------------------------------------------------------



I get:




1st Node:
----------------------------------------------------------------------
@language phpsection
@tabwidth -4
@others

}
----------------------------------------------------------------------




2nd Node:
----------------------------------------------------------------------
<?php
class Classname
{
    // This routine creates the main index page.
----------------------------------------------------------------------



3rd Node:
----------------------------------------------------------------------
public function Functioname()
{
}
----------------------------------------------------------------------




So, my biggest question is:  How do I scan the classes, and scan the
functions within the classes?  I've been through the pythonParser
routine, but I don't quite see yet how it does it.

TIA
Mike
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to