Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #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;
 }