⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 glib-lexical-scanner.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<td>the symbol to add.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>value</code></em>&#160;:</span></p></td><td>the value of the symbol.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3084093"></a><h3><a name="g-scanner-remove-symbol"></a>g_scanner_remove_symbol()</h3><a class="indexterm" name="id3084109"></a><pre class="programlisting">#define             g_scanner_remove_symbol( scanner, symbol )</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">g_scanner_remove_symbol</code> has been deprecated since version 2.2 and should not be used in newly-written code. Use <a class="link" href="glib-Lexical-Scanner.html#g-scanner-scope-remove-symbol"><code class="function">g_scanner_scope_remove_symbol()</code></a> instead.</p></div><p>Removes a symbol from the default scope.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>scanner</code></em>&#160;:</span></p></td><td>a <a class="link" href="glib-Lexical-Scanner.html#GScanner"><span class="type">GScanner</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>symbol</code></em>&#160;:</span></p></td><td>the symbol to remove.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3084190"></a><h3><a name="g-scanner-foreach-symbol"></a>g_scanner_foreach_symbol()</h3><a class="indexterm" name="id3084206"></a><pre class="programlisting">#define             g_scanner_foreach_symbol( scanner, func, data )</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">g_scanner_foreach_symbol</code> has been deprecated since version 2.2 and should not be used in newly-written code. Use <a class="link" href="glib-Lexical-Scanner.html#g-scanner-scope-foreach-symbol"><code class="function">g_scanner_scope_foreach_symbol()</code></a> instead.</p></div><p>Calls a function for each symbol in the default scope.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>scanner</code></em>&#160;:</span></p></td><td>a <a class="link" href="glib-Lexical-Scanner.html#GScanner"><span class="type">GScanner</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>func</code></em>&#160;:</span></p></td><td>the function to call with each symbol.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td><td>data to pass to the function.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3084302"></a><h3><a name="g-scanner-freeze-symbol-table"></a>g_scanner_freeze_symbol_table()</h3><a class="indexterm" name="id3084318"></a><pre class="programlisting">#define             g_scanner_freeze_symbol_table(scanner)</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">g_scanner_freeze_symbol_table</code> has been deprecated since version 2.2 and should not be used in newly-written code. This macro does nothing.</p></div><p>There is no reason to use this macro, since it does nothing.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>scanner</code></em>&#160;:</span></p></td><td>a <a class="link" href="glib-Lexical-Scanner.html#GScanner"><span class="type">GScanner</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3084374"></a><h3><a name="g-scanner-thaw-symbol-table"></a>g_scanner_thaw_symbol_table()</h3><a class="indexterm" name="id3084391"></a><pre class="programlisting">#define             g_scanner_thaw_symbol_table(scanner)</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">g_scanner_thaw_symbol_table</code> has been deprecated since version 2.2 and should not be used in newly-written code. This macro does nothing.</p></div><p>There is no reason to use this macro, since it does nothing.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>scanner</code></em>&#160;:</span></p></td><td>a <a class="link" href="glib-Lexical-Scanner.html#GScanner"><span class="type">GScanner</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3084447"></a><h3><a name="g-scanner-lookup-symbol"></a>g_scanner_lookup_symbol ()</h3><a class="indexterm" name="id3084459"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gpointer">gpointer</a>            g_scanner_lookup_symbol             (<a class="link" href="glib-Lexical-Scanner.html#GScanner">GScanner</a> *scanner,                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *symbol);</pre><p>Looks up a symbol in the current scope and return its value. If thesymbol is not bound in the current scope, <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>scanner</code></em>&#160;:</span></p></td><td>a <a class="link" href="glib-Lexical-Scanner.html#GScanner"><span class="type">GScanner</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>symbol</code></em>&#160;:</span></p></td><td>the symbol to look up.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td>the value of <em class="parameter"><code>symbol</code></em> in the current scope, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>if <em class="parameter"><code>symbol</code></em> is not bound in the current scope.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3084581"></a><h3><a name="g-scanner-warn"></a>g_scanner_warn ()</h3><a class="indexterm" name="id3084594"></a><pre class="programlisting">void                g_scanner_warn                      (<a class="link" href="glib-Lexical-Scanner.html#GScanner">GScanner</a> *scanner,                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *format,                                                         ...);</pre><p>Outputs a warning message, via the <a class="link" href="glib-Lexical-Scanner.html#GScanner"><span class="type">GScanner</span></a> message handler.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>scanner</code></em>&#160;:</span></p></td><td>a <a class="link" href="glib-Lexical-Scanner.html#GScanner"><span class="type">GScanner</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>format</code></em>&#160;:</span></p></td><td>the message format. See the <code class="function"><code class="function">printf()</code></code>documentation.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em>&#160;:</span></p></td><td>the parameters to insert into the format string.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3084710"></a><h3><a name="g-scanner-error"></a>g_scanner_error ()</h3><a class="indexterm" name="id3084722"></a><pre class="programlisting">void                g_scanner_error                     (<a class="link" href="glib-Lexical-Scanner.html#GScanner">GScanner</a> *scanner,                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *format,                                                         ...);</pre><p>Outputs an error message, via the <a class="link" href="glib-Lexical-Scanner.html#GScanner"><span class="type">GScanner</span></a> message handler.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>scanner</code></em>&#160;:</span></p></td><td>a <a class="link" href="glib-Lexical-Scanner.html#GScanner"><span class="type">GScanner</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>format</code></em>&#160;:</span></p></td><td>the message format. See the <code class="function"><code class="function">printf()</code></code>documentation.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em>&#160;:</span></p></td><td>the parameters to insert into the format string.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3084836"></a><h3><a name="g-scanner-unexp-token"></a>g_scanner_unexp_token ()</h3><a class="indexterm" name="id3084849"></a><pre class="programlisting">void                g_scanner_unexp_token               (<a class="link" href="glib-Lexical-Scanner.html#GScanner">GScanner</a> *scanner,                                                         <a class="link" href="glib-Lexical-Scanner.html#GTokenType">GTokenType</a> expected_token,                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *identifier_spec,                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *symbol_spec,                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *symbol_name,                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *message,                                                         <a class="link" href="glib-Basic-Types.html#gint">gint</a> is_error);</pre><p>Outputs a message through the scanner's msg_handler, resulting from anunexpected token in the input stream.Note that you should not call <a class="link" href="glib-Lexical-Scanner.html#g-scanner-peek-next-token"><code class="function">g_scanner_peek_next_token()</code></a> followed by<a class="link" href="glib-Lexical-Scanner.html#g-scanner-unexp-token"><code class="function">g_scanner_unexp_token()</code></a> without an intermediate call to<a class="link" href="glib-Lexical-Scanner.html#g-scanner-get-next-token"><code class="function">g_scanner_get_next_token()</code></a>, as <a class="link" href="glib-Lexical-Scanner.html#g-scanner-unexp-token"><code class="function">g_scanner_unexp_token()</code></a> evaluates thescanner's current token (not the peeked token) to construct partof the message.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>scanner</code></em>&#160;:</span></p></td><td>a <a class="link" href="glib-Lexical-Scanner.html#GScanner"><span class="type">GScanner</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>expected_token</code></em>&#160;:</span></p></td><td>the expected token.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>identifier_spec</code></em>&#160;:</span></p></td><td>a string describing how the sca

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -