PHP Class Flow\TokenStream

Exibir arquivo Open project: nramenta/flow

Protected Properties

Property Type Description
$currentToken
$cursor
$eos
$queue
$tokens

Public Methods

Method Description
__construct ( array $tokens )
consume ( $primary, $secondary = null )
expect ( $primary, $secondary = null )
expectTokens ( $tokens )
getCurrentToken ( )
getTokens ( )
isEOS ( )
look ( $t = 1 )
next ( $queue = true )
skip ( $times = 1 )
test ( $primary, $secondary = null )

Method Details

__construct() public method

public __construct ( array $tokens )
$tokens array

consume() public method

public consume ( $primary, $secondary = null )

expect() public method

public expect ( $primary, $secondary = null )

expectTokens() public method

public expectTokens ( $tokens )

getCurrentToken() public method

public getCurrentToken ( )

getTokens() public method

public getTokens ( )

isEOS() public method

public isEOS ( )

look() public method

public look ( $t = 1 )

next() public method

public next ( $queue = true )

skip() public method

public skip ( $times = 1 )

test() public method

public test ( $primary, $secondary = null )

Property Details

$currentToken protected_oe property

protected $currentToken

$cursor protected_oe property

protected $cursor

$eos protected_oe property

protected $eos

$queue protected_oe property

protected $queue

$tokens protected_oe property

protected $tokens