<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.15"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>ANTLR3C: src/antlr3cyclicdfa.c File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtreedata.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(initResizable); /* @license-end */</script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">ANTLR3C  <span id="projectnumber">3.3.1</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.15 --> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(function() { initMenu('',false,false,'search.php','Search'); }); /* @license-end */</script> <div id="main-nav"></div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(function(){initNavTree('antlr3cyclicdfa_8c.html','');}); /* @license-end */ </script> <div id="doc-content"> <div class="header"> <div class="summary"> <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">antlr3cyclicdfa.c File Reference</div> </div> </div><!--header--> <div class="contents"> <div class="textblock"><code>#include <<a class="el" href="antlr3defs_8h.html">antlr3defs.h</a>></code><br /> <code>#include <<a class="el" href="antlr3cyclicdfa_8h.html">antlr3cyclicdfa.h</a>></code><br /> </div><div class="textblock"><div class="dynheader"> Include dependency graph for antlr3cyclicdfa.c:</div> <div class="dyncontent"> <div class="center"><img src="antlr3cyclicdfa_8c__incl.png" border="0" usemap="#src_2antlr3cyclicdfa_8c" alt=""/></div> <map name="src_2antlr3cyclicdfa_8c" id="src_2antlr3cyclicdfa_8c"> <area shape="rect" title=" " alt="" coords="1499,5,1642,32"/> <area shape="rect" href="antlr3defs_8h.html" title="Basic type and constant definitions for ANTLR3 Runtime." alt="" coords="1331,901,1429,928"/> <area shape="rect" href="antlr3cyclicdfa_8h.html" title=" " alt="" coords="953,80,1076,107"/> <area shape="rect" href="antlr3errors_8h.html" title=" " alt="" coords="2332,976,2439,1003"/> <area shape="rect" title=" " alt="" coords="2463,976,2572,1003"/> <area shape="rect" title=" " alt="" coords="2596,976,2660,1003"/> <area shape="rect" title=" " alt="" coords="392,976,461,1003"/> <area shape="rect" title=" " alt="" coords="486,976,575,1003"/> <area shape="rect" title=" " alt="" coords="600,976,680,1003"/> <area shape="rect" title=" " alt="" coords="705,976,773,1003"/> <area shape="rect" title=" " alt="" coords="797,976,870,1003"/> <area shape="rect" title=" " alt="" coords="894,976,967,1003"/> <area shape="rect" title=" " alt="" coords="992,976,1061,1003"/> <area shape="rect" title=" " alt="" coords="1085,976,1160,1003"/> <area shape="rect" title=" " alt="" coords="1184,976,1267,1003"/> <area shape="rect" title=" " alt="" coords="1291,976,1362,1003"/> <area shape="rect" title=" " alt="" coords="1387,976,1480,1003"/> <area shape="rect" title=" " alt="" coords="1504,976,1600,1003"/> <area shape="rect" title=" " alt="" coords="1624,976,1725,1003"/> <area shape="rect" title=" " alt="" coords="1750,976,1869,1003"/> <area shape="rect" title=" " alt="" coords="1893,976,1963,1003"/> <area shape="rect" title=" " alt="" coords="1988,976,2063,1003"/> <area shape="rect" title=" " alt="" coords="2087,976,2153,1003"/> <area shape="rect" href="antlr3interfaces_8h.html" title="Declarations for all the antlr3 C runtime interfaces/classes." alt="" coords="2177,976,2308,1003"/> <area shape="rect" href="antlr3convertutf_8h.html" title=" " alt="" coords="235,976,368,1003"/> <area shape="rect" href="antlr3baserecognizer_8h.html" title="Defines the basic structure to support recognizing by either a lexer, parser, or tree parser." alt="" coords="933,155,1096,181"/> <area shape="rect" href="antlr3intstream_8h.html" title="Defines the the class interface for an antlr3 INTSTREAM." alt="" coords="195,603,325,629"/> <area shape="rect" href="antlr3exception_8h.html" title="Contains the definition of a basic ANTLR3 exception structure created by a recognizer when errors are..." alt="" coords="1886,304,2015,331"/> <area shape="rect" href="antlr3input_8h.html" title="Defines the basic structures used to manipulate character streams from any input source." alt="" coords="253,528,355,555"/> <area shape="rect" href="antlr3commontoken_8h.html" title="Defines the interface for a common token." alt="" coords="376,677,536,704"/> <area shape="rect" href="antlr3tokenstream_8h.html" title="Defines the interface for an ANTLR3 common token stream." alt="" coords="590,453,738,480"/> <area shape="rect" href="antlr3debugeventlistener_8h.html" title="The definition of all debugging events that a recognizer can trigger." alt="" coords="792,528,979,555"/> <area shape="rect" href="antlr3commontreenodestream_8h.html" title="Definition of the ANTLR3 common tree node stream." alt="" coords="955,304,1178,331"/> <area shape="rect" href="antlr3recognizersharedstate_8h.html" title="While the C runtime does not need to model the state of multiple lexers and parsers in the same way a..." alt="" coords="1936,752,2141,779"/> <area shape="rect" href="antlr3lexer_8h.html" title="Base interface for any ANTLR3 lexer." alt="" coords="414,379,514,405"/> <area shape="rect" href="antlr3parser_8h.html" title="Base implementation of an ANTLR3 parser." alt="" coords="1157,229,1267,256"/> <area shape="rect" href="antlr3treeparser_8h.html" title=" " alt="" coords="1000,229,1133,256"/> <area shape="rect" href="antlr3string_8h.html" title="Simple string interface allows indiscriminate allocation of strings such that they can be allocated a..." alt="" coords="1145,677,1252,704"/> <area shape="rect" href="antlr3collections_8h.html" title=" " alt="" coords="1171,752,1307,779"/> <area shape="rect" href="antlr3bitset_8h.html" title="Defines the basic structures of an ANTLR3 bitset." alt="" coords="1186,827,1291,853"/> <area shape="rect" href="antlr3basetree_8h.html" title="Definition of the ANTLR3 base tree." alt="" coords="1261,603,1384,629"/> <area shape="rect" href="antlr3commontreeadaptor_8h.html" title="Definition of the ANTLR3 common tree adaptor." alt="" coords="1207,379,1404,405"/> <area shape="rect" href="antlr3commontree_8h.html" title=" " alt="" coords="1509,528,1659,555"/> <area shape="rect" href="antlr3basetreeadaptor_8h.html" title="Definition of the ANTLR3 base tree adaptor." alt="" coords="1220,453,1391,480"/> </map> </div> </div><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:a06b669c119c3421298972433404eff5a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="antlr3defs_8h.html#ac6724ab3b71a7f4b3c340f52312e8488">ANTLR3_API</a> <a class="el" href="antlr3defs_8h.html#a6faef5c4687f8eb633d2aefea93973ca">ANTLR3_INT32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="antlr3cyclicdfa_8c.html#a06b669c119c3421298972433404eff5a">antlr3dfapredict</a> (void *ctx, <a class="el" href="group___a_n_t_l_r3___b_a_s_e___r_e_c_o_g_n_i_z_e_r.html#ga5aeeb8dcbf65f45605ae07cbd618e24c">pANTLR3_BASE_RECOGNIZER</a> rec, <a class="el" href="antlr3interfaces_8h.html#af34d949f6aa442e8e7770e420977d338">pANTLR3_INT_STREAM</a> is, <a class="el" href="group___a_n_t_l_r3___c_y_c_l_i_c___d_f_a.html#ga502c0c8f0e9195b69b310c43622b2706">pANTLR3_CYCLIC_DFA</a> cdfa)</td></tr> <tr class="memdesc:a06b669c119c3421298972433404eff5a"><td class="mdescLeft"> </td><td class="mdescRight">From the input stream, predict what alternative will succeed using this DFA (representing the covering regular approximation to the underlying CFL). <a href="#a06b669c119c3421298972433404eff5a">More...</a><br /></td></tr> <tr class="separator:a06b669c119c3421298972433404eff5a"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ac680dfa488e7b38cb6d6f1fa56ebeebc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="antlr3defs_8h.html#ac6724ab3b71a7f4b3c340f52312e8488">ANTLR3_API</a> <a class="el" href="antlr3defs_8h.html#a6faef5c4687f8eb633d2aefea93973ca">ANTLR3_INT32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="antlr3cyclicdfa_8c.html#ac680dfa488e7b38cb6d6f1fa56ebeebc">antlr3dfaspecialStateTransition</a> (void *ctx, <a class="el" href="group___a_n_t_l_r3___b_a_s_e___r_e_c_o_g_n_i_z_e_r.html#ga5aeeb8dcbf65f45605ae07cbd618e24c">pANTLR3_BASE_RECOGNIZER</a> recognizer, <a class="el" href="antlr3interfaces_8h.html#af34d949f6aa442e8e7770e420977d338">pANTLR3_INT_STREAM</a> is, <a class="el" href="group___a_n_t_l_r3___c_y_c_l_i_c___d_f_a.html#ga502c0c8f0e9195b69b310c43622b2706">pANTLR3_CYCLIC_DFA</a> dfa, <a class="el" href="antlr3defs_8h.html#a6faef5c4687f8eb633d2aefea93973ca">ANTLR3_INT32</a> s)</td></tr> <tr class="memdesc:ac680dfa488e7b38cb6d6f1fa56ebeebc"><td class="mdescLeft"> </td><td class="mdescRight">Default special state implementation. <a href="#ac680dfa488e7b38cb6d6f1fa56ebeebc">More...</a><br /></td></tr> <tr class="separator:ac680dfa488e7b38cb6d6f1fa56ebeebc"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a433d759910cf92b0378f38dac3d57594"><td class="memItemLeft" align="right" valign="top"><a class="el" href="antlr3defs_8h.html#ac6724ab3b71a7f4b3c340f52312e8488">ANTLR3_API</a> <a class="el" href="antlr3defs_8h.html#a6faef5c4687f8eb633d2aefea93973ca">ANTLR3_INT32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="antlr3cyclicdfa_8c.html#a433d759910cf92b0378f38dac3d57594">antlr3dfaspecialTransition</a> (void *ctx, <a class="el" href="group___a_n_t_l_r3___b_a_s_e___r_e_c_o_g_n_i_z_e_r.html#ga5aeeb8dcbf65f45605ae07cbd618e24c">pANTLR3_BASE_RECOGNIZER</a> recognizer, <a class="el" href="antlr3interfaces_8h.html#af34d949f6aa442e8e7770e420977d338">pANTLR3_INT_STREAM</a> is, <a class="el" href="group___a_n_t_l_r3___c_y_c_l_i_c___d_f_a.html#ga502c0c8f0e9195b69b310c43622b2706">pANTLR3_CYCLIC_DFA</a> dfa, <a class="el" href="antlr3defs_8h.html#a6faef5c4687f8eb633d2aefea93973ca">ANTLR3_INT32</a> s)</td></tr> <tr class="separator:a433d759910cf92b0378f38dac3d57594"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aed9eeb80fb9d0863341c843c7f2dc1c8"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="antlr3cyclicdfa_8c.html#aed9eeb80fb9d0863341c843c7f2dc1c8">noViableAlt</a> (<a class="el" href="group___a_n_t_l_r3___b_a_s_e___r_e_c_o_g_n_i_z_e_r.html#ga5aeeb8dcbf65f45605ae07cbd618e24c">pANTLR3_BASE_RECOGNIZER</a> rec, <a class="el" href="group___a_n_t_l_r3___c_y_c_l_i_c___d_f_a.html#ga502c0c8f0e9195b69b310c43622b2706">pANTLR3_CYCLIC_DFA</a> cdfa, <a class="el" href="antlr3defs_8h.html#ac41f744abd0fd25144b9eb9d11b1dfd1">ANTLR3_UINT32</a> s)</td></tr> <tr class="memdesc:aed9eeb80fb9d0863341c843c7f2dc1c8"><td class="mdescLeft"> </td><td class="mdescRight">Support functions for traversing cyclic DFA states as laid out in static initialized structures by the code generator. <a href="#aed9eeb80fb9d0863341c843c7f2dc1c8">More...</a><br /></td></tr> <tr class="separator:aed9eeb80fb9d0863341c843c7f2dc1c8"><td class="memSeparator" colspan="2"> </td></tr> </table> <h2 class="groupheader">Function Documentation</h2> <a id="a06b669c119c3421298972433404eff5a"></a> <h2 class="memtitle"><span class="permalink"><a href="#a06b669c119c3421298972433404eff5a">◆ </a></span>antlr3dfapredict()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="antlr3defs_8h.html#ac6724ab3b71a7f4b3c340f52312e8488">ANTLR3_API</a> <a class="el" href="antlr3defs_8h.html#a6faef5c4687f8eb633d2aefea93973ca">ANTLR3_INT32</a> antlr3dfapredict </td> <td>(</td> <td class="paramtype">void * </td> <td class="paramname"><em>ctx</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="group___a_n_t_l_r3___b_a_s_e___r_e_c_o_g_n_i_z_e_r.html#ga5aeeb8dcbf65f45605ae07cbd618e24c">pANTLR3_BASE_RECOGNIZER</a> </td> <td class="paramname"><em>rec</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="antlr3interfaces_8h.html#af34d949f6aa442e8e7770e420977d338">pANTLR3_INT_STREAM</a> </td> <td class="paramname"><em>is</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="group___a_n_t_l_r3___c_y_c_l_i_c___d_f_a.html#ga502c0c8f0e9195b69b310c43622b2706">pANTLR3_CYCLIC_DFA</a> </td> <td class="paramname"><em>cdfa</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>From the input stream, predict what alternative will succeed using this DFA (representing the covering regular approximation to the underlying CFL). </p> <p>Return an alternative number 1..n. Throw an exception upon error. </p> <p class="reference">References <a class="el" href="struct_a_n_t_l_r3___i_n_t___s_t_r_e_a_m__struct.html#ad907a6fcc56baebad9925c5be026a0b8">ANTLR3_INT_STREAM_struct::_LA</a>, <a class="el" href="struct_a_n_t_l_r3___c_y_c_l_i_c___d_f_a__struct.html#aafb1916b8b74b9822e740b3ee1447db2">ANTLR3_CYCLIC_DFA_struct::accept</a>, <a class="el" href="antlr3commontoken_8h.html#a1c8f8ac4a421a4adcad0c827fb4f91cd">ANTLR3_TOKEN_EOF</a>, <a class="el" href="antlr3errors_8h.html#a8cfcfbce03f3039eb35d87f97105dc1b">ANTLR3_TRUE</a>, <a class="el" href="struct_a_n_t_l_r3___i_n_t___s_t_r_e_a_m__struct.html#a1c1137be37e3271c76a6f500e12068b0">ANTLR3_INT_STREAM_struct::consume</a>, <a class="el" href="struct_a_n_t_l_r3___c_y_c_l_i_c___d_f_a__struct.html#af87118c3402a6cf8d33be8673f7174e5">ANTLR3_CYCLIC_DFA_struct::eof</a>, <a class="el" href="struct_a_n_t_l_r3___c_y_c_l_i_c___d_f_a__struct.html#aa483fc633ac657a66852b61926402f36">ANTLR3_CYCLIC_DFA_struct::eot</a>, <a class="el" href="struct_a_n_t_l_r3___r_e_c_o_g_n_i_z_e_r___s_h_a_r_e_d___s_t_a_t_e__struct.html#ac0e7a931ae9898e9a5bdef519f2ad700">ANTLR3_RECOGNIZER_SHARED_STATE_struct::error</a>, <a class="el" href="antlr3commontreenodestream_8c.html#a0ddd24ffd4326d1375a3314e6a5040a1">mark()</a>, <a class="el" href="struct_a_n_t_l_r3___i_n_t___s_t_r_e_a_m__struct.html#a6e65fe1ae5e52dcb545031ec6d2e2682">ANTLR3_INT_STREAM_struct::mark</a>, <a class="el" href="struct_a_n_t_l_r3___c_y_c_l_i_c___d_f_a__struct.html#ad4f7b98244ffc38a190b39f84d25915e">ANTLR3_CYCLIC_DFA_struct::min</a>, <a class="el" href="antlr3cyclicdfa_8c.html#aed9eeb80fb9d0863341c843c7f2dc1c8">noViableAlt()</a>, <a class="el" href="struct_a_n_t_l_r3___t_r_e_e___p_a_r_s_e_r__struct.html#a2c91ea97da3628675b73dfd0818f697c">ANTLR3_TREE_PARSER_struct::rec</a>, <a class="el" href="struct_a_n_t_l_r3___i_n_t___s_t_r_e_a_m__struct.html#a26429c11906ba0df59115b6d872006f9">ANTLR3_INT_STREAM_struct::rewind</a>, <a class="el" href="struct_a_n_t_l_r3___c_y_c_l_i_c___d_f_a__struct.html#a48569ed0751db6efb88bb4cc8f9834fe">ANTLR3_CYCLIC_DFA_struct::special</a>, <a class="el" href="struct_a_n_t_l_r3___c_y_c_l_i_c___d_f_a__struct.html#a76cf2b9978b83c1fad8eba82de28f7a9">ANTLR3_CYCLIC_DFA_struct::specialStateTransition</a>, <a class="el" href="struct_a_n_t_l_r3___b_a_s_e___r_e_c_o_g_n_i_z_e_r__struct.html#aff56a30644716edb24915f621b6df701">ANTLR3_BASE_RECOGNIZER_struct::state</a>, and <a class="el" href="struct_a_n_t_l_r3___c_y_c_l_i_c___d_f_a__struct.html#a3a21fd1331a5610e606624920974b3ae">ANTLR3_CYCLIC_DFA_struct::transition</a>.</p> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><img src="antlr3cyclicdfa_8c_a06b669c119c3421298972433404eff5a_cgraph.png" border="0" usemap="#antlr3cyclicdfa_8c_a06b669c119c3421298972433404eff5a_cgraph" alt=""/></div> <map name="antlr3cyclicdfa_8c_a06b669c119c3421298972433404eff5a_cgraph" id="antlr3cyclicdfa_8c_a06b669c119c3421298972433404eff5a_cgraph"> <area shape="rect" title="From the input stream, predict what alternative will succeed using this DFA (representing the coverin..." alt="" coords="5,31,127,57"/> <area shape="rect" href="antlr3commontreenodestream_8c.html#a0ddd24ffd4326d1375a3314e6a5040a1" title="Mark the state of the input stream so that we can come back to it after a syntactic predicate and so ..." alt="" coords="195,5,249,32"/> <area shape="rect" href="antlr3cyclicdfa_8c.html#aed9eeb80fb9d0863341c843c7f2dc1c8" title="Support functions for traversing cyclic DFA states as laid out in static initialized structures by th..." alt="" coords="175,56,269,83"/> <area shape="rect" href="antlr3commontreenodestream_8c.html#aebb793e586aa9eddebde64b400ba24ba" title="Walk and fill the tree node buffer from the root tree." alt="" coords="317,5,423,32"/> <area shape="rect" href="antlr3commontreenodestream_8c.html#ac4507475b023b7f2393c5fbe5d080469" title="Walk tree with depth-first-search and fill nodes buffer." alt="" coords="471,5,545,32"/> <area shape="rect" href="antlr3basetreeadaptor_8c.html#a344b47b2135ffa1a7bf782b09974acdd" title="Create and return a nil tree node (no token payload)" alt="" coords="593,5,664,32"/> </map> </div> </div> </div> <a id="ac680dfa488e7b38cb6d6f1fa56ebeebc"></a> <h2 class="memtitle"><span class="permalink"><a href="#ac680dfa488e7b38cb6d6f1fa56ebeebc">◆ </a></span>antlr3dfaspecialStateTransition()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="antlr3defs_8h.html#ac6724ab3b71a7f4b3c340f52312e8488">ANTLR3_API</a> <a class="el" href="antlr3defs_8h.html#a6faef5c4687f8eb633d2aefea93973ca">ANTLR3_INT32</a> antlr3dfaspecialStateTransition </td> <td>(</td> <td class="paramtype">void * </td> <td class="paramname"><em>ctx</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="group___a_n_t_l_r3___b_a_s_e___r_e_c_o_g_n_i_z_e_r.html#ga5aeeb8dcbf65f45605ae07cbd618e24c">pANTLR3_BASE_RECOGNIZER</a> </td> <td class="paramname"><em>recognizer</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="antlr3interfaces_8h.html#af34d949f6aa442e8e7770e420977d338">pANTLR3_INT_STREAM</a> </td> <td class="paramname"><em>is</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="group___a_n_t_l_r3___c_y_c_l_i_c___d_f_a.html#ga502c0c8f0e9195b69b310c43622b2706">pANTLR3_CYCLIC_DFA</a> </td> <td class="paramname"><em>dfa</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="antlr3defs_8h.html#a6faef5c4687f8eb633d2aefea93973ca">ANTLR3_INT32</a> </td> <td class="paramname"><em>s</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Default special state implementation. </p> </div> </div> <a id="a433d759910cf92b0378f38dac3d57594"></a> <h2 class="memtitle"><span class="permalink"><a href="#a433d759910cf92b0378f38dac3d57594">◆ </a></span>antlr3dfaspecialTransition()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="antlr3defs_8h.html#ac6724ab3b71a7f4b3c340f52312e8488">ANTLR3_API</a> <a class="el" href="antlr3defs_8h.html#a6faef5c4687f8eb633d2aefea93973ca">ANTLR3_INT32</a> antlr3dfaspecialTransition </td> <td>(</td> <td class="paramtype">void * </td> <td class="paramname"><em>ctx</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="group___a_n_t_l_r3___b_a_s_e___r_e_c_o_g_n_i_z_e_r.html#ga5aeeb8dcbf65f45605ae07cbd618e24c">pANTLR3_BASE_RECOGNIZER</a> </td> <td class="paramname"><em>recognizer</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="antlr3interfaces_8h.html#af34d949f6aa442e8e7770e420977d338">pANTLR3_INT_STREAM</a> </td> <td class="paramname"><em>is</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="group___a_n_t_l_r3___c_y_c_l_i_c___d_f_a.html#ga502c0c8f0e9195b69b310c43622b2706">pANTLR3_CYCLIC_DFA</a> </td> <td class="paramname"><em>dfa</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="antlr3defs_8h.html#a6faef5c4687f8eb633d2aefea93973ca">ANTLR3_INT32</a> </td> <td class="paramname"><em>s</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> </div> </div> <a id="aed9eeb80fb9d0863341c843c7f2dc1c8"></a> <h2 class="memtitle"><span class="permalink"><a href="#aed9eeb80fb9d0863341c843c7f2dc1c8">◆ </a></span>noViableAlt()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static void noViableAlt </td> <td>(</td> <td class="paramtype"><a class="el" href="group___a_n_t_l_r3___b_a_s_e___r_e_c_o_g_n_i_z_e_r.html#ga5aeeb8dcbf65f45605ae07cbd618e24c">pANTLR3_BASE_RECOGNIZER</a> </td> <td class="paramname"><em>rec</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="group___a_n_t_l_r3___c_y_c_l_i_c___d_f_a.html#ga502c0c8f0e9195b69b310c43622b2706">pANTLR3_CYCLIC_DFA</a> </td> <td class="paramname"><em>cdfa</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="antlr3defs_8h.html#ac41f744abd0fd25144b9eb9d11b1dfd1">ANTLR3_UINT32</a> </td> <td class="paramname"><em>s</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Support functions for traversing cyclic DFA states as laid out in static initialized structures by the code generator. </p> <p>A DFA implemented as a set of transition tables.</p> <p>Any state that has a semantic predicate edge is special; those states are generated with if-then-else structures in a ->specialStateTransition() which is generated by cyclicDFA template.</p> <p>There are at most 32767 states (16-bit signed short). Could get away with byte sometimes but would have to generate different types and the simulation code too. For a point of reference, the Java lexer's Tokens rule DFA has 326 states roughly. </p> <p class="reference">References <a class="el" href="antlr3exception_8h.html#af9f9a16af9cbc9902e368b3e6f0e21f4">ANTLR3_NO_VIABLE_ALT_EXCEPTION</a>, <a class="el" href="antlr3errors_8h.html#a8cfcfbce03f3039eb35d87f97105dc1b">ANTLR3_TRUE</a>, <a class="el" href="struct_a_n_t_l_r3___r_e_c_o_g_n_i_z_e_r___s_h_a_r_e_d___s_t_a_t_e__struct.html#ab1ca55111efc551cf9e0446839a70b64">ANTLR3_RECOGNIZER_SHARED_STATE_struct::backtracking</a>, <a class="el" href="struct_a_n_t_l_r3___e_x_c_e_p_t_i_o_n__struct.html#ada63a81c5e1e92235b553efc064d8998">ANTLR3_EXCEPTION_struct::decisionNum</a>, <a class="el" href="struct_a_n_t_l_r3___c_y_c_l_i_c___d_f_a__struct.html#a05be0e9321d8b6b9702cda3b34fe9834">ANTLR3_CYCLIC_DFA_struct::decisionNumber</a>, <a class="el" href="struct_a_n_t_l_r3___c_y_c_l_i_c___d_f_a__struct.html#a2ea19b86bf05014f68fa9ca3ecc760dc">ANTLR3_CYCLIC_DFA_struct::description</a>, <a class="el" href="struct_a_n_t_l_r3___r_e_c_o_g_n_i_z_e_r___s_h_a_r_e_d___s_t_a_t_e__struct.html#ad1cf97a94bd235db56fddaf3294e5bc5">ANTLR3_RECOGNIZER_SHARED_STATE_struct::exception</a>, <a class="el" href="struct_a_n_t_l_r3___b_a_s_e___r_e_c_o_g_n_i_z_e_r__struct.html#a8abc297f5f9410bddd7b8621a240091b">ANTLR3_BASE_RECOGNIZER_struct::exConstruct</a>, <a class="el" href="struct_a_n_t_l_r3___r_e_c_o_g_n_i_z_e_r___s_h_a_r_e_d___s_t_a_t_e__struct.html#a27b7db600ef34d48b62eb0975cb0eb10">ANTLR3_RECOGNIZER_SHARED_STATE_struct::failed</a>, <a class="el" href="struct_a_n_t_l_r3___e_x_c_e_p_t_i_o_n__struct.html#adc72029eff78016a0d31355db228ade0">ANTLR3_EXCEPTION_struct::message</a>, <a class="el" href="struct_a_n_t_l_r3___t_r_e_e___p_a_r_s_e_r__struct.html#a2c91ea97da3628675b73dfd0818f697c">ANTLR3_TREE_PARSER_struct::rec</a>, <a class="el" href="struct_a_n_t_l_r3___b_a_s_e___r_e_c_o_g_n_i_z_e_r__struct.html#aff56a30644716edb24915f621b6df701">ANTLR3_BASE_RECOGNIZER_struct::state</a>, <a class="el" href="struct_a_n_t_l_r3___e_x_c_e_p_t_i_o_n__struct.html#a6161406e61e64bccc6d97bd0230231d7">ANTLR3_EXCEPTION_struct::state</a>, and <a class="el" href="struct_a_n_t_l_r3___e_x_c_e_p_t_i_o_n__struct.html#a3ffd8f9801f34b7168519896061233e1">ANTLR3_EXCEPTION_struct::type</a>.</p> <p class="reference">Referenced by <a class="el" href="antlr3defs_8h.html#a06b669c119c3421298972433404eff5a">antlr3dfapredict()</a>.</p> <div class="dynheader"> Here is the caller graph for this function:</div> <div class="dyncontent"> <div class="center"><img src="antlr3cyclicdfa_8c_aed9eeb80fb9d0863341c843c7f2dc1c8_icgraph.png" border="0" usemap="#antlr3cyclicdfa_8c_aed9eeb80fb9d0863341c843c7f2dc1c8_icgraph" alt=""/></div> <map name="antlr3cyclicdfa_8c_aed9eeb80fb9d0863341c843c7f2dc1c8_icgraph" id="antlr3cyclicdfa_8c_aed9eeb80fb9d0863341c843c7f2dc1c8_icgraph"> <area shape="rect" title="Support functions for traversing cyclic DFA states as laid out in static initialized structures by th..." alt="" coords="175,5,269,32"/> <area shape="rect" href="antlr3defs_8h.html#a06b669c119c3421298972433404eff5a" title="From the input stream, predict what alternative will succeed using this DFA (representing the coverin..." alt="" coords="5,5,127,32"/> </map> </div> </div> </div> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="antlr3cyclicdfa_8c.html">antlr3cyclicdfa.c</a></li> <li class="footer">Generated on Fri May 3 2019 05:59:11 for ANTLR3C by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li> </ul> </div> </body> </html>