AjScript.Interpreter.Lexer.NextQuotedString C# (CSharp) 메소드

NextQuotedString() 개인적인 메소드

private NextQuotedString ( ) : Token
리턴 Token
        private Token NextQuotedString()
        {
            StringBuilder sb = new StringBuilder();
            char? nch;
            char lastChar = (char)0;

            nch = this.NextChar();

            while (nch.HasValue && nch.Value != QuotedStringChar)
            {
                sb.Append(nch);
                lastChar = nch.Value;

                nch = this.NextChar();
            }

            Token token = new Token();
            token.Value = sb.ToString();
            token.TokenType = TokenType.String;

            return token;
        }