public Token SwitchState(TokenType tokenType, ParserState parserState) { Token token = TokenBuilder.Create(); handler = parserState; TokenBuilder = new TokenBuilder(tokenType); return(token); }
public TokenParser() { TokenBuilder = new TokenBuilder(TokenType.Text); handler = new TextHandler(); }