public function pullRule($alias = false) { $v = array_shift($this->current_ruleset); if ($alias && $v[0] == '$') { $v = $this->get(substr($v, 1)); } return $this->consumed[] = $v; }