Lines Matching defs:text
54 * Needed, for example, to get the text for current token. Set at
104 * You can set the text for the current token to override what is in the
109 public $text;
139 $this->text = null;
160 // guaranteed at least have text of current token
180 $this->text = null;
318 * char buffer start..stop. If there is a text override in 'text',
319 * use that to set the token's text. Override this method to emit
327 $this->text,
413 * Return the text matched so far for the current token or any text override.
417 if ($this->text !== null) {
418 return $this->text;
429 * Set the complete text of this token; it wipes any previous changes to the text.
431 public function setText(string $text) : void
433 $this->text = $text;
528 $text = '';
531 $text = $this->input->getText($start, $stop);
541 \sprintf('token recognition error at: \'%s\'', $text),