示例#1
0
		/// <summary>
		/// 使用上下文的索引、标签和类型初始化 <see cref="LexerContext"/> 结构的新实例。
		/// </summary>
		/// <param name="index">上下文的索引。</param>
		/// <param name="label">上下文的标签。</param>
		/// <param name="type">上下文的类型。</param>
		public LexerContext(int index, string label, LexerContextType type)
		{
			this.index = index;
			this.label = label;
			this.contextType = type;
		}
示例#2
0
 /// <summary>
 /// 使用上下文的索引、标签和类型初始化 <see cref="LexerContext"/> 结构的新实例。
 /// </summary>
 /// <param name="index">上下文的索引。</param>
 /// <param name="label">上下文的标签。</param>
 /// <param name="type">上下文的类型。</param>
 public LexerContext(int index, string label, LexerContextType type)
 {
     this.index       = index;
     this.label       = label;
     this.contextType = type;
 }