PHP Class Phlexy\Lexer\Stateful\UsingCompiledRegex

Inheritance: implements Phlexy\Lexer\Stateful
Show file 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 property

protected $currentStackPosition

$currentStateData protected property

protected $currentStateData

$initialState protected property

protected $initialState

$stateData protected property

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

$stateStack protected property

protected $stateStack