Ejemplo n.º 1
0
 /// <summary>
 /// Reads the next tag from the tokens.
 /// </summary>
 /// <param name="tc">The collection of tokens.</param>
 /// <returns></returns>
 public ITag Read(TokenCollection tc)
 {
     if (tc == null || tc.Count == 0)
     {
         throw new Exception.ParseException("Invalid TokenCollection!");//无效的标签集合
     }
     return(tagParser.Parsing(this, tc));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Reads the next tag from the tokens.
 /// </summary>
 /// <param name="tc">The collection of tokens.</param>
 /// <returns></returns>
 public ITag Read(TokenCollection tc)
 {
     if (tc == null || tc.Count == 0)
     {
         throw new ParseException("Invalid TokenCollection!");
     }
     return(tagParser.Parsing(this, tc.TrimParentheses()));
 }