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

Class: PHP_LexerGenerator_Lexer

Source Location: /PHP_LexerGenerator-0.4.0/PHP/LexerGenerator/Lexer.php

Class Overview


Token scanner for plex files.


Author(s):

Version:

  • @package_version@

Copyright:

  • 2006 Gregory Beaver

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 38]
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)

  • Author: Gregory Beaver <cellog@php.net>
  • Version: @package_version@
  • Copyright: 2006 Gregory Beaver
  • Since: Class available since Release 0.1.0
  • License: PHP License 3.01


[ Top ]


Class Variables

$errors =  0

[line 52]

Number of scanning errors detected
  • Access: public

Type:   int


[ Top ]

$line =

[line 47]

Current line number in input
  • Access: public

Type:   int


[ Top ]

$token =

[line 57]

integer identifier of the current token
  • Access: public

Type:   int


[ Top ]

$value =

[line 62]

string content of current token
  • Access: public

Type:   string


[ Top ]



Method Detail

advance   [line 521]

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

  • Access: public

Parameters:

unknown_type   $parser   — 

[ Top ]

__construct (Constructor)   [line 78]

PHP_LexerGenerator_Lexer __construct( string $data)

prepare scanning

Parameters:

string   $data   —  the input

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:40:38 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.