コード例 #1
0
ファイル: Token.cs プロジェクト: gitter-badger/NClap
 /// <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
ファイル: Token.cs プロジェクト: gitter-badger/NClap
 /// <summary>
 /// Constructs a token object.
 /// </summary>
 /// <param name="contents">The token's contents.</param>
 public Token(Substring contents) : this(contents, false, false)
 {
 }