当前位置: 首页>>代码示例>>C#>>正文


C# BitSet.member方法代码示例

本文整理汇总了C#中BitSet.member方法的典型用法代码示例。如果您正苦于以下问题:C# BitSet.member方法的具体用法?C# BitSet.member怎么用?C# BitSet.member使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BitSet的用法示例。


在下文中一共展示了BitSet.member方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: match

		/*Make sure current lookahead symbol matches the given set
		* Throw an exception upon mismatch, which is catch by either the
		* error handler or by the syntactic predicate.
		*/
		public virtual void  match(AST t, BitSet b)
		{
			if (t == null || t == ASTNULL || !b.member(t.Type))
			{
				throw new MismatchedTokenException(getTokenNames(), t, b, false);
			}
		}
开发者ID:alexed1,项目名称:dtrack,代码行数:11,代码来源:TreeParser.cs

示例2: match

		/*Make sure current lookahead symbol matches the given set
		* Throw an exception upon mismatch, which is catch by either the
		* error handler or by the syntactic predicate.
		*/
		public virtual void  match(BitSet b)
		{
			if (!b.member(LA(1)))
				throw new MismatchedTokenException(tokenNames, LT(1), b, false, getFilename());
			else
				consume();
		}
开发者ID:alexed1,项目名称:dtrack,代码行数:11,代码来源:Parser.cs

示例3: match

 public virtual void match(BitSet b)
 {
     if (!b.member(cached_LA1))
     {
         throw new MismatchedCharException(cached_LA1, b, false, this);
     }
     consume();
 }
开发者ID:alexed1,项目名称:dtrack,代码行数:8,代码来源:CharScanner.cs

示例4: consumeUntil

		/*Consume tokens until one matches the given token set */
		public virtual void  consumeUntil(BitSet bset)
		{
			while (LA(1) != Token.EOF_TYPE && !bset.member(LA(1)))
			{
				consume();
			}
		}
开发者ID:alexed1,项目名称:dtrack,代码行数:8,代码来源:Parser.cs

示例5: consumeUntil

 /*Consume chars until one matches the given set */
 public virtual void consumeUntil(BitSet bset)
 {
     while (cached_LA1 != EOF_CHAR && !bset.member(cached_LA1))
     {
         consume();
     }
 }
开发者ID:alexed1,项目名称:dtrack,代码行数:8,代码来源:CharScanner.cs


注:本文中的BitSet.member方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。