Beispiel #1
0
        public Token SwitchState(TokenType tokenType, ParserState parserState)
        {
            Token token = TokenBuilder.Create();

            handler      = parserState;
            TokenBuilder = new TokenBuilder(tokenType);
            return(token);
        }
Beispiel #2
0
 public TokenParser()
 {
     TokenBuilder = new TokenBuilder(TokenType.Text);
     handler      = new TextHandler();
 }