phpDocumentor PHP_LexerGenerator
[ class tree: PHP_LexerGenerator ] [ index: PHP_LexerGenerator ] [ all elements ]

Class: PHP_LexerGenerator_Lexer

Source Location: /LexerGenerator/Lexer.php

Class PHP_LexerGenerator_Lexer

Class Overview

Token scanner for plex files.

This scanner detects comments beginning with "/*!lex2php" and then returns their components (processing instructions, patterns, strings action code, and regexes)

Located in /LexerGenerator/Lexer.php [line 38]



		
				Author(s):
		
		
		
Information Tags:
Since:  Class available since Release 0.1.0
Version:  @package_version@
License:  PHP License 3.01
Copyright:  2006 Gregory Beaver

Properties

Methods

[ Top ]
Property Summary
int   $errors   Number of scanning errors detected
int   $line   Current line number in input
int   $token   integer identifier of the current token
string   $value   string content of current token

[ Top ]
Method Summary
PHP_LexerGenerator_Lexer   __construct()   prepare scanning
unknown   advance()   Primary scanner

[ Top ]
Properties
int   $errors = 0 [line 52]

Number of scanning errors detected

API Tags:
Access:  public


[ Top ]
int   $line [line 47]

Current line number in input

API Tags:
Access:  public


[ Top ]
int   $token [line 57]

integer identifier of the current token

API Tags:
Access:  public


[ Top ]
string   $value [line 62]

string content of current token

API Tags:
Access:  public


[ Top ]
Methods
Constructor __construct  [line 77]

  PHP_LexerGenerator_Lexer __construct( string $data  )

prepare scanning

Parameters:
string   $data:  the input


[ Top ]
advance  [line 458]

  unknown advance( unknown_type $parser  )

Primary scanner

In addition to lexing, this properly increments the line number of lexing. This calls the proper sub-lexer based on the parser state

Parameters:
unknown_type   $parser: 

API Tags:
Access:  public


[ Top ]
Constants
CODE = PHP_LexerGenerator_Parser::CODE [line 69]

[ Top ]
COMMENTEND = PHP_LexerGenerator_Parser::COMMENTEND [line 66]

[ Top ]
COMMENTSTART = PHP_LexerGenerator_Parser::COMMENTSTART [line 65]

[ Top ]
PATTERN = PHP_LexerGenerator_Parser::PATTERN [line 68]

[ Top ]
PHPCODE = PHP_LexerGenerator_Parser::PHPCODE [line 64]

[ Top ]
PI = PHP_LexerGenerator_Parser::PI [line 71]

[ Top ]
QUOTE = PHP_LexerGenerator_Parser::QUOTE [line 67]

[ Top ]
SUBPATTERN = PHP_LexerGenerator_Parser::SUBPATTERN [line 70]

[ Top ]

Documentation generated on Sun, 02 Jul 2006 08:51:25 -0400 by phpDocumentor 1.3.0