php / 8.1.5 / parle-parser.sigil.html /

Parle\Parser::sigil

(PECL parle >= 0.5.1)

Parle\Parser::sigilRetrieve a matching part of a rule

Description

public Parle\Parser::sigil(int $idx): string

Retrieve a part of the match by a rule. This method is equivalent to the pseudo variable functionality in Bison.

Parameters

idx

Match index, zero based.

Return Values

Returns a string with the matched part.

© 1997–2021 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/parle-parser.sigil.php