Class SimpleHtmlLexer

Description

Breaks HTML into SAX events.

Located in /php_parser.php (line 450)

SimpleLexer
   |
   --SimpleHtmlLexer
Method Summary
 SimpleHtmlLexer __construct (SimpleSaxParser $parser)
 void addInTagTokens ()
 void addSkipping ()
 void addTag (string $tag)
 array getParsedTags ()
Methods
Constructor __construct (line 459)

Sets up the lexer with case insensitive matching and adds the HTML handlers.

  • access: public
SimpleHtmlLexer __construct (SimpleSaxParser $parser)
  • SimpleSaxParser $parser: Handling strategy by reference.

Redefinition of:
SimpleLexer::__construct()
Sets up the lexer in case insensitive matching by default.
addAttributeTokens (line 524)

Matches attributes that are either single quoted, double quoted or unquoted.

  • access: protected
void addAttributeTokens ()
addInTagTokens (line 511)

Pattern matches to parse the inside of a tag including the attributes and their quoting.

  • access: protected
void addInTagTokens ()
addSkipping (line 484)

The lexer has to skip certain sections such as server code, client code and styles.

  • access: protected
void addSkipping ()
addTag (line 501)

Pattern matches to start and end a tag.

  • access: protected
void addTag (string $tag)
  • string $tag: Name of tag to scan for.
getParsedTags (line 474)

List of parsed tags. Others are ignored.

  • return: List of searched for tags.
  • access: protected
array getParsedTags ()

Inherited Methods

Inherited From SimpleLexer

 SimpleLexer::__construct()
 SimpleLexer::addEntryPattern()
 SimpleLexer::addExitPattern()
 SimpleLexer::addPattern()
 SimpleLexer::addSpecialPattern()
 SimpleLexer::decodeSpecial()
 SimpleLexer::dispatchTokens()
 SimpleLexer::invokeParser()
 SimpleLexer::isModeEnd()
 SimpleLexer::isSpecialMode()
 SimpleLexer::mapHandler()
 SimpleLexer::parse()
 SimpleLexer::reduce()

Documentation generated on Sun, 31 Oct 2010 16:32:05 -0500 by phpDocumentor 1.4.3