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.
파일 보기
프로젝트 열기: neos/flow-development-collection
공개 프로퍼티들
공개 메소드들
메소드 |
설명 |
|
__construct ( $type, $value = NULL ) |
|
|
compile ( ) |
abstract protected function match_code() ; |
|
메소드 상세
abstract protected function match_code() ;
프로퍼티 상세
$negative_lookahead 공개적으로 프로퍼티
public $negative_lookahead |
$positive_lookahead 공개적으로 프로퍼티
public $positive_lookahead |