Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > f6ec3de51c94922f2240c0767594dcf5 > files > 1638

antlr3-C-docs-3.2-14.fc15.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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"/>
<title>ANTLR3C: src/antlr3exception.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.3 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">ANTLR3C&#160;<span id="projectnumber">3.1.2</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('antlr3exception_8c.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<h1>antlr3exception.c File Reference</h1>  </div>
</div>
<div class="contents">

<p>Contains default functions for creating and destroying as well as otherwise handling ANTLR3 standard exception structures.  
<a href="#_details">More...</a></p>
<div class="textblock"><code>#include &lt;antlr3exception.h&gt;</code><br/>
</div><div class="textblock"><div class="dynheader">
Include dependency graph for antlr3exception.c:</div>
<div class="dyncontent">
<div class="center"><img src="antlr3exception_8c__incl.png" border="0" usemap="#src_2antlr3exception_8c" alt=""/></div>
<map name="src_2antlr3exception_8c" id="src_2antlr3exception_8c">
</map>
</div>
</div><table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="antlr3exception_8c.html#a21c30f7a44edd55f154d2cfaafb0fd8a">antlr3ExceptionFree</a> (<a class="el" href="struct_a_n_t_l_r3___e_x_c_e_p_t_i_o_n__struct.html">pANTLR3_EXCEPTION</a> ex)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Frees up a chain of ANTLR3 exceptions.  <a href="#a21c30f7a44edd55f154d2cfaafb0fd8a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_a_n_t_l_r3___e_x_c_e_p_t_i_o_n__struct.html">pANTLR3_EXCEPTION</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="antlr3exception_8c.html#ad7bf558a3019636d779ebd281ab07450">antlr3ExceptionNew</a> (<a class="el" href="antlr3defs_8h.html#ac41f744abd0fd25144b9eb9d11b1dfd1">ANTLR3_UINT32</a> exception, void *name, void *message, <a class="el" href="antlr3defs_8h.html#a5b33dccbba3b7212539695e21df4079b">ANTLR3_BOOLEAN</a> freeMessage)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new ANTLR3 exception structure.  <a href="#ad7bf558a3019636d779ebd281ab07450"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="antlr3exception_8c.html#a193748f2d252beb17b1b0487ca77cb4f">antlr3ExceptionPrint</a> (<a class="el" href="struct_a_n_t_l_r3___e_x_c_e_p_t_i_o_n__struct.html">pANTLR3_EXCEPTION</a> ex)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Prints out the message in all the exceptions in the supplied chain.  <a href="#a193748f2d252beb17b1b0487ca77cb4f"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Contains default functions for creating and destroying as well as otherwise handling ANTLR3 standard exception structures. </p>
</div><hr/><h2>Function Documentation</h2>
<a class="anchor" id="a21c30f7a44edd55f154d2cfaafb0fd8a"></a><!-- doxytag: member="antlr3exception.c::antlr3ExceptionFree" ref="a21c30f7a44edd55f154d2cfaafb0fd8a" args="(pANTLR3_EXCEPTION ex)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void antlr3ExceptionFree </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_a_n_t_l_r3___e_x_c_e_p_t_i_o_n__struct.html">pANTLR3_EXCEPTION</a>&#160;</td>
          <td class="paramname"><em>ex</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Frees up a chain of ANTLR3 exceptions. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">ex</td><td>Pointer to the first exception in the chain to free.</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="antlr3exception_8h.html#a64f2b9c31425735f711348bc10bb56e1" title="Base structure for an ANTLR3 exception tracker.">ANTLR3_EXCEPTION</a> </dd></dl>

