示例#1
0
 /// <summary>
 /// Constructs a token object.
 /// </summary>
 /// <param name="contents">The token's contents.</param>
 /// <param name="startsWithQuote">True if the token is immediately
 /// preceded by an opening quote; false otherwise.</param>
 /// <param name="endsWithQuote">True if the token is immediately
 /// succeeded by an ending quote; false otherwise.</param>
 public Token(Substring contents, bool startsWithQuote, bool endsWithQuote)
 {
     Contents        = contents;
     StartsWithQuote = startsWithQuote;
     EndsWithQuote   = endsWithQuote;
 }
示例#2
0
 /// <summary>
 /// Constructs a token object.
 /// </summary>
 /// <param name="contents">The token's contents.</param>
 public Token(Substring contents) : this(contents, false, false)
 {
 }