您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ yyprintf函数代码示例

51自学网 2021-06-03 11:55:14
  C++
这篇教程C++ yyprintf函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中yyprintf函数的典型用法代码示例。如果您正苦于以下问题:C++ yyprintf函数的具体用法?C++ yyprintf怎么用?C++ yyprintf使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

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

示例1: YY_RULE

YY_RULE(int) yy_literal(GREG *G){  int yypos0= G->pos, yythunkpos0= G->thunkpos;  yyprintf((stderr, "%s/n", "literal"));  {  int yypos42= G->pos, yythunkpos42= G->thunkpos;  if (!yymatchClass(G, (unsigned char *)"/000/000/000/000/200/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000")) goto l43;  yyText(G, G->begin, G->end);  if (!(YY_BEGIN)) goto l43;  l44:;	  {  int yypos45= G->pos, yythunkpos45= G->thunkpos;  {  int yypos46= G->pos, yythunkpos46= G->thunkpos;  if (!yymatchClass(G, (unsigned char *)"/000/000/000/000/200/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000")) goto l46;  goto l45;  l46:;	  G->pos= yypos46; G->thunkpos= yythunkpos46;  }  if (!yy_char(G)) { goto l45; }  goto l44;  l45:;	  G->pos= yypos45; G->thunkpos= yythunkpos45;  }  yyText(G, G->begin, G->end);  if (!(YY_END)) goto l43;  if (!yymatchClass(G, (unsigned char *)"/000/000/000/000/200/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000")) goto l43;  if (!yy__(G)) { goto l43; }  goto l42;  l43:;	  G->pos= yypos42; G->thunkpos= yythunkpos42;  if (!yymatchClass(G, (unsigned char *)"/000/000/000/000/004/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000")) goto l41;  yyText(G, G->begin, G->end);  if (!(YY_BEGIN)) goto l41;  l47:;	  {  int yypos48= G->pos, yythunkpos48= G->thunkpos;  {  int yypos49= G->pos, yythunkpos49= G->thunkpos;  if (!yymatchClass(G, (unsigned char *)"/000/000/000/000/004/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000")) goto l49;  goto l48;  l49:;	  G->pos= yypos49; G->thunkpos= yythunkpos49;  }  if (!yy_char(G)) { goto l48; }  goto l47;  l48:;	  G->pos= yypos48; G->thunkpos= yythunkpos48;  }  yyText(G, G->begin, G->end);  if (!(YY_END)) goto l41;  if (!yymatchClass(G, (unsigned char *)"/000/000/000/000/004/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000")) goto l41;  if (!yy__(G)) { goto l41; }  }  l42:;	  yyprintf((stderr, "  ok   %s @ %s/n", "literal", G->buf+G->pos));  return 1;  l41:;	  G->pos= yypos0; G->thunkpos= yythunkpos0;  yyprintf((stderr, "  fail %s @ %s/n", "literal", G->buf+G->pos));  return 0;}
开发者ID:0x3FFFFFFF,项目名称:macdown,代码行数:27,


示例2: YY_RULE

YY_RULE(int) yy_literal(){  int yypos0= yypos, yythunkpos0= yythunkpos;  yyprintf((stderr, "%s/n", "literal"));  {  int yypos39= yypos, yythunkpos39= yythunkpos;  if (!yymatchClass((unsigned char *)"/000/000/000/000/200/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000")) goto l40;  yyText(yybegin, yyend);  if (!(YY_BEGIN)) goto l40;  l41:;	  {  int yypos42= yypos, yythunkpos42= yythunkpos;  {  int yypos43= yypos, yythunkpos43= yythunkpos;  if (!yymatchClass((unsigned char *)"/000/000/000/000/200/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000")) goto l43;  goto l42;  l43:;	  yypos= yypos43; yythunkpos= yythunkpos43;  }  if (!yy_char()) goto l42;  goto l41;  l42:;	  yypos= yypos42; yythunkpos= yythunkpos42;  }  yyText(yybegin, yyend);  if (!(YY_END)) goto l40;  if (!yymatchClass((unsigned char *)"/000/000/000/000/200/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000")) goto l40;  if (!yy__()) goto l40;  goto l39;  l40:;	  yypos= yypos39; yythunkpos= yythunkpos39;  if (!yymatchClass((unsigned char *)"/000/000/000/000/004/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000")) goto l38;  yyText(yybegin, yyend);  if (!(YY_BEGIN)) goto l38;  l44:;	  {  int yypos45= yypos, yythunkpos45= yythunkpos;  {  int yypos46= yypos, yythunkpos46= yythunkpos;  if (!yymatchClass((unsigned char *)"/000/000/000/000/004/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000")) goto l46;  goto l45;  l46:;	  yypos= yypos46; yythunkpos= yythunkpos46;  }  if (!yy_char()) goto l45;  goto l44;  l45:;	  yypos= yypos45; yythunkpos= yythunkpos45;  }  yyText(yybegin, yyend);  if (!(YY_END)) goto l38;  if (!yymatchClass((unsigned char *)"/000/000/000/000/004/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000/000")) goto l38;  if (!yy__()) goto l38;  }  l39:;	  yyprintf((stderr, "  ok   %s @ %s/n", "literal", yybuf+yypos));  return 1;  l38:;	  yypos= yypos0; yythunkpos= yythunkpos0;  yyprintf((stderr, "  fail %s @ %s/n", "literal", yybuf+yypos));  return 0;}
开发者ID:AntiTyping,项目名称:tinyrb,代码行数:27,


示例3: YY_RULE

YY_RULE(int) yy_l_bracket(){  int yypos0= yypos, yythunkpos0= yythunkpos;  yyprintf((stderr, "%s/n", "l_bracket"));  if (!yymatchChar('[')) goto l12;  if (!yy__()) goto l12;  yyDo(yy_1_l_bracket, yybegin, yyend);  yyprintf((stderr, "  ok   %s @ %s/n", "l_bracket", yybuf+yypos));  return 1;  l12:;	  yypos= yypos0; yythunkpos= yythunkpos0;  yyprintf((stderr, "  fail %s @ %s/n", "l_bracket", yybuf+yypos));  return 0;}
开发者ID:jdp,项目名称:pin,代码行数:9,


示例4: YY_LOCAL

YY_LOCAL(int) yymatchChar(int c){  if (yypos >= yylimit && !yyrefill()) return 0;  if (yybuf[yypos] == c)    {      ++yypos;      yyprintf((stderr, "  ok   yymatchChar(%c) @ %s/n", c, yybuf+yypos));      return 1;    }  yyprintf((stderr, "  fail yymatchChar(%c) @ %s/n", c, yybuf+yypos));  return 0;}
开发者ID:AntiTyping,项目名称:tinyrb,代码行数:12,



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


C++ yyrestart函数代码示例
C++ yylex_destroy函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。