<p>References <a class="el" href="antlr3defs_8h.html#a6558340e5762ec9d464c2f5ff70d9b5f">ANTLR3_FREE</a>, <a class="el" href="antlr3errors_8h.html#a8cfcfbce03f3039eb35d87f97105dc1b">ANTLR3_TRUE</a>, <a class="el" href="struct_a_n_t_l_r3___e_x_c_e_p_t_i_o_n__struct.html#aa85c315545a87eea1688b5301ca03b19">ANTLR3_EXCEPTION_struct::custom</a>, <a class="el" href="struct_a_n_t_l_r3___e_x_c_e_p_t_i_o_n__struct.html#a94a8cffe5a17abac24efc432732ccfc4">ANTLR3_EXCEPTION_struct::freeCustom</a>, <a class="el" href="struct_a_n_t_l_r3___e_x_c_e_p_t_i_o_n__struct.html#aee1ea267a1e9432e0d4a8a04591a2735">ANTLR3_EXCEPTION_struct::freeMessage</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="antlr3rewritestreams_8c.html#a92c4d9fcaea24e9f6b4f658711bacc07">next()</a>, and <a class="el" href="struct_a_n_t_l_r3___e_x_c_e_p_t_i_o_n__struct.html#aa10dbef2cfd1b56448e18587e48bbccb">ANTLR3_EXCEPTION_struct::nextException</a>.</p>

