isToken

Add a matcher to this state that matches the recognizer (or pseudo-recognizer) on the left to the token type on the right.

The recognizer (the object on the left on which you are calling isToken) may be any of the types supported by toRecognizer.

Return

A matcher environment that uses the given (pseudo-)recognizers as its recognition technique.

Parameters

token

The token to associate this to

See also