##// END OF EJS Templates
Added Skip method to JSON parser to skip contents of the current node
Added Skip method to JSON parser to skip contents of the current node

File last commit:

r55:c0bf853aa04f default
r62:62b440d46313 default
Show More
JsonTokenType.cs
50 lines | 1.3 KiB | text/x-csharp | CSharpLexer
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Implab.JSON {
/// <summary>
/// Тип токенов, возвращаемых <see cref="JSONScanner"/>.
/// </summary>
public enum JsonTokenType : int {
None = 0,
/// <summary>
/// Начало объекта
/// </summary>
BeginObject,
/// <summary>
/// Конец объекта
/// </summary>
EndObject,
/// <summary>
/// Начало массива
/// </summary>
BeginArray,
/// <summary>
/// Конец массива
/// </summary>
EndArray,
/// <summary>
/// Строка
/// </summary>
String,
/// <summary>
/// Число
/// </summary>
Number,
/// <summary>
/// Литерал
/// </summary>
Literal,
/// <summary>
/// Разделитель имени <c>:</c>
/// </summary>
NameSeparator,
/// <summary>
/// Разделитель имени <c>,</c>
/// </summary>
ValueSeparator
}
}