jfun.parsec
public final class IsToken extends Object implements FromToken<Tok>
Method Summary | |
---|---|
Tok | fromToken(Tok tok)
return the token if the token is the same object that we are expecting.
null otherwise. |
static FromToken<Tok> | instance(Object t)
Creates a FromToken instance using the given expected token t. |
Parameters: t the expected token object.
Returns: the FromToken instance.