Example #1
0
 /**
  * Parse the $rules
  * @param string $bnfRules
  */
 public function parseRules($bnfRules)
 {
     $this->rules = bnfParser::parseRules($this->id, $bnfRules);
 }
Example #2
0
 /**
  * Parse the parts
  * @return void
  */
 function parseParts()
 {
     $toParseStr = $this->strRule;
     while ($toParseStr !== "") {
         $this->parts[] = bnfParser::parseSubRule($toParseStr, $this->bnfId);
     }
 }