Parle\Parser::tokenId

Get token id

説明

public int Parle\Parser::tokenId(string $tok)

Retrieve the id of the named token.

パラメータ

tok

Name of the token as used in Parle\Parser::token.

戻り値

Returns int representing the token id.