Accepts text and breaks it into tokens.
Some optimisation to make the sure the content is only scanned by the PHP regex parser once. Lexer modes must not start with leading underscores.
Located in /parser.php (line 180)
Class | Description |
---|---|
![]() |
Breaks HTML into SAX events. |
Sets up the lexer in case insensitive matching by default.
Adds a pattern that will enter a new parsing mode. Useful for entering parenthesis, strings, tags, etc.
Adds a pattern that will exit the current mode and re-enter the previous one.
Adds a token search pattern for a particular parsing mode. The pattern does not change the current mode.
Adds a pattern that has a special mode. Acts as an entry and exit pattern in one go, effectively calling a special parser handler for this token only.
Adds a mapping from a mode to another handler.
Splits the page text into tokens. Will fail
if the handlers report an error or if no content is consumed. If successful then each unparsed and parsed token invokes a call to the held listener.
Documentation generated on Sun, 04 May 2008 09:21:55 -0500 by phpDocumentor 1.3.0