PHP 클래스 hafriedlander\Peg\Compiler\Rule
A rule is the basic unit of a PEG. This parses one rule, and generates a function that will match on a string
파일 보기
프로젝트 열기: hafriedlander/php-peg
공개 프로퍼티들
보호된 프로퍼티들
공개 메소드들
메소드 |
설명 |
|
__construct ( $parser, $lines ) |
|
|
compile ( $indent ) |
Generate the PHP code for a function to match against a string for this rule |
|
parse_rule ( ) |
* Manual parsing, because we can't bootstrap ourselves yet |
|
tokenize ( $str, &$tokens, $o ) |
|
|
메소드 상세
Generate the PHP code for a function to match against a string for this rule
* Manual parsing, because we can't bootstrap ourselves yet
프로퍼티 상세
$argument_rx 정적으로 공개적으로 프로퍼티
static public $argument_rx |
$function_rx 정적으로 공개적으로 프로퍼티
static public $function_rx |
$replacement_rx 정적으로 공개적으로 프로퍼티
static public $replacement_rx |