PHP 클래스 PhpPeg\Token

This base class provides the compile() function, which handles the token modifiers ( ? * + & ! ) Each child class should provide the function match_code() which will generate the code to match against that specific token type. In that generated code they should include the lines MATCH or FAIL when a match or a decisive failure occurs. These will be overwritten when they are injected into parent Tokens or Rules. There is no requirement on where MATCH and FAIL can occur. They tokens are also responsible for storing and restoring state when nessecary to handle a non-decisive failure.
저자: hamish
상속: extends PHPWriter
파일 보기 프로젝트 열기: neos/flow-development-collection

공개 프로퍼티들

프로퍼티 타입 설명
$negative_lookahead
$one_or_more
$optional
$positive_lookahead
$silent
$tag
$type
$value
$zero_or_more

공개 메소드들

메소드 설명
__construct ( $type, $value = NULL )
compile ( ) abstract protected function match_code() ;

메소드 상세

__construct() 공개 메소드

public __construct ( $type, $value = NULL )

compile() 공개 메소드

abstract protected function match_code() ;
public compile ( )

프로퍼티 상세

$negative_lookahead 공개적으로 프로퍼티

public $negative_lookahead

$one_or_more 공개적으로 프로퍼티

public $one_or_more

$optional 공개적으로 프로퍼티

public $optional

$positive_lookahead 공개적으로 프로퍼티

public $positive_lookahead

$silent 공개적으로 프로퍼티

public $silent

$tag 공개적으로 프로퍼티

public $tag

$type 공개적으로 프로퍼티

public $type

$value 공개적으로 프로퍼티

public $value

$zero_or_more 공개적으로 프로퍼티

public $zero_or_more