<p>Referenced by <a class="el" href="antlr3defs_8h.html#a531349f2d4207f5ac71c35d056676565">antlr3ExceptionNew()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="antlr3exception_8c_a21c30f7a44edd55f154d2cfaafb0fd8a_cgraph.png" border="0" usemap="#antlr3exception_8c_a21c30f7a44edd55f154d2cfaafb0fd8a_cgraph" alt=""/></div>
<map name="antlr3exception_8c_a21c30f7a44edd55f154d2cfaafb0fd8a_cgraph" id="antlr3exception_8c_a21c30f7a44edd55f154d2cfaafb0fd8a_cgraph">
<area shape="rect" id="node3" href="antlr3rewritestreams_8c.html#a92c4d9fcaea24e9f6b4f658711bacc07" title="Return the next element in the stream." alt="" coords="268,5,329,32"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="antlr3exception_8c_a21c30f7a44edd55f154d2cfaafb0fd8a_icgraph.png" border="0" usemap="#antlr3exception_8c_a21c30f7a44edd55f154d2cfaafb0fd8a_icgraph" alt=""/></div>
<map name="antlr3exception_8c_a21c30f7a44edd55f154d2cfaafb0fd8a_icgraph" id="antlr3exception_8c_a21c30f7a44edd55f154d2cfaafb0fd8a_icgraph">
<area shape="rect" id="node3" href="antlr3defs_8h.html#a531349f2d4207f5ac71c35d056676565" title="Creates a new ANTLR3 exception structure." alt="" coords="267,119,469,145"/><area shape="rect" id="node5" href="group__p_a_n_t_l_r3___b_a_s_e___r_e_c_o_g_n_i_z_e_r.html#gab2d77cd376112c8ff6ed7353ba78dab7" title="antlr3RecognitionExceptionNew" alt="" coords="517,119,829,145"/><area shape="rect" id="node7" href="group__p_a_n_t_l_r3___b_a_s_e___r_e_c_o_g_n_i_z_e_r.html#ga974d33def91ba5fb5a6fa8e42c6d876e" title="Creates a new Mismatched Token Exception and inserts in the recognizer exception stack." alt="" coords="908,17,1129,44"/><area shape="rect" id="node24" href="group__p_a_n_t_l_r3___b_a_s_e___r_e_c_o_g_n_i_z_e_r.html#gaf8c302d1762b73b1a80c88ca71210472" title="Factor out what to do upon token mismatch so tree parsers can behave differently." alt="" coords="1273,68,1375,95"/><area shape="rect" id="node27" href="antlr3defs_8h.html#a9d7fa213a660c2e71f54c324a668e34f" title="Creates a new Mismatched Tree Nde Exception and inserts in the recognizer exception stack..." alt="" coords="1208,169,1440,196"/><area shape="rect" id="node31" href="group__p_a_n_t_l_r3___b_a_s_e___r_e_c_o_g_n_i_z_e_r.html#ga4876d181d8cca1dcee4ebc7b0d313b28" title="Attempt to recover from a single missing or extra token." alt="" coords="877,119,1160,145"/><area shape="rect" id="node34" href="antlr3lexer_8c.html#a3f121d133cb810a9687aee3089e33be8" title="setCharStream" alt="" coords="1539,208,1691,235"/><area shape="rect" id="node9" href="group__p_a_n_t_l_r3___b_a_s_e___r_e_c_o_g_n_i_z_e_r.html#ga5b539798327f965e6289a9f613515c9a" title="antlr3BaseRecognizerNew" alt="" coords="1489,93,1740,120"/><area shape="rect" id="node15" href="antlr3defs_8h.html#ae667dafdcef9adc2fceebc8420a7cded" title="antlr3ParserNew" alt="" coords="1840,5,2011,32"/><area shape="rect" id="node11" href="antlr3defs_8h.html#aad5d94a0ad6c1d4788f95debb67cf642" title="antlr3LexerNew" alt="" coords="1844,157,2007,184"/><area shape="rect" id="node21" href="antlr3defs_8h.html#a8a8b2581755eff523fb3d2e427bb9b3f" title="antlr3TreeParserNewStream" alt="" coords="1789,107,2061,133"/><area shape="rect" id="node13" href="antlr3defs_8h.html#acea4b4491be51f1d3f57d4d2836d9d0d" title="antlr3LexerNewStream" alt="" coords="2115,183,2336,209"/><area shape="rect" id="node17" href="antlr3defs_8h.html#abede6d25edd8b3e67f8aa6a5094b6f9c" title="antlr3ParserNewStream" alt="" coords="2109,5,2341,32"/><area shape="rect" id="node19" href="antlr3defs_8h.html#aba8e0e27ff9976bb757191bf45b7d49f" title="antlr3ParserNewStreamDbg" alt="" coords="2391,5,2652,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ad7bf558a3019636d779ebd281ab07450"></a><!-- doxytag: member="antlr3exception.c::antlr3ExceptionNew" ref="ad7bf558a3019636d779ebd281ab07450" args="(ANTLR3_UINT32 exception, void *name, void *message, ANTLR3_BOOLEAN freeMessage)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_a_n_t_l_r3___e_x_c_e_p_t_i_o_n__struct.html">pANTLR3_EXCEPTION</a> antlr3ExceptionNew </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="antlr3defs_8h.html#ac41f744abd0fd25144b9eb9d11b1dfd1">ANTLR3_UINT32</a>&#160;</td>
          <td class="paramname"><em>exception</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="antlr3defs_8h.html#a5b33dccbba3b7212539695e21df4079b">ANTLR3_BOOLEAN</a>&#160;</td>
          <td class="paramname"><em>freeMessage</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a new ANTLR3 exception structure. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">exception</td><td>One of the ANTLR3_xxx_EXCEPTION indicators such as <a class="el" href="antlr3exception_8h.html#ac7143b1162dc22a4a7ec575162fc7517" title="Indicates that the recognizer received a token in the input that was not predicted.">ANTLR3_RECOGNITION_EXCEPTION</a></td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">message</td><td>Pointer to message string</td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">freeMessage</td><td>Set to ANTLR3_TRUE if the message parameter should be freed by a call to <a class="el" href="antlr3defs_8h.html#a6558340e5762ec9d464c2f5ff70d9b5f" title="Default definition of ANTLR3_FREE.">ANTLR3_FREE()</a> when the exception is destroyed.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Pointer to newly initialized exception structure, or an ANTLR3_ERR_xx defined value upon failure.</dd></dl>
<p>An exception is 'thrown' by a recognizer when input is seen that is not predicted by the grammar productions or when some other error condition occurs. In C we do not have the luxury of try and catch blocks, so exceptions are added in the order they occur to a list in the baserecognizer structure. The last one to be thrown is inserted at the head of the list and the one currently installed is pointed to by the newly installed exception.</p>
<dl class="remark"><dt><b>Remarks:</b></dt><dd>After an exception is created, you may add a pointer to your own structure and a pointer to a function to free this structure when the exception is destroyed.</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="antlr3exception_8h.html#a64f2b9c31425735f711348bc10bb56e1" title="Base structure for an ANTLR3 exception tracker.">ANTLR3_EXCEPTION</a> </dd></dl>

