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