[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/pkg/vtiger/extensions/Webservices/third-party/LexerGenerator/ -> Lexer.php (summary)

PHP_LexerGenerator, a php 5 lexer generator. This lexer generator translates a file in a format similar to re2c ({@link http://re2c.org}) and translates it into a PHP 5-based lexer

Author: Gregory Beaver <[email protected]>
Copyright: 2006 Gregory Beaver
License: http://www.php.net/license/3_01.txt PHP License 3.01
Version: CVS: $Id$
File Size: 465 lines (15 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

PHP_LexerGenerator_Lexer:: (13 methods):
  __construct()
  error()
  lexStart()
  lexStartNonDeclare()
  lexDeclare()
  lexDeclarePI()
  lexDeclarePIRule()
  lexDeclareEquals()
  lexDeclareRightside()
  lexQuote()
  lexRule()
  lexCode()
  advance()


Class: PHP_LexerGenerator_Lexer  - X-Ref

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)
__construct($data)   X-Ref
prepare scanning

param: string the input

error($msg)   X-Ref
Output an error message

param: string

lexStart()   X-Ref
Initial scanning state lexer

return: boolean

lexStartNonDeclare()   X-Ref
lexer for top-level canning state after the initial declaration comment

return: boolean

lexDeclare()   X-Ref
lexer for declaration comment state

return: boolean

lexDeclarePI()   X-Ref
lexer for processor instructions within declaration comment

return: boolean

lexDeclarePIRule()   X-Ref
lexer for processor instructions inside rule comments

return: boolean

lexDeclareEquals()   X-Ref
lexer for the state representing scanning between a pattern and the "=" sign

return: boolean

lexDeclareRightside()   X-Ref
lexer for the right side of a pattern, detects quotes or regexes

return: boolean

lexQuote()   X-Ref
lexer for quoted literals

return: boolean

lexRule()   X-Ref
lexer for rules

return: boolean

lexCode()   X-Ref
lexer for php code blocks

return: boolean

advance($parser)   X-Ref
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
param: unknown_type $parser
return: unknown



Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1