MCPcopy Create free account
hub / github.com/Gecode/gecode / yy_try_NUL_trans

Function yy_try_NUL_trans

gecode/flatzinc/lexer.yy.cpp:1638–1661  ·  view source on GitHub ↗

yy_try_NUL_trans - try to make a transition on the NUL character * * synopsis * next_state = yy_try_NUL_trans( current_state ); */

Source from the content-addressed store, hash-verified

1636 * next_state = yy_try_NUL_trans( current_state );
1637 */
1638 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner)
1639{
1640 int yy_is_jam;
1641 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */
1642 char *yy_cp = yyg->yy_c_buf_p;
1643
1644 YY_CHAR yy_c = 1;
1645 if ( yy_accept[yy_current_state] )
1646 {
1647 yyg->yy_last_accepting_state = yy_current_state;
1648 yyg->yy_last_accepting_cpos = yy_cp;
1649 }
1650 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1651 {
1652 yy_current_state = (int) yy_def[yy_current_state];
1653 if ( yy_current_state >= 221 )
1654 yy_c = yy_meta[yy_c];
1655 }
1656 yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1657 yy_is_jam = (yy_current_state == 220);
1658
1659 (void)yyg;
1660 return yy_is_jam ? 0 : yy_current_state;
1661}
1662
1663#ifndef YY_NO_UNPUT
1664

Callers 1

lexer.yy.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected