weltling / parle

Parser and lexer for PHP
Other
87 stars 10 forks source link

[feature request] sigil get token or rule name #25

Closed lublak closed 1 year ago

lublak commented 3 years ago

currently there is no way to get the name behind a sigil. It can be helpful to debug your parser.

$infos = $parser->getSigilInfos(0); // => SigilInfos
$infos->getName();
$infos->isToken();
BenHanson commented 1 year ago

Added $parser->sigilName(0);