Lines Matching +defs:text +defs:line
54 * Needed, for example, to get the text for current token. Set at
62 * The line on which the first character of the token resides.
69 * The character position of first character within the line
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,
373 public function setLine(int $line) : void
379 $this->interp->setLine($line);
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;
517 // TODO: Do we lose character or line position information?
528 $text = '';
531 $text = $this->input->getText($start, $stop);
541 \sprintf('token recognition error at: \'%s\'', $text),