Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
TokenInfo.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 namespace SiliconStudio.Shaders.Grammar
4 {
5  /// <summary>
6  /// Key terminal
7  /// </summary>
8  public class TokenInfo
9  {
10  /// <summary>
11  /// Initializes a new instance of the <see cref="TokenInfo"/> class.
12  /// </summary>
13  public TokenInfo()
14  {
15  IsCaseInsensitive = false;
16  }
17 
18  /// <summary>
19  /// Initializes a new instance of the <see cref="TokenInfo"/> class.
20  /// </summary>
21  /// <param name="tokenCategory">The token category.</param>
22  public TokenInfo(TokenCategory tokenCategory)
23  {
24  TokenCategory = tokenCategory;
25  IsCaseInsensitive = false;
26  }
27 
28  /// <summary>
29  /// Gets or sets the token category.
30  /// </summary>
31  /// <value>
32  /// The token category.
33  /// </value>
34  public TokenCategory TokenCategory { get; set; }
35 
36  /// <summary>
37  /// Gets or sets if this token is case insensitive (default false).
38  /// </summary>
39  public bool IsCaseInsensitive { get; set; }
40 
41  }
42 }
43 
TokenInfo()
Initializes a new instance of the TokenInfo class.
Definition: TokenInfo.cs:13
TokenInfo(TokenCategory tokenCategory)
Initializes a new instance of the TokenInfo class.
Definition: TokenInfo.cs:22