<p>References <a class="el" href="antlr3defs_8h.html#ab14376fa4b3a6ffe41ba76e897824767">ANTLR3_CALLOC</a>, <a class="el" href="antlr3exception_8c.html#a21c30f7a44edd55f154d2cfaafb0fd8a">antlr3ExceptionFree()</a>, <a class="el" href="antlr3exception_8c.html#a193748f2d252beb17b1b0487ca77cb4f">antlr3ExceptionPrint()</a>, <a class="el" href="struct_a_n_t_l_r3___e_x_c_e_p_t_i_o_n__struct.html#a75c2b86b3a43c5973f82e7e0a19ac4b4">ANTLR3_EXCEPTION_struct::freeEx</a>, <a class="el" href="struct_a_n_t_l_r3___e_x_c_e_p_t_i_o_n__struct.html#aee1ea267a1e9432e0d4a8a04591a2735">ANTLR3_EXCEPTION_struct::freeMessage</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___e_x_c_e_p_t_i_o_n__struct.html#a4ea5bbfb664b0b56817c4b0e899190f8">ANTLR3_EXCEPTION_struct::name</a>, <a class="el" href="struct_a_n_t_l_r3___e_x_c_e_p_t_i_o_n__struct.html#a1b5513423bdabac1b5bfd00aa74b7cd0">ANTLR3_EXCEPTION_struct::print</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>Referenced by <a class="el" href="group__p_a_n_t_l_r3___b_a_s_e___r_e_c_o_g_n_i_z_e_r.html#gab2d77cd376112c8ff6ed7353ba78dab7">antlr3RecognitionExceptionNew()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="antlr3exception_8c_ad7bf558a3019636d779ebd281ab07450_cgraph.png" border="0" usemap="#antlr3exception_8c_ad7bf558a3019636d779ebd281ab07450_cgraph" alt=""/></div>
<map name="antlr3exception_8c_ad7bf558a3019636d779ebd281ab07450_cgraph" id="antlr3exception_8c_ad7bf558a3019636d779ebd281ab07450_cgraph">
<area shape="rect" id="node3" href="antlr3exception_8c.html#a21c30f7a44edd55f154d2cfaafb0fd8a" title="Frees up a chain of ANTLR3 exceptions." alt="" coords="263,5,473,32"/><area shape="rect" id="node7" href="antlr3exception_8c.html#a193748f2d252beb17b1b0487ca77cb4f" title="Prints out the message in all the exceptions in the supplied chain." alt="" coords="257,56,479,83"/><area shape="rect" id="node5" href="antlr3rewritestreams_8c.html#a92c4d9fcaea24e9f6b4f658711bacc07" title="Return the next element in the stream." alt="" coords="529,5,591,32"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="antlr3exception_8c_ad7bf558a3019636d779ebd281ab07450_icgraph.png" border="0" usemap="#antlr3exception_8c_ad7bf558a3019636d779ebd281ab07450_icgraph" alt=""/></div>
<map name="antlr3exception_8c_ad7bf558a3019636d779ebd281ab07450_icgraph" id="antlr3exception_8c_ad7bf558a3019636d779ebd281ab07450_icgraph">
<area shape="rect" id="node3" href="group__p_a_n_t_l_r3___b_a_s_e___r_e_c_o_g_n_i_z_e_r.html#gab2d77cd376112c8ff6ed7353ba78dab7" title="antlr3RecognitionExceptionNew" alt="" coords="256,119,568,145"/><area shape="rect" id="node5" href="group__p_a_n_t_l_r3___b_a_s_e___r_e_c_o_g_n_i_z_e_r.html#ga974d33def91ba5fb5a6fa8e42c6d876e" title="Creates a new Mismatched Token Exception and inserts in the recognizer exception stack." alt="" coords="647,17,868,44"/><area shape="rect" id="node22" href="group__p_a_n_t_l_r3___b_a_s_e___r_e_c_o_g_n_i_z_e_r.html#gaf8c302d1762b73b1a80c88ca71210472" title="Factor out what to do upon token mismatch so tree parsers can behave differently." alt="" coords="1012,68,1113,95"/><area shape="rect" id="node25" href="antlr3defs_8h.html#a9d7fa213a660c2e71f54c324a668e34f" title="Creates a new Mismatched Tree Nde Exception and inserts in the recognizer exception stack..." alt="" coords="947,169,1179,196"/><area shape="rect" id="node29" href="group__p_a_n_t_l_r3___b_a_s_e___r_e_c_o_g_n_i_z_e_r.html#ga4876d181d8cca1dcee4ebc7b0d313b28" title="Attempt to recover from a single missing or extra token." alt="" coords="616,119,899,145"/><area shape="rect" id="node32" href="antlr3lexer_8c.html#a3f121d133cb810a9687aee3089e33be8" title="setCharStream" alt="" coords="1277,208,1429,235"/><area shape="rect" id="node7" href="group__p_a_n_t_l_r3___b_a_s_e___r_e_c_o_g_n_i_z_e_r.html#ga5b539798327f965e6289a9f613515c9a" title="antlr3BaseRecognizerNew" alt="" coords="1228,93,1479,120"/><area shape="rect" id="node13" href="antlr3defs_8h.html#ae667dafdcef9adc2fceebc8420a7cded" title="antlr3ParserNew" alt="" coords="1579,5,1749,32"/><area shape="rect" id="node9" href="antlr3defs_8h.html#aad5d94a0ad6c1d4788f95debb67cf642" title="antlr3LexerNew" alt="" coords="1583,157,1745,184"/><area shape="rect" id="node19" href="antlr3defs_8h.html#a8a8b2581755eff523fb3d2e427bb9b3f" title="antlr3TreeParserNewStream" alt="" coords="1528,107,1800,133"/><area shape="rect" id="node11" href="antlr3defs_8h.html#acea4b4491be51f1d3f57d4d2836d9d0d" title="antlr3LexerNewStream" alt="" coords="1853,183,2075,209"/><area shape="rect" id="node15" href="antlr3defs_8h.html#abede6d25edd8b3e67f8aa6a5094b6f9c" title="antlr3ParserNewStream" alt="" coords="1848,5,2080,32"/><area shape="rect" id="node17" href="antlr3defs_8h.html#aba8e0e27ff9976bb757191bf45b7d49f" title="antlr3ParserNewStreamDbg" alt="" coords="2129,5,2391,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a193748f2d252beb17b1b0487ca77cb4f"></a><!-- doxytag: member="antlr3exception.c::antlr3ExceptionPrint" ref="a193748f2d252beb17b1b0487ca77cb4f" args="(pANTLR3_EXCEPTION ex)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void antlr3ExceptionPrint </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_a_n_t_l_r3___e_x_c_e_p_t_i_o_n__struct.html">pANTLR3_EXCEPTION</a>&#160;</td>
          <td class="paramname"><em>ex</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Prints out the message in all the exceptions in the supplied chain. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">ex</td><td>Pointer to the exception structure to print.</td></tr>
  </table>
  </dd>
