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
Datei anzeigen
Open project: hafriedlander/php-peg
Public Properties
Protected Properties
Public Methods
Method |
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 method
Generate the PHP code for a function to match against a string for this rule
parse_rule()
public method
* Manual parsing, because we can't bootstrap ourselves yet
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