PHP Class Phlexy\Lexer\Stateful\UsingCompiledRegex

Inheritance: implements Phlexy\Lexer\Stateful
显示文件 Open project: nikic/phlexy

Protected Properties

Property Type Description
$currentStackPosition
$currentStateData
$initialState
$stateData * arrays with indices compiledRegex, offsetToActionMap, offsetToLengthMap
$stateStack

Public Methods

Method Description
__construct ( $initialState, array $stateData )
getStateStack ( )
hasPushedStates ( )
lex ( $string )
popState ( )
pushState ( $state )
swapState ( $state )

Method Details

__construct() public method

public __construct ( $initialState, array $stateData )
$stateData array

getStateStack() public method

public getStateStack ( )

hasPushedStates() public method

public hasPushedStates ( )

lex() public method

public lex ( $string )

popState() public method

public popState ( )

pushState() public method

public pushState ( $state )

swapState() public method

public swapState ( $state )

Property Details

$currentStackPosition protected_oe property

protected $currentStackPosition

$currentStateData protected_oe property

protected $currentStateData

$initialState protected_oe property

protected $initialState

$stateData protected_oe property

* arrays with indices compiledRegex, offsetToActionMap, offsetToLengthMap
protected $stateData

$stateStack protected_oe property

protected $stateStack