</dl>
<dl class="remark"><dt><b>Remarks:</b></dt><dd>You may wish to override this function by installing a pointer to a new function in the base recognizer context structure.</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><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#gac1374f941ff00f5709ca1e682d9f8e43" title="Base tracking context structure for all types of recognizers.">ANTLR3_BASE_RECOGNIZER</a> </dd></dl>

<p>References <a class="el" href="antlr3defs_8h.html#a27cc6fe6e2b9ed95c34ccbcf85149361">ANTLR3_FPRINTF</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___e_x_c_e_p_t_i_o_n__struct.html#aa10dbef2cfd1b56448e18587e48bbccb">ANTLR3_EXCEPTION_struct::nextException</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>Referenced by <a class="el" href="antlr3defs_8h.html#a531349f2d4207f5ac71c35d056676565">antlr3ExceptionNew()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="antlr3exception_8c_a193748f2d252beb17b1b0487ca77cb4f_icgraph.png" border="0" usemap="#antlr3exception_8c_a193748f2d252beb17b1b0487ca77cb4f_icgraph" alt=""/></div>
<map name="antlr3exception_8c_a193748f2d252beb17b1b0487ca77cb4f_icgraph" id="antlr3exception_8c_a193748f2d252beb17b1b0487ca77cb4f_icgraph">
<area shape="rect" id="node3" href="antlr3defs_8h.html#a531349f2d4207f5ac71c35d056676565" title="Creates a new ANTLR3 exception structure." alt="" coords="277,119,480,145"/><area shape="rect" id="node5" href="group__p_a_n_t_l_r3___b_a_s_e___r_e_c_o_g_n_i_z_e_r.html#gab2d77cd376112c8ff6ed7353ba78dab7" title="antlr3RecognitionExceptionNew" alt="" coords="528,119,840,145"/><area shape="rect" id="node7" href="group__p_a_n_t_l_r3___b_a_s_e___r_e_c_o_g_n_i_z_e_r.html#ga974d33def91ba5fb5a6fa8e42c6d876e" title="Creates a new Mismatched Token Exception and inserts in the recognizer exception stack." alt="" coords="919,17,1140,44"/><area shape="rect" id="node24" href="group__p_a_n_t_l_r3___b_a_s_e___r_e_c_o_g_n_i_z_e_r.html#gaf8c302d1762b73b1a80c88ca71210472" title="Factor out what to do upon token mismatch so tree parsers can behave differently." alt="" coords="1284,68,1385,95"/><area shape="rect" id="node27" href="antlr3defs_8h.html#a9d7fa213a660c2e71f54c324a668e34f" title="Creates a new Mismatched Tree Nde Exception and inserts in the recognizer exception stack..." alt="" coords="1219,169,1451,196"/><area shape="rect" id="node31" href="group__p_a_n_t_l_r3___b_a_s_e___r_e_c_o_g_n_i_z_e_r.html#ga4876d181d8cca1dcee4ebc7b0d313b28" title="Attempt to recover from a single missing or extra token." alt="" coords="888,119,1171,145"/><area shape="rect" id="node34" href="antlr3lexer_8c.html#a3f121d133cb810a9687aee3089e33be8" title="setCharStream" alt="" coords="1549,208,1701,235"/><area shape="rect" id="node9" href="group__p_a_n_t_l_r3___b_a_s_e___r_e_c_o_g_n_i_z_e_r.html#ga5b539798327f965e6289a9f613515c9a" title="antlr3BaseRecognizerNew" alt="" coords="1500,93,1751,120"/><area shape="rect" id="node15" href="antlr3defs_8h.html#ae667dafdcef9adc2fceebc8420a7cded" title="antlr3ParserNew" alt="" coords="1851,5,2021,32"/><area shape="rect" id="node11" href="antlr3defs_8h.html#aad5d94a0ad6c1d4788f95debb67cf642" title="antlr3LexerNew" alt="" coords="1855,157,2017,184"/><area shape="rect" id="node21" href="antlr3defs_8h.html#a8a8b2581755eff523fb3d2e427bb9b3f" title="antlr3TreeParserNewStream" alt="" coords="1800,107,2072,133"/><area shape="rect" id="node13" href="antlr3defs_8h.html#acea4b4491be51f1d3f57d4d2836d9d0d" title="antlr3LexerNewStream" alt="" coords="2125,183,2347,209"/><area shape="rect" id="node17" href="antlr3defs_8h.html#abede6d25edd8b3e67f8aa6a5094b6f9c" title="antlr3ParserNewStream" alt="" coords="2120,5,2352,32"/><area shape="rect" id="node19" href="antlr3defs_8h.html#aba8e0e27ff9976bb757191bf45b7d49f" title="antlr3ParserNewStreamDbg" alt="" coords="2401,5,2663,32"/></map>
</div>
</p>

</div>
</div>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="antlr3exception_8c.html">antlr3exception.c</a>      </li>
      <li class="footer">Generated on Tue Feb 8 2011 for ANTLR3C by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </li>
    </ul>
  </div>

</body>
</html>