Exemple #1
0
 /// <summary>
 /// Creates an instance of <c>LexicalToken</c> with specified parameters.
 /// </summary>
 /// <param name="type">Type of token.</param>
 /// <param name="value">Associated value of this token.</param>
 /// <param name="tag">Additional data related to this token.</param>
 public LexicalToken(LexicalTokenType type, string value, object tag)
 {
     Type  = type;
     Value = value;
     Tag   = tag;
 }
Exemple #2
0
 /// <summary>
 /// Creates an instance of <c>LexicalToken</c> with specified parameters.
 /// </summary>
 /// <param name="type">Type of token.</param>
 /// <param name="value">Associated value of this token.</param>
 public LexicalToken(LexicalTokenType type, string value)
 {
     Type  = type;
     Value = value;
 }
Exemple #3
0
 /// <summary>
 /// Creates an instance of <c>LexicalToken</c> with specified type.
 /// </summary>
 /// <param name="type">Type of token.</param>
 public LexicalToken(LexicalTokenType type)
 {
     Type  = type;
     Value = null;
     Tag   = null;
 }
Exemple #4
0
 /// <summary>
 /// Creates an instance of <c>LexicalToken</c> with specified parameters.
 /// </summary>
 /// <param name="type">Type of token.</param>
 /// <param name="value">Associated value of this token.</param>
 /// <param name="tag">Additional data related to this token.</param>
 public LexicalToken(LexicalTokenType type, string value, object tag)
 {
     Type = type;
     Value = value;
     Tag = tag;
 }
Exemple #5
0
 /// <summary>
 /// Creates an instance of <c>LexicalToken</c> with specified parameters.
 /// </summary>
 /// <param name="type">Type of token.</param>
 /// <param name="value">Associated value of this token.</param>
 public LexicalToken(LexicalTokenType type, string value)
 {
     Type = type;
     Value = value;
 }
Exemple #6
0
 /// <summary>
 /// Creates an instance of <c>LexicalToken</c> with specified type.
 /// </summary>
 /// <param name="type">Type of token.</param>
 public LexicalToken(LexicalTokenType type)
 {
     Type = type;
     Value = null;
     Tag = null;
 }