PHP Class 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
Afficher le fichier
Open project: hafriedlander/php-peg
Méthodes publiques
Protected Properties
Méthodes publiques
Méthode |
Description |
|
__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 ) |
|
|
Method Details
__construct()
public méthode
Generate the PHP code for a function to match against a string for this rule
parse_rule()
public méthode
* Manual parsing, because we can't bootstrap ourselves yet
tokenize()
public méthode
Property Details
$argument_rx static_oe public_oe property
static public $argument_rx |
$extends public_oe property
$function_rx static_oe public_oe property
static public $function_rx |
$lines protected_oe property
$parser protected_oe property
$replacement_rx static_oe public_oe property
static public $replacement_rx |
$rule_rx static_oe public_oe property
$rx_rx static_oe public_oe property