• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>Parser Directives</title>
5<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7<link rel="home" href="../../../index.html" title="Spirit 2.5.8">
8<link rel="up" href="../reference.html" title="Reference">
9<link rel="prev" href="char/char_class.html" title="Character Classification Parsers (alnum, digit, etc.)">
10<link rel="next" href="directive/lexeme.html" title="Parser Directive Inhibiting Skipping (lexeme[])">
11</head>
12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13<table cellpadding="2" width="100%"><tr>
14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td>
15<td align="center"><a href="../../../../../../../index.html">Home</a></td>
16<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td>
17<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19<td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
20</tr></table>
21<hr>
22<div class="spirit-nav">
23<a accesskey="p" href="char/char_class.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="directive/lexeme.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="section">
26<div class="titlepage"><div><div><h4 class="title">
27<a name="spirit.qi.reference.directive"></a><a class="link" href="directive.html" title="Parser Directives">Parser Directives</a>
28</h4></div></div></div>
29<div class="toc"><dl class="toc">
30<dt><span class="section"><a href="directive/lexeme.html">Parser Directive
31          Inhibiting Skipping (<code class="computeroutput"><span class="identifier">lexeme</span><span class="special">[]</span></code>)</a></span></dt>
32<dt><span class="section"><a href="directive/no_skip.html">Parser Directive
33          Inhibiting Skipping Without Pre-skip (<code class="computeroutput"><span class="identifier">no_skip</span><span class="special">[]</span></code>)</a></span></dt>
34<dt><span class="section"><a href="directive/no_case.html">Parser Directive
35          Inhibiting Case Sensitivity (<code class="computeroutput"><span class="identifier">no_case</span><span class="special">[]</span></code>)</a></span></dt>
36<dt><span class="section"><a href="directive/omit.html">Parser Directive
37          Ignoring Attribute (<code class="computeroutput"><span class="identifier">omit</span><span class="special">[]</span></code>)</a></span></dt>
38<dt><span class="section"><a href="directive/raw.html">Directive for
39          Transduction Parsing (<code class="computeroutput"><span class="identifier">raw</span><span class="special">[]</span></code>)</a></span></dt>
40<dt><span class="section"><a href="directive/repeat.html">Repetition
41          Parser Directive (<code class="computeroutput"><span class="identifier">repeat</span><span class="special">[]</span></code>)</a></span></dt>
42<dt><span class="section"><a href="directive/matches.html">Directive
43          Testing if Parser Succeeded (<code class="computeroutput"><span class="identifier">matches</span><span class="special">[]</span></code>)</a></span></dt>
44<dt><span class="section"><a href="directive/skip.html">Parser Directive
45          Re-Establishing Skipping (<code class="computeroutput"><span class="identifier">skip</span><span class="special">[]</span></code>)</a></span></dt>
46<dt><span class="section"><a href="directive/hold.html">Parser Directive
47          for Attribute Commit/Rollback (<code class="computeroutput"><span class="identifier">hold</span><span class="special">[]</span></code>)</a></span></dt>
48<dt><span class="section"><a href="directive/as.html">Parser Directives
49          Forcing Atomic Assignment (<code class="computeroutput"><span class="identifier">as</span><span class="special">&lt;</span><span class="identifier">T</span><span class="special">&gt;,</span> <span class="identifier">as_string</span><span class="special">[],</span> <span class="identifier">as_wstring</span><span class="special">[]</span></code>)</a></span></dt>
50<dt><span class="section"><a href="directive/expect.html">Expectation
51          Directive (<code class="computeroutput"><span class="identifier">expect</span><span class="special">[]</span></code>)</a></span></dt>
52</dl></div>
53<p>
54          This module includes different directives usable to augment and parameterize
55          other parsers. It includes the <code class="computeroutput"><span class="identifier">no_case</span></code>,
56          <code class="computeroutput"><span class="identifier">lexeme</span></code>, <code class="computeroutput"><span class="identifier">omit</span></code>,
57          <code class="computeroutput"><span class="identifier">raw</span></code>, <code class="computeroutput"><span class="identifier">repeat</span></code>,
58          <code class="computeroutput"><span class="identifier">matches</span></code>, <code class="computeroutput"><span class="identifier">no_skip</span></code>, <code class="computeroutput"><span class="identifier">skip</span></code>,
59          <code class="computeroutput"><span class="identifier">hold</span></code>, <code class="computeroutput"><span class="identifier">as</span><span class="special">&lt;</span><span class="identifier">T</span><span class="special">&gt;</span></code>, <code class="computeroutput"><span class="identifier">as_string</span></code>
60          and <code class="computeroutput"><span class="identifier">as_wstring</span></code> directives.
61        </p>
62<h6>
63<a name="spirit.qi.reference.directive.h0"></a>
64          <span class="phrase"><a name="spirit.qi.reference.directive.module_header"></a></span><a class="link" href="directive.html#spirit.qi.reference.directive.module_header">Module
65          Header</a>
66        </h6>
67<pre class="programlisting"><span class="comment">// forwards to &lt;boost/spirit/home/qi/directive.hpp&gt;</span>
68<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">spirit</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">qi_directive</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
69</pre>
70<p>
71          Also, see <a class="link" href="../../structure/include.html" title="Include">Include Structure</a>.
72        </p>
73</div>
74<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
75<td align="left"></td>
76<td align="right"><div class="copyright-footer">Copyright © 2001-2011 Joel de Guzman, Hartmut Kaiser<p>
77        Distributed under the Boost Software License, Version 1.0. (See accompanying
78        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
79      </p>
80</div></td>
81</tr></table>
82<hr>
83<div class="spirit-nav">
84<a accesskey="p" href="char/char_class.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="directive/lexeme.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
85</div>
86</body>
87</html>
88