2
0
mirror of https://github.com/boostorg/parser.git synced 2026-01-20 04:42:22 +00:00

102 Commits

Author SHA1 Message Date
Zach Laine
1cdf8a246a Update docs. 2024-10-03 20:09:21 -05:00
Zach Laine
4fc75eb97a Merge branch 'develop' into gh-pages 2024-10-03 20:07:51 -05:00
Zach Laine
554e7e3ae1 Update docs. 2024-03-31 20:19:48 -05:00
Zach Laine
35f2bcd02d Merge branch 'master' into gh-pages 2024-03-31 20:13:07 -05:00
Zach Laine
c7baa5f65a Update docs. 2024-03-24 22:54:37 -05:00
Zach Laine
9282349144 Revert "Add/update b2 build for docs and tests."
This reverts commit d34cc345bb.
2024-03-24 22:49:57 -05:00
Zach Laine
c31e81714c Merge branch 'master' into gh-pages 2024-03-24 22:49:18 -05:00
Zach Laine
669399ac2a Update docs. 2024-03-23 16:03:32 -05:00
Zach Laine
9052813304 Merge branch 'master' into gh-pages 2024-03-23 16:02:38 -05:00
Zach Laine
48f12beb7b Update docs. 2024-03-15 16:22:52 -05:00
Zach Laine
656638e53f Merge branch 'master' into gh-pages 2024-03-15 16:20:56 -05:00
Zach Laine
dc00670126 Add .nojekyll. 2024-02-23 21:03:14 -06:00
Zach Laine
93a13630eb Update docs. 2024-02-11 16:56:00 -06:00
Zach Laine
784a325f82 Merge branch 'master' into gh-pages 2024-02-11 16:55:38 -06:00
Zach Laine
99d194fece Merge branch 'master' into gh-pages 2024-02-04 16:17:21 -06:00
Zach Laine
e4cc4c3335 Update docs. 2024-01-31 20:53:22 -06:00
Zach Laine
6619e6bf76 Merge branch 'master' into gh-pages 2024-01-31 20:52:55 -06:00
Zach Laine
0072bd036c Update docs. 2024-01-30 17:44:40 -06:00
Zach Laine
328b8a7cc5 Merge branch 'master' into gh-pages 2024-01-30 17:44:13 -06:00
Zach Laine
da8a018134 Update docs. 2024-01-28 20:55:54 -06:00
Zach Laine
3f40a97608 Merge branch 'master' into gh-pages 2024-01-28 20:55:31 -06:00
Zach Laine
c40152afcc Update docs. 2024-01-28 16:40:27 -06:00
Zach Laine
0ce604ffba Merge branch 'master' into gh-pages 2024-01-28 16:40:05 -06:00
Zach Laine
8b52c00798 Update docs. 2024-01-22 21:52:17 -06:00
Zach Laine
bd95cdda44 Merge branch 'master' into gh-pages 2024-01-22 21:51:53 -06:00
Zach Laine
2ad78d479d Update docs. 2024-01-21 21:38:44 -06:00
Zach Laine
8ec480cb19 Merge branch 'master' into gh-pages 2024-01-21 21:38:20 -06:00
Zach Laine
ef6636166a Update docs. 2024-01-20 03:44:01 -06:00
Zach Laine
57df7a3f63 Merge branch 'master' into gh-pages 2024-01-20 03:43:29 -06:00
Zach Laine
9298cef3ef Update docs. 2024-01-19 21:19:01 -06:00
Zach Laine
1334d23875 Merge branch 'master' into gh-pages 2024-01-19 21:18:40 -06:00
Zach Laine
ff83e3170c Update docs. 2024-01-19 21:10:29 -06:00
Zach Laine
3f0781a40a Merge branch 'master' into gh-pages 2024-01-19 21:10:04 -06:00
Zach Laine
d7bdb4e08a Update docs. 2024-01-15 16:49:58 -06:00
Zach Laine
10650d782a Merge branch 'master' into gh-pages 2024-01-15 16:48:27 -06:00
Zach Laine
9494e5678a Update docs. 2024-01-15 16:45:55 -06:00
Zach Laine
bf0dd683be Merge branch 'master' into gh-pages 2024-01-15 16:45:31 -06:00
Zach Laine
66b93ab401 Add a note to the beginning of Attribute Generation about the assumption that
attribute types are semiregular.

Fixes #65.
2024-01-15 16:44:09 -06:00
Zach Laine
e15696ed90 Update docs. 2024-01-15 16:31:54 -06:00
Zach Laine
b195726911 Merge branch 'master' into gh-pages 2024-01-15 16:31:33 -06:00
Zach Laine
3879758d30 Update docs. 2024-01-15 02:29:54 -06:00
Zach Laine
eb75f29b5b Merge branch 'master' into gh-pages 2024-01-15 02:29:37 -06:00
Zach Laine
f5d8798ffd Update docs. 2024-01-14 20:59:31 -06:00
Zach Laine
170f1101c4 Merge branch 'master' into gh-pages 2024-01-14 20:58:59 -06:00
Zach Laine
959ff2f8cb Update docs. 2024-01-14 16:19:20 -06:00
Zach Laine
f097fbb3c7 Merge branch 'master' into gh-pages 2024-01-14 16:19:01 -06:00
Zach Laine
c406cf2ee1 Update docs. 2024-01-14 02:46:25 -06:00
Zach Laine
7bf7ea1993 Merge branch 'master' into gh-pages 2024-01-14 02:46:05 -06:00
Zach Laine
6ec9ca01e2 Update docs. 2024-01-11 19:27:23 -06:00
Zach Laine
b579644bf2 Merge branch 'master' into gh-pages 2024-01-11 19:26:59 -06:00
Zach Laine
663e3da450 Update docs. 2024-01-09 23:07:38 -06:00
Zach Laine
8865ebde9e Merge branch 'master' into gh-pages 2024-01-09 23:07:18 -06:00
Zach Laine
203c82c5c5 Update docs. 2024-01-07 22:55:53 -06:00
Zach Laine
3add8cb54d Merge branch 'master' into gh-pages 2024-01-07 22:55:36 -06:00
Zach Laine
877fb6433b Update docs. 2024-01-07 21:23:25 -06:00
Zach Laine
ca6e5a13df Merge branch 'master' into gh-pages 2024-01-07 21:22:46 -06:00
Zach Laine
89926ef65d html/Update docs. 2024-01-07 21:18:43 -06:00
Zach Laine
90063efa84 Merge branch 'master' into gh-pages 2024-01-07 21:18:06 -06:00
Zach Laine
121a5390b3 Merge branch 'master' into gh-pages 2024-01-07 20:48:23 -06:00
Zach Laine
64227fc441 Update docs. 2024-01-07 15:21:05 -06:00
Zach Laine
c8df813982 Merge branch 'master' into gh-pages 2024-01-07 15:20:44 -06:00
Zach Laine
426bfd236c Merge branch 'master' into gh-pages 2024-01-07 12:33:26 -06:00
Zach Laine
960e2eaf45 Update docs. 2024-01-07 01:16:38 -06:00
Zach Laine
ba2eacf34d Merge branch 'master' into gh-pages 2024-01-07 01:16:19 -06:00
Zach Laine
186a333f96 Update docs. 2024-01-07 00:54:15 -06:00
Zach Laine
946297f757 Merge branch 'master' into gh-pages 2024-01-07 00:53:45 -06:00
Zach Laine
9d9ca546cc Update docs. 2024-01-06 02:38:03 -06:00
Zach Laine
b8849c3eae Merge branch 'master' into gh-pages 2024-01-06 02:37:28 -06:00
Zach Laine
a2f02f1ab2 Update docs. 2024-01-03 23:50:46 -06:00
Zach Laine
c3d1e73092 Merge branch 'master' into gh-pages 2024-01-03 23:50:21 -06:00
Zach Laine
f2bf068f00 Update docs. 2024-01-03 02:05:49 -06:00
Zach Laine
de6584c663 Merge branch 'master' into gh-pages 2024-01-03 02:05:24 -06:00
Zach Laine
4f26a25db7 Update docs. 2024-01-01 15:37:49 -06:00
Zach Laine
052a593782 Merge branch 'master' into gh-pages 2024-01-01 15:37:26 -06:00
Zach Laine
8a02f10aed Update docs. 2023-12-30 21:05:58 -06:00
Zach Laine
14e17fa64a Merge branch 'master' into gh-pages 2023-12-30 21:05:28 -06:00
Zach Laine
144ac9c2c1 Update docs. 2023-12-30 16:25:22 -06:00
Zach Laine
6639d17e6c Merge branch 'master' into gh-pages 2023-12-30 16:24:40 -06:00
Zach Laine
6308a8b9b4 Update docs. 2023-12-29 14:06:19 -06:00
Zach Laine
0a3a043768 Merge branch 'master' into gh-pages 2023-12-29 14:05:36 -06:00
Zach Laine
98b8a4bb29 Update docs. 2023-12-23 13:48:22 -06:00
Zach Laine
46b4ae89a9 Merge branch 'master' into gh-pages 2023-12-23 13:47:57 -06:00
Zach Laine
454beb1903 Update docs. 2023-12-21 18:22:55 -06:00
Zach Laine
8327b38c47 Merge branch 'master' into gh-pages 2023-12-21 18:21:53 -06:00
Zach Laine
e9cd214ad2 Merge branch 'master' into gh-pages 2023-12-21 17:37:14 -06:00
Zach Laine
d09817df43 Update docs. 2023-12-03 19:22:08 -06:00
Zach Laine
898b8d487b Merge branch 'master' into gh-pages 2023-12-03 19:21:40 -06:00
Zach Laine
ba27e94262 Update docs. 2023-12-03 16:12:25 -06:00
Zach Laine
9155484652 Merge branch 'master' into gh-pages 2023-12-03 16:11:13 -06:00
Zach Laine
8c875c562f Merge branch 'master' into gh-pages 2023-12-03 15:24:58 -06:00
Zach Laine
2e65a9edcd Update docs. 2023-12-02 17:28:57 -06:00
Zach Laine
a2d6e6f628 Merge branch 'master' into gh-pages 2023-12-02 17:26:36 -06:00
Zach Laine
6e06f386a3 Merge branch 'master' into gh-pages 2023-12-02 14:21:15 -06:00
Zach Laine
4aea8691bd Update docs. 2022-07-23 13:42:59 -05:00
Zach Laine
ff314ee465 Merge branch 'master' into gh-pages 2022-07-23 13:42:26 -05:00
Zach Laine
f40be64876 Merge branch 'master' into gh-pages 2020-09-10 01:37:50 -05:00
Zach Laine
f28c4fc0b4 Update docs. 2020-09-10 01:34:47 -05:00
Zach Laine
ae2eeb10ff Merge branch 'master' into gh-pages 2020-09-10 01:33:53 -05:00
Zach Laine
6be9c6d4b0 Add top-level index.html 2020-09-08 00:29:29 -05:00
Zach Laine
891356117a Merge branch 'master' into gh-pages 2020-09-08 00:28:43 -05:00
Zach Laine
053a0f5d91 Merge branch 'master' into gh-pages 2020-09-08 00:23:11 -05:00
Zach Laine
046f594a32 Update docs. 2020-09-08 00:05:53 -05:00
316 changed files with 2771 additions and 14543 deletions

0
.nojekyll Normal file
View File

View File

@@ -22,6 +22,12 @@ target_link_libraries(boost_parser
Boost::type_index
)
if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt")
add_subdirectory(test)
endif()
else()
cmake_minimum_required(VERSION 3.14...3.20)

View File

@@ -34,7 +34,12 @@ int main()
}
```
This library is header-only, and has no Boost dependencies by default.
This library is header-only, and has a default dependency on Boost.Hana. The
Boost.Hana dependency can be eliminated, and `std::tuple` will be used instead
of `boost::hana::tuple` throughout the library, if you `#define`
`BOOST_PARSER_DISABLE_HANA_TUPLE`. To try out the lib without mseeing with
dependencies, add its `include/` dir as an include path in your build and
define `BOOST_PARSER_DISABLE_HANA_TUPLE` your build.
Features:
@@ -47,7 +52,9 @@ Features:
- Trace support for debugging your parsers.
- Clever hacks to make compile time errors easier to deal with. (These are totally optional.)
This library first appeared in Boost 1.87.0
This library targets submission to Boost.
Online docs: https://tzlaine.github.io/parser
Master status:

View File

@@ -100,9 +100,9 @@ boostbook standalone
<xsl:param>index.on.type=1
;
install css : [ glob /home/tzlaine/boost_1_83_0/doc/src/*.css ]
install css : [ glob $(BOOST_ROOT)/doc/src/*.css ]
: <location>html ;
install images : [ glob /home/tzlaine/boost_1_83_0/doc/src/images/*.png ]
install images : [ glob $(BOOST_ROOT)/doc/src/images/*.png ]
: <location>html/images ;
explicit css ;
explicit images ;

45
doc/Jamroot.jam Normal file
View File

@@ -0,0 +1,45 @@
#
# Copyright (c) 2006 João Abecasis
#
# Distributed under the Boost Software License, Version 1.0. (See
# accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
#
##
## IMPORTANT NOTE: This file MUST NOT be copied over a boost installation
##
path-constant top : . ;
import modules ;
import path ;
local boost-root = [ modules.peek : BOOST_ROOT ] ;
if ! $(boost-root)
{
local boost-search-dirs = [ modules.peek : BOOST_BUILD_PATH ] ;
for local dir in $(boost-search-dirs)
{
if [ path.glob $(dir)/../../../ : boost/version.hpp ]
{
boost-root += $(dir)/../../../ ;
}
}
if $(boost-root)
{
boost-root = [ path.make $(boost-root[1]) ] ;
}
else
{
ECHO "Warning: couldn't find BOOST_ROOT in" $(boost-root) ;
}
}
path-constant BOOST_ROOT : $(boost-root) ;
modules.poke : QUICKBOOK_ROOT : $(top) ;
use-project /boost : $(BOOST_ROOT) ;

View File

@@ -6,16 +6,16 @@
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="Chapter 1. Boost.Parser">
<link rel="up" href="header/boost/parser/config_hpp.html" title="Header &lt;boost/parser/config.hpp&gt;">
<link rel="prev" href="BOOST_PARSER_TOKEN_PO_id33.html" title="Macro BOOST_PARSER_TOKEN_POSITION_TYPE">
<link rel="prev" href="BOOST_PARSER_TRACE_TO_id32.html" title="Macro BOOST_PARSER_TRACE_TO_VS_OUTPUT">
<link rel="next" href="BOOST_PARSER_USE_CONCEPTS.html" title="Macro BOOST_PARSER_USE_CONCEPTS">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="spirit-nav">
<a accesskey="p" href="BOOST_PARSER_TOKEN_PO_id33.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="header/boost/parser/config_hpp.html"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="BOOST_PARSER_USE_CONCEPTS.html"><img src="images/next.png" alt="Next"></a>
<a accesskey="p" href="BOOST_PARSER_TRACE_TO_id32.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="header/boost/parser/config_hpp.html"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="BOOST_PARSER_USE_CONCEPTS.html"><img src="images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="BOOST_PARSER_ALGO_CON_id34"></a><div class="titlepage"></div>
<a name="BOOST_PARSER_ALGO_CON_id33"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Macro BOOST_PARSER_ALGO_CONSTEXPR</span></h2>
<p>BOOST_PARSER_ALGO_CONSTEXPR</p>
@@ -32,7 +32,7 @@
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="BOOST_PARSER_TOKEN_PO_id33.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="header/boost/parser/config_hpp.html"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="BOOST_PARSER_USE_CONCEPTS.html"><img src="images/next.png" alt="Next"></a>
<a accesskey="p" href="BOOST_PARSER_TRACE_TO_id32.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="header/boost/parser/config_hpp.html"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="BOOST_PARSER_USE_CONCEPTS.html"><img src="images/next.png" alt="Next"></a>
</div>
</body>
</html>

View File

@@ -25,7 +25,7 @@
</span>BOOST_PARSER_ASSERT(condition)</pre></div>
<div class="refsect1">
<a name="id31113"></a><h2>Description</h2>
<a name="id29145"></a><h2>Description</h2>
<p>Asserts that the given condition is true. If <code class="computeroutput">BOOST_PARSER_NO_RUNTIME_ASSERTIONS</code> macro is defined by the user, <code class="computeroutput">BOOST_PARSER_ASSERT</code> expends to a compile-time <code class="computeroutput">static_assert()</code>. Otherwise, it expands to a run-time <code class="computeroutput">BOOST_ASSERT()</code>. Note that defining <code class="computeroutput">BOOST_DISABLE_ASSERTS</code> disables the use of C <code class="computeroutput">assert</code>, even when <code class="computeroutput">BOOST_ASSERT</code> is unavailble. </p>
</div>
</div>

View File

@@ -25,7 +25,7 @@
</span>BOOST_PARSER_DEFINE_RULES(...)</pre></div>
<div class="refsect1">
<a name="id44559"></a><h2>Description</h2>
<a name="id39538"></a><h2>Description</h2>
<p>For each given token <code class="computeroutput">t</code>, defines a pair of <code class="computeroutput">parse_rule()</code> overloads, used internally within Boost.Parser. Each such pair implements the parsing behavior rule <code class="computeroutput">t</code>, using the parser <code class="computeroutput">t_def</code>. This implementation is in the form of a pair of function templates. You should therefore write this macro only at namespace scope. </p>
</div>
</div>

View File

@@ -1,38 +0,0 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Macro BOOST_PARSER_DIAGNOSTIC_PUSH</title>
<link rel="stylesheet" href="boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="Chapter 1. Boost.Parser">
<link rel="up" href="header/boost/parser/config_hpp.html" title="Header &lt;boost/parser/config.hpp&gt;">
<link rel="prev" href="BOOST_PARSER_TRACE_OSTREAM.html" title="Macro BOOST_PARSER_TRACE_OSTREAM">
<link rel="next" href="BOOST_PARSER_DIAGNOST_id36.html" title="Macro BOOST_PARSER_DIAGNOSTIC_POP">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="spirit-nav">
<a accesskey="p" href="BOOST_PARSER_TRACE_OSTREAM.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="header/boost/parser/config_hpp.html"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="BOOST_PARSER_DIAGNOST_id36.html"><img src="images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="BOOST_PARSER_DIAGNOST_id35"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Macro BOOST_PARSER_DIAGNOSTIC_PUSH</span></h2>
<p>BOOST_PARSER_DIAGNOSTIC_PUSH</p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="header/boost/parser/config_hpp.html" title="Header &lt;boost/parser/config.hpp&gt;">boost/parser/config.hpp</a>&gt;
</span>BOOST_PARSER_DIAGNOSTIC_PUSH</pre></div>
</div>
<div class="copyright-footer">Copyright © 2020 T. Zachary Laine<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="BOOST_PARSER_TRACE_OSTREAM.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="header/boost/parser/config_hpp.html"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="BOOST_PARSER_DIAGNOST_id36.html"><img src="images/next.png" alt="Next"></a>
</div>
</body>
</html>

View File

@@ -1,38 +0,0 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Macro BOOST_PARSER_DIAGNOSTIC_POP</title>
<link rel="stylesheet" href="boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="Chapter 1. Boost.Parser">
<link rel="up" href="header/boost/parser/config_hpp.html" title="Header &lt;boost/parser/config.hpp&gt;">
<link rel="prev" href="BOOST_PARSER_DIAGNOST_id35.html" title="Macro BOOST_PARSER_DIAGNOSTIC_PUSH">
<link rel="next" href="header/boost/parser/error_handling_hpp.html" title="Header &lt;boost/parser/error_handling.hpp&gt;">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="spirit-nav">
<a accesskey="p" href="BOOST_PARSER_DIAGNOST_id35.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="header/boost/parser/config_hpp.html"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="header/boost/parser/error_handling_hpp.html"><img src="images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="BOOST_PARSER_DIAGNOST_id36"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Macro BOOST_PARSER_DIAGNOSTIC_POP</span></h2>
<p>BOOST_PARSER_DIAGNOSTIC_POP</p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="header/boost/parser/config_hpp.html" title="Header &lt;boost/parser/config.hpp&gt;">boost/parser/config.hpp</a>&gt;
</span>BOOST_PARSER_DIAGNOSTIC_POP</pre></div>
</div>
<div class="copyright-footer">Copyright © 2020 T. Zachary Laine<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="BOOST_PARSER_DIAGNOST_id35.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="header/boost/parser/config_hpp.html"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="header/boost/parser/error_handling_hpp.html"><img src="images/next.png" alt="Next"></a>
</div>
</body>
</html>

View File

@@ -25,7 +25,7 @@
</span>BOOST_PARSER_DISABLE_CONCEPTS</pre></div>
<div class="refsect1">
<a name="id31133"></a><h2>Description</h2>
<a name="id29165"></a><h2>Description</h2>
<p>Boost.Parser will automatically use concepts to constrain templates when building in C++20 mode, if the compiler defines <code class="computeroutput">__cpp_lib_concepts</code>. To disable the use of concepts, define this macro. </p>
</div>
</div>

View File

@@ -25,7 +25,7 @@
</span>BOOST_PARSER_MAX_AGGREGATE_SIZE</pre></div>
<div class="refsect1">
<a name="id31162"></a><h2>Description</h2>
<a name="id29194"></a><h2>Description</h2>
<p>Boost.Parser automatically treats aggregate structs as if they were tuples. It uses some metaprogramming to do this. The technique used has a hard limit on the number of data members a struct can have. Re-define this macro to change the hard limit. Note that large values may increase compile times. </p>
</div>
</div>

View File

@@ -25,7 +25,7 @@
</span>BOOST_PARSER_NO_RUNTIME_ASSERTIONS</pre></div>
<div class="refsect1">
<a name="id31099"></a><h2>Description</h2>
<a name="id29131"></a><h2>Description</h2>
<p>Boost.Parser uses assertions (<code class="computeroutput">BOOST_ASSERT()</code>) in several places to indicate that your use of the library has an error in it. All of those places could heve instead been ill-formed code, caught at compile time. It is far quicker and easier to determine exactly where in your code such an error is located if this is a runtime failure; you can just look at the stack in your favorite debugger. However, if you want to make thes kinds of errors always ill-formed code, define this macro. </p>
</div>
</div>

View File

@@ -25,7 +25,7 @@
</span>BOOST_PARSER_SUBRANGE</pre></div>
<div class="refsect1">
<a name="id31175"></a><h2>Description</h2>
<a name="id29207"></a><h2>Description</h2>
<p>The subrange template that is used throughout Boost.Parser. This will be <code class="computeroutput"><a class="link" href="boost/parser/subrange.html" title="Struct template subrange">boost::parser::subrange</a></code> in C++17 builds, and <code class="computeroutput">std::ranges::subrange</code> in all other builds. </p>
</div>
</div>

View File

@@ -1,42 +0,0 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Macro BOOST_PARSER_TOKEN_POSITION_TYPE</title>
<link rel="stylesheet" href="boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="Chapter 1. Boost.Parser">
<link rel="up" href="header/boost/parser/config_hpp.html" title="Header &lt;boost/parser/config.hpp&gt;">
<link rel="prev" href="BOOST_PARSER_TRACE_TO_id32.html" title="Macro BOOST_PARSER_TRACE_TO_VS_OUTPUT">
<link rel="next" href="BOOST_PARSER_ALGO_CON_id34.html" title="Macro BOOST_PARSER_ALGO_CONSTEXPR">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="spirit-nav">
<a accesskey="p" href="BOOST_PARSER_TRACE_TO_id32.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="header/boost/parser/config_hpp.html"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="BOOST_PARSER_ALGO_CON_id34.html"><img src="images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="BOOST_PARSER_TOKEN_PO_id33"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Macro BOOST_PARSER_TOKEN_POSITION_TYPE</span></h2>
<p>BOOST_PARSER_TOKEN_POSITION_TYPE</p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="header/boost/parser/config_hpp.html" title="Header &lt;boost/parser/config.hpp&gt;">boost/parser/config.hpp</a>&gt;
</span>BOOST_PARSER_TOKEN_POSITION_TYPE</pre></div>
<div class="refsect1">
<a name="id31206"></a><h2>Description</h2>
<p>When lexing is enabled, each token contains its position within the underlying range. To save a bit of space, an <code class="computeroutput">unsiged int</code> is used for this. If you parse input sequences longer than 2^32-1 characters, define <code class="computeroutput">BOOST_PARSER_TOKEN_POSITION_TYPE</code> to be a larger integral type. </p>
</div>
</div>
<div class="copyright-footer">Copyright © 2020 T. Zachary Laine<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="BOOST_PARSER_TRACE_TO_id32.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="header/boost/parser/config_hpp.html"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="BOOST_PARSER_ALGO_CON_id34.html"><img src="images/next.png" alt="Next"></a>
</div>
</body>
</html>

View File

@@ -7,12 +7,12 @@
<link rel="home" href="index.html" title="Chapter 1. Boost.Parser">
<link rel="up" href="header/boost/parser/config_hpp.html" title="Header &lt;boost/parser/config.hpp&gt;">
<link rel="prev" href="BOOST_PARSER_CONSTEXPR.html" title="Macro BOOST_PARSER_CONSTEXPR">
<link rel="next" href="BOOST_PARSER_DIAGNOST_id35.html" title="Macro BOOST_PARSER_DIAGNOSTIC_PUSH">
<link rel="next" href="header/boost/parser/error_handling_hpp.html" title="Header &lt;boost/parser/error_handling.hpp&gt;">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="spirit-nav">
<a accesskey="p" href="BOOST_PARSER_CONSTEXPR.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="header/boost/parser/config_hpp.html"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="BOOST_PARSER_DIAGNOST_id35.html"><img src="images/next.png" alt="Next"></a>
<a accesskey="p" href="BOOST_PARSER_CONSTEXPR.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="header/boost/parser/config_hpp.html"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="header/boost/parser/error_handling_hpp.html"><img src="images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="BOOST_PARSER_TRACE_OSTREAM"></a><div class="titlepage"></div>
@@ -32,7 +32,7 @@
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="BOOST_PARSER_CONSTEXPR.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="header/boost/parser/config_hpp.html"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="BOOST_PARSER_DIAGNOST_id35.html"><img src="images/next.png" alt="Next"></a>
<a accesskey="p" href="BOOST_PARSER_CONSTEXPR.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="header/boost/parser/config_hpp.html"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="header/boost/parser/error_handling_hpp.html"><img src="images/next.png" alt="Next"></a>
</div>
</body>
</html>

View File

@@ -7,12 +7,12 @@
<link rel="home" href="index.html" title="Chapter 1. Boost.Parser">
<link rel="up" href="header/boost/parser/config_hpp.html" title="Header &lt;boost/parser/config.hpp&gt;">
<link rel="prev" href="BOOST_PARSER_SUBRANGE.html" title="Macro BOOST_PARSER_SUBRANGE">
<link rel="next" href="BOOST_PARSER_TOKEN_PO_id33.html" title="Macro BOOST_PARSER_TOKEN_POSITION_TYPE">
<link rel="next" href="BOOST_PARSER_ALGO_CON_id33.html" title="Macro BOOST_PARSER_ALGO_CONSTEXPR">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="spirit-nav">
<a accesskey="p" href="BOOST_PARSER_SUBRANGE.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="header/boost/parser/config_hpp.html"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="BOOST_PARSER_TOKEN_PO_id33.html"><img src="images/next.png" alt="Next"></a>
<a accesskey="p" href="BOOST_PARSER_SUBRANGE.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="header/boost/parser/config_hpp.html"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="BOOST_PARSER_ALGO_CON_id33.html"><img src="images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="BOOST_PARSER_TRACE_TO_id32"></a><div class="titlepage"></div>
@@ -25,7 +25,7 @@
</span>BOOST_PARSER_TRACE_TO_VS_OUTPUT</pre></div>
<div class="refsect1">
<a name="id31191"></a><h2>Description</h2>
<a name="id29223"></a><h2>Description</h2>
<p>If you are using Visual Studio to run your program, and don't have a terminal in which to observe the output when parsing with <code class="computeroutput">trace::on</code>, define this macro and you'll see the trace output in the Visual Studio debugger's output panel. This macro has no effect when <code class="computeroutput">_MSC_VER</code> is not also defined. </p>
</div>
</div>
@@ -36,7 +36,7 @@
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="BOOST_PARSER_SUBRANGE.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="header/boost/parser/config_hpp.html"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="BOOST_PARSER_TOKEN_PO_id33.html"><img src="images/next.png" alt="Next"></a>
<a accesskey="p" href="BOOST_PARSER_SUBRANGE.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="header/boost/parser/config_hpp.html"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="BOOST_PARSER_ALGO_CON_id33.html"><img src="images/next.png" alt="Next"></a>
</div>
</body>
</html>

View File

@@ -6,13 +6,13 @@
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="Chapter 1. Boost.Parser">
<link rel="up" href="header/boost/parser/config_hpp.html" title="Header &lt;boost/parser/config.hpp&gt;">
<link rel="prev" href="BOOST_PARSER_ALGO_CON_id34.html" title="Macro BOOST_PARSER_ALGO_CONSTEXPR">
<link rel="prev" href="BOOST_PARSER_ALGO_CON_id33.html" title="Macro BOOST_PARSER_ALGO_CONSTEXPR">
<link rel="next" href="BOOST_PARSER_USE_STD_TUPLE.html" title="Macro BOOST_PARSER_USE_STD_TUPLE">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="spirit-nav">
<a accesskey="p" href="BOOST_PARSER_ALGO_CON_id34.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="header/boost/parser/config_hpp.html"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="BOOST_PARSER_USE_STD_TUPLE.html"><img src="images/next.png" alt="Next"></a>
<a accesskey="p" href="BOOST_PARSER_ALGO_CON_id33.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="header/boost/parser/config_hpp.html"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="BOOST_PARSER_USE_STD_TUPLE.html"><img src="images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="BOOST_PARSER_USE_CONCEPTS"></a><div class="titlepage"></div>
@@ -32,7 +32,7 @@
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="BOOST_PARSER_ALGO_CON_id34.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="header/boost/parser/config_hpp.html"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="BOOST_PARSER_USE_STD_TUPLE.html"><img src="images/next.png" alt="Next"></a>
<a accesskey="p" href="BOOST_PARSER_ALGO_CON_id33.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="header/boost/parser/config_hpp.html"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="BOOST_PARSER_USE_STD_TUPLE.html"><img src="images/next.png" alt="Next"></a>
</div>
</body>
</html>

View File

@@ -25,7 +25,7 @@
</span>BOOST_PARSER_USE_HANA_TUPLE</pre></div>
<div class="refsect1">
<a name="id31147"></a><h2>Description</h2>
<a name="id29179"></a><h2>Description</h2>
<p>Define this macro to use <code class="computeroutput">boost::hana::tuple</code> instead of <code class="computeroutput">std::tuple</code> throughout Boost.Parser. </p>
</div>
</div>

View File

@@ -23,9 +23,9 @@
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_hpp.html" title="Header &lt;boost/parser/parser.hpp&gt;">boost/parser/parser.hpp</a>&gt;
</span><span class="identifier">int64_t</span> <span class="keyword">const</span> Inf<span class="special">;</span></pre></div>
</span>int64_t const Inf<span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id41804"></a><h2>Description</h2>
<a name="id37039"></a><h2>Description</h2>
<p>A very large sentinel value used to represent pseudo-infinity. </p>
</div>
</div>

View File

@@ -24,9 +24,9 @@
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_fwd_hpp.html" title="Header &lt;boost/parser/parser_fwd.hpp&gt;">boost/parser/parser_fwd.hpp</a>&gt;
</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Context<span class="special">&gt;</span> <span class="keyword">decltype</span><span class="special">(</span><span class="keyword">auto</span><span class="special">)</span> <span class="identifier">_attr</span><span class="special">(</span><span class="identifier">Context</span> <span class="keyword">const</span> <span class="special">&amp;</span> context<span class="special">)</span><span class="special">;</span></pre></div>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Context<span class="special">&gt;</span> decltype<span class="special">(</span>auto<span class="special">)</span> <span class="identifier">_attr</span><span class="special">(</span>Context const <span class="special">&amp;</span> context<span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id46278"></a><h2>Description</h2>
<a name="id41049"></a><h2>Description</h2>
<p>Returns a reference to the attribute or attributes already produced by the bottommost parser; multiple attributes will be stored within a <code class="computeroutput">parser::tuple</code>. Returns <code class="computeroutput">none</code> if the bottommost parser does produce an attribute. </p>
</div>
</div>

View File

@@ -24,9 +24,9 @@
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_fwd_hpp.html" title="Header &lt;boost/parser/parser_fwd.hpp&gt;">boost/parser/parser_fwd.hpp</a>&gt;
</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Context<span class="special">&gt;</span> <span class="keyword">decltype</span><span class="special">(</span><span class="keyword">auto</span><span class="special">)</span> <span class="identifier">_begin</span><span class="special">(</span><span class="identifier">Context</span> <span class="keyword">const</span> <span class="special">&amp;</span> context<span class="special">)</span><span class="special">;</span></pre></div>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Context<span class="special">&gt;</span> decltype<span class="special">(</span>auto<span class="special">)</span> <span class="identifier">_begin</span><span class="special">(</span>Context const <span class="special">&amp;</span> context<span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id46337"></a><h2>Description</h2>
<a name="id41100"></a><h2>Description</h2>
<p>Returns an iterator to the beginning of the entire sequence being parsed. The effect of calling this within a semantic action associated with a skip-parser is undefined </p>
</div>
</div>

View File

@@ -24,9 +24,9 @@
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_fwd_hpp.html" title="Header &lt;boost/parser/parser_fwd.hpp&gt;">boost/parser/parser_fwd.hpp</a>&gt;
</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Context<span class="special">&gt;</span> <span class="keyword">decltype</span><span class="special">(</span><span class="keyword">auto</span><span class="special">)</span> <span class="identifier">_end</span><span class="special">(</span><span class="identifier">Context</span> <span class="keyword">const</span> <span class="special">&amp;</span> context<span class="special">)</span><span class="special">;</span></pre></div>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Context<span class="special">&gt;</span> decltype<span class="special">(</span>auto<span class="special">)</span> <span class="identifier">_end</span><span class="special">(</span>Context const <span class="special">&amp;</span> context<span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id46365"></a><h2>Description</h2>
<a name="id41124"></a><h2>Description</h2>
<p>Returns an iterator to the end of the entire sequence being parsed. </p>
</div>
</div>

View File

@@ -25,9 +25,9 @@
</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Context<span class="special">&gt;</span>
<span class="keyword">decltype</span><span class="special">(</span><span class="keyword">auto</span><span class="special">)</span> <span class="identifier">_error_handler</span><span class="special">(</span><span class="identifier">Context</span> <span class="keyword">const</span> <span class="special">&amp;</span> context<span class="special">)</span><span class="special">;</span></pre></div>
decltype<span class="special">(</span>auto<span class="special">)</span> <span class="identifier">_error_handler</span><span class="special">(</span>Context const <span class="special">&amp;</span> context<span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id46515"></a><h2>Description</h2>
<a name="id41254"></a><h2>Description</h2>
<p>Returns a reference to the error handler object associated with the top-level parser. Returns <code class="computeroutput">none</code> if there is no associated error handler. </p>
</div>
</div>

View File

@@ -24,9 +24,9 @@
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_fwd_hpp.html" title="Header &lt;boost/parser/parser_fwd.hpp&gt;">boost/parser/parser_fwd.hpp</a>&gt;
</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Context<span class="special">&gt;</span> <span class="keyword">decltype</span><span class="special">(</span><span class="keyword">auto</span><span class="special">)</span> <span class="identifier">_globals</span><span class="special">(</span><span class="identifier">Context</span> <span class="keyword">const</span> <span class="special">&amp;</span> context<span class="special">)</span><span class="special">;</span></pre></div>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Context<span class="special">&gt;</span> decltype<span class="special">(</span>auto<span class="special">)</span> <span class="identifier">_globals</span><span class="special">(</span>Context const <span class="special">&amp;</span> context<span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id46486"></a><h2>Description</h2>
<a name="id41229"></a><h2>Description</h2>
<p>Returns a reference to the globals object associated with the top-level parser. Returns <code class="computeroutput">none</code> if there is no associated globals object. </p>
</div>
</div>

View File

@@ -24,9 +24,9 @@
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_fwd_hpp.html" title="Header &lt;boost/parser/parser_fwd.hpp&gt;">boost/parser/parser_fwd.hpp</a>&gt;
</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Context<span class="special">&gt;</span> <span class="keyword">decltype</span><span class="special">(</span><span class="keyword">auto</span><span class="special">)</span> <span class="identifier">_locals</span><span class="special">(</span><span class="identifier">Context</span> <span class="keyword">const</span> <span class="special">&amp;</span> context<span class="special">)</span><span class="special">;</span></pre></div>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Context<span class="special">&gt;</span> decltype<span class="special">(</span>auto<span class="special">)</span> <span class="identifier">_locals</span><span class="special">(</span>Context const <span class="special">&amp;</span> context<span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id46423"></a><h2>Description</h2>
<a name="id41174"></a><h2>Description</h2>
<p>Returns a reference to one or more local values that the bottommost rule is declared to have; multiple values will be stored within a <code class="computeroutput">parser::tuple</code>. Returns <code class="computeroutput">none</code> if there is no bottommost rule, or if that rule has no locals. </p>
</div>
</div>

View File

@@ -25,7 +25,7 @@
</span><span class="emphasis"><em><span class="identifier">unspecified</span></em></span> _p<span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id41787"></a><h2>Description</h2>
<a name="id37024"></a><h2>Description</h2>
<p>An invocable that returns the <code class="computeroutput">I</code>th parameter to the bottommost rule. This is useful for forwarding parameters to sub-rules. </p>
</div>
</div>

View File

@@ -24,9 +24,9 @@
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_fwd_hpp.html" title="Header &lt;boost/parser/parser_fwd.hpp&gt;">boost/parser/parser_fwd.hpp</a>&gt;
</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Context<span class="special">&gt;</span> <span class="keyword">decltype</span><span class="special">(</span><span class="keyword">auto</span><span class="special">)</span> <span class="identifier">_params</span><span class="special">(</span><span class="identifier">Context</span> <span class="keyword">const</span> <span class="special">&amp;</span> context<span class="special">)</span><span class="special">;</span></pre></div>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Context<span class="special">&gt;</span> decltype<span class="special">(</span>auto<span class="special">)</span> <span class="identifier">_params</span><span class="special">(</span>Context const <span class="special">&amp;</span> context<span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id46453"></a><h2>Description</h2>
<a name="id41200"></a><h2>Description</h2>
<p>Returns a reference to one or more parameters passed to the bottommost rule <code class="computeroutput">r</code>, by using <code class="computeroutput">r</code> as <code class="computeroutput">r.with(param0, param1, ... paramN)</code>; multiple values will be stored within a <code class="computeroutput">parser::tuple</code>. Returns <code class="computeroutput">none</code> if there is no bottommost rule, or if that rule was not given any parameters. </p>
</div>
</div>

View File

@@ -24,9 +24,9 @@
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_fwd_hpp.html" title="Header &lt;boost/parser/parser_fwd.hpp&gt;">boost/parser/parser_fwd.hpp</a>&gt;
</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Context<span class="special">&gt;</span> <span class="keyword">decltype</span><span class="special">(</span><span class="keyword">auto</span><span class="special">)</span> <span class="identifier">_pass</span><span class="special">(</span><span class="identifier">Context</span> <span class="keyword">const</span> <span class="special">&amp;</span> context<span class="special">)</span><span class="special">;</span></pre></div>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Context<span class="special">&gt;</span> decltype<span class="special">(</span>auto<span class="special">)</span> <span class="identifier">_pass</span><span class="special">(</span>Context const <span class="special">&amp;</span> context<span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id46393"></a><h2>Description</h2>
<a name="id41148"></a><h2>Description</h2>
<p>Returns a reference to a <code class="computeroutput">bool</code> that represents the success or failure of the bottommost parser. You can assign <code class="computeroutput">false</code> to this within a semantic action to force a parser to fail its parse. </p>
</div>
</div>

View File

@@ -24,9 +24,9 @@
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_fwd_hpp.html" title="Header &lt;boost/parser/parser_fwd.hpp&gt;">boost/parser/parser_fwd.hpp</a>&gt;
</span>
<span class="keyword">decltype</span><span class="special">(</span><span class="keyword">auto</span><span class="special">)</span> <span class="identifier">_val</span><span class="special">(</span><span class="identifier">Context</span> <span class="keyword">const</span> <span class="special">&amp;</span> context<span class="special">)</span><span class="special">;</span></pre></div>
decltype<span class="special">(</span>auto<span class="special">)</span> <span class="identifier">_val</span><span class="special">(</span>Context const <span class="special">&amp;</span> context<span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id46248"></a><h2>Description</h2>
<a name="id41023"></a><h2>Description</h2>
<p>Returns a reference to the attribute(s) (i.e. return value) of the bottommost parser; multiple attributes will be stored within a <code class="computeroutput">parser::tuple</code>. You may write to this value in a semantic action to control what attribute value(s) the associated parser produces. Returns <code class="computeroutput">none</code> if the bottommost parser does produce an attribute. </p>
</div>
</div>

View File

@@ -24,9 +24,9 @@
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_fwd_hpp.html" title="Header &lt;boost/parser/parser_fwd.hpp&gt;">boost/parser/parser_fwd.hpp</a>&gt;
</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Context<span class="special">&gt;</span> <span class="keyword">decltype</span><span class="special">(</span><span class="keyword">auto</span><span class="special">)</span> <span class="identifier">_where</span><span class="special">(</span><span class="identifier">Context</span> <span class="keyword">const</span> <span class="special">&amp;</span> context<span class="special">)</span><span class="special">;</span></pre></div>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Context<span class="special">&gt;</span> decltype<span class="special">(</span>auto<span class="special">)</span> <span class="identifier">_where</span><span class="special">(</span>Context const <span class="special">&amp;</span> context<span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id46308"></a><h2>Description</h2>
<a name="id41075"></a><h2>Description</h2>
<p>Returns a <code class="computeroutput">subrange</code> that describes the matched range of the bottommost parser. </p>
</div>
</div>

View File

@@ -27,7 +27,7 @@
<span class="keyword">struct</span> <a class="link" href="action_parser.html" title="Struct template action_parser">action_parser</a> <span class="special">{</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id45204"></a><h2>Description</h2>
<a name="id40096"></a><h2>Description</h2>
<p>Applies the given parser <code class="computeroutput">p</code> of type <code class="computeroutput">Parser</code> and an invocable <code class="computeroutput">a</code> of type <code class="computeroutput">Action</code>. <code class="computeroutput">Action</code> shall model <code class="computeroutput">semantic_action</code>, and <code class="computeroutput">a</code> will only be invoked if <code class="computeroutput">p</code> succeeds. The parse succeeds iff <code class="computeroutput">p</code> succeeds. Produces no attribute. </p>
</div>
</div>

View File

@@ -23,9 +23,9 @@
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/transcode_view_hpp.html" title="Header &lt;boost/parser/transcode_view.hpp&gt;">boost/parser/transcode_view.hpp</a>&gt;
</span><span class="keyword">constexpr</span> <span class="keyword">auto</span> as_utf16<span class="special">;</span></pre></div>
</span>constexpr auto as_utf16<span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id50090"></a><h2>Description</h2>
<a name="id44533"></a><h2>Description</h2>
<p>A view adaptor that produces a <code class="computeroutput"><a class="link" href="utf16_view.html" title="Class template utf16_view">utf16_view</a></code> of the given view. </p>
</div>
</div>

View File

@@ -23,9 +23,9 @@
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/transcode_view_hpp.html" title="Header &lt;boost/parser/transcode_view.hpp&gt;">boost/parser/transcode_view.hpp</a>&gt;
</span><span class="keyword">constexpr</span> <span class="keyword">auto</span> as_utf32<span class="special">;</span></pre></div>
</span>constexpr auto as_utf32<span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id50108"></a><h2>Description</h2>
<a name="id44549"></a><h2>Description</h2>
<p>A view adaptor that produces a <code class="computeroutput"><a class="link" href="utf32_view.html" title="Class template utf32_view">utf32_view</a></code> of the given view. </p>
</div>
</div>

View File

@@ -23,9 +23,9 @@
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/transcode_view_hpp.html" title="Header &lt;boost/parser/transcode_view.hpp&gt;">boost/parser/transcode_view.hpp</a>&gt;
</span><span class="keyword">constexpr</span> <span class="keyword">auto</span> as_utf8<span class="special">;</span></pre></div>
</span>constexpr auto as_utf8<span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id50072"></a><h2>Description</h2>
<a name="id44517"></a><h2>Description</h2>
<p>A view adaptor that produces a <code class="computeroutput"><a class="link" href="utf8_view.html" title="Class template utf8_view">utf8_view</a></code> of the given view. </p>
</div>
</div>

View File

@@ -24,9 +24,9 @@
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_hpp.html" title="Header &lt;boost/parser/parser.hpp&gt;">boost/parser/parser.hpp</a>&gt;
</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Attribute<span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">auto</span> <span class="identifier">attr</span><span class="special">(</span><span class="identifier">Attribute</span> a<span class="special">)</span><span class="special">;</span></pre></div>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Attribute<span class="special">&gt;</span> constexpr auto <span class="identifier">attr</span><span class="special">(</span>Attribute a<span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id42901"></a><h2>Description</h2>
<a name="id38057"></a><h2>Description</h2>
<p>Returns an <code class="computeroutput"><code class="computeroutput"><a class="link" href="attr_parser.html" title="Struct template attr_parser">attr_parser</a></code></code> which matches anything, and consumes no input, and which produces <code class="computeroutput">a</code> as its attribute. </p>
</div>
</div>

View File

@@ -27,7 +27,7 @@
<span class="keyword">struct</span> <a class="link" href="attr_parser.html" title="Struct template attr_parser">attr_parser</a> <span class="special">{</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id45235"></a><h2>Description</h2>
<a name="id40127"></a><h2>Description</h2>
<p>Matches anything, consumes no input, and produces an attribute of type <code class="computeroutput">RESOLVE(Attribute)</code>. </p>
</div>
</div>

View File

@@ -6,13 +6,13 @@
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Parser">
<link rel="up" href="../../header/boost/parser/parser_hpp.html" title="Header &lt;boost/parser/parser.hpp&gt;">
<link rel="prev" href="literals/operator_p_id142.html" title='Function operator""_p'>
<link rel="prev" href="literals/operator_p_id96.html" title='Function operator""_p'>
<link rel="next" href="delimited_seq_parser.html" title="Struct template delimited_seq_parser">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="spirit-nav">
<a accesskey="p" href="literals/operator_p_id142.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/parser_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="delimited_seq_parser.html"><img src="../../images/next.png" alt="Next"></a>
<a accesskey="p" href="literals/operator_p_id96.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/parser_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="delimited_seq_parser.html"><img src="../../images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.parser.attribute"></a><div class="titlepage"></div>
@@ -30,7 +30,7 @@
<span class="keyword">typedef</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span> <a name="boost.parser.attribute.type"></a><span class="identifier">type</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id36793"></a><h2>Description</h2>
<a name="id32689"></a><h2>Description</h2>
<p>A type trait that evaluates to the attribute type for parser <code class="computeroutput">Parser</code> used to parse range <code class="computeroutput">R</code>, as if by calling <code class="computeroutput">parse(r, parser)</code>, using some <code class="computeroutput">R r</code> and <code class="computeroutput">Parser parser</code>. Note that this implies that pointers to null-terminated strings are supported types for <code class="computeroutput">R</code>. The result is not wrapped in a <code class="computeroutput">std::optional</code> like the result of a call to <code class="computeroutput">parse()</code> would be. If <code class="computeroutput">Parser</code> produces no attribute, the result is the no-attribute sentinel type <code class="computeroutput">none</code>. </p>
</div>
</div>
@@ -41,7 +41,7 @@
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="literals/operator_p_id142.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/parser_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="delimited_seq_parser.html"><img src="../../images/next.png" alt="Next"></a>
<a accesskey="p" href="literals/operator_p_id96.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/parser_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="delimited_seq_parser.html"><img src="../../images/next.png" alt="Next"></a>
</div>
</body>
</html>

View File

@@ -24,9 +24,9 @@
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_fwd_hpp.html" title="Header &lt;boost/parser/parser_fwd.hpp&gt;">boost/parser/parser_fwd.hpp</a>&gt;
</span>
<span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="link" href="attribute.html" title="Struct template attribute">attribute</a><span class="special">&lt;</span> <span class="identifier">R</span><span class="special">,</span> <span class="identifier">Parser</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <span class="identifier">attribute_t</span><span class="special">;</span></pre></div>
<span class="keyword">typedef</span> typename <a class="link" href="attribute.html" title="Struct template attribute">attribute</a><span class="special">&lt;</span> R<span class="special">,</span> Parser <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <span class="identifier">attribute_t</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id46097"></a><h2>Description</h2>
<a name="id40936"></a><h2>Description</h2>
<p>An alias for <code class="computeroutput">typename attribute&lt;R, Parser&gt;::type</code>. </p>
</div>
</div>

View File

@@ -23,9 +23,9 @@
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_hpp.html" title="Header &lt;boost/parser/parser.hpp&gt;">boost/parser/parser.hpp</a>&gt;
</span><span class="keyword">constexpr</span> <a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <a class="link" href="uint_parser.html" title="Struct template uint_parser">uint_parser</a><span class="special">&lt;</span> <span class="keyword">unsigned</span> <span class="keyword">int</span><span class="special">,</span> <span class="number">2</span> <span class="special">&gt;</span> <span class="special">&gt;</span> bin<span class="special">;</span></pre></div>
</span>constexpr <a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <a class="link" href="uint_parser.html" title="Struct template uint_parser">uint_parser</a><span class="special">&lt;</span> unsigned int<span class="special">,</span> <span class="number">2</span> <span class="special">&gt;</span> <span class="special">&gt;</span> bin<span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id42360"></a><h2>Description</h2>
<a name="id37568"></a><h2>Description</h2>
<p>The binary unsigned integer parser. Produces an <code class="computeroutput">unsigned int</code> attribute. To parse a particular value <code class="computeroutput">x</code>, use <code class="computeroutput">bin(x)</code>. </p>
</div>
</div>

View File

@@ -23,9 +23,9 @@
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_hpp.html" title="Header &lt;boost/parser/parser.hpp&gt;">boost/parser/parser.hpp</a>&gt;
</span><span class="keyword">constexpr</span> <a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <a class="link" href="ws_parser.html" title="Struct template ws_parser">ws_parser</a><span class="special">&lt;</span> <span class="keyword">false</span><span class="special">,</span> <span class="keyword">true</span> <span class="special">&gt;</span> <span class="special">&gt;</span> blank<span class="special">;</span></pre></div>
</span>constexpr <a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <a class="link" href="ws_parser.html" title="Struct template ws_parser">ws_parser</a><span class="special">&lt;</span> false<span class="special">,</span> true <span class="special">&gt;</span> <span class="special">&gt;</span> blank<span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id42213"></a><h2>Description</h2>
<a name="id37428"></a><h2>Description</h2>
<p>The whitespace parser that does not match end-of-line. This matches any one of the Unicode code points with the White_Space property, as defined in <a href="https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt" target="_top">https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt</a>, except for the ones matched by <code class="computeroutput">eol</code>. Produces no attribute. </p>
</div>
</div>

View File

@@ -23,9 +23,9 @@
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_hpp.html" title="Header &lt;boost/parser/parser.hpp&gt;">boost/parser/parser.hpp</a>&gt;
</span><span class="keyword">constexpr</span> <a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <span class="identifier">bool_parser</span> <span class="special">&gt;</span> bool_<span class="special">;</span></pre></div>
</span>constexpr <a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> bool_parser <span class="special">&gt;</span> bool_<span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id42333"></a><h2>Description</h2>
<a name="id37544"></a><h2>Description</h2>
<p>The Boolean parser. Parses "true" and "false", producing attributes <code class="computeroutput">true</code> and <code class="computeroutput">false</code>, respectively, and fails on any other input. </p>
</div>
</div>

View File

@@ -26,25 +26,24 @@
</span>
<span class="keyword">struct</span> <a class="link" href="callback_error_handler.html" title="Struct callback_error_handler">callback_error_handler</a> <span class="special">{</span>
<span class="comment">// types</span>
<span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">function</span><span class="special">&lt;</span> <span class="keyword">void</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">&gt;</span> <a name="boost.parser.callback_error_handler.callback_type"></a><span class="identifier">callback_type</span><span class="special">;</span>
<span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">function</span><span class="special">&lt;</span> void<span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> const <span class="special">&amp;</span><span class="special">)</span><span class="special">&gt;</span> <a name="boost.parser.callback_error_handler.callback_type"></a><span class="identifier">callback_type</span><span class="special">;</span>
<span class="comment">// <a class="link" href="callback_error_handler.html#boost.parser.callback_error_handlerconstruct-copy-destruct">construct/copy/destruct</a></span>
<a class="link" href="callback_error_handler.html#id42-bb"><span class="identifier">callback_error_handler</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
<a class="link" href="callback_error_handler.html#id43-bb"><span class="identifier">callback_error_handler</span></a><span class="special">(</span><span class="identifier">callback_type</span><span class="special">,</span> <span class="identifier">callback_type</span> <span class="special">=</span> <span class="identifier">callback_type</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span>
<a class="link" href="callback_error_handler.html#id44-bb"><span class="identifier">callback_error_handler</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string_view</span><span class="special">,</span> <span class="identifier">callback_type</span><span class="special">,</span>
<a class="link" href="callback_error_handler.html#id36-bb"><span class="identifier">callback_error_handler</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
<a class="link" href="callback_error_handler.html#id37-bb"><span class="identifier">callback_error_handler</span></a><span class="special">(</span><span class="identifier">callback_type</span><span class="special">,</span> <span class="identifier">callback_type</span> <span class="special">=</span> <span class="identifier">callback_type</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span>
<a class="link" href="callback_error_handler.html#id38-bb"><span class="identifier">callback_error_handler</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string_view</span><span class="special">,</span> <span class="identifier">callback_type</span><span class="special">,</span>
<span class="identifier">callback_type</span> <span class="special">=</span> <span class="identifier">callback_type</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span>
<a class="link" href="callback_error_handler.html#id45-bb"><span class="identifier">callback_error_handler</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">wstring_view</span><span class="special">,</span> <span class="identifier">callback_type</span><span class="special">,</span>
<a class="link" href="callback_error_handler.html#id39-bb"><span class="identifier">callback_error_handler</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">wstring_view</span><span class="special">,</span> <span class="identifier">callback_type</span><span class="special">,</span>
<span class="identifier">callback_type</span> <span class="special">=</span> <span class="identifier">callback_type</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span>
<span class="comment">// <a class="link" href="callback_error_handler.html#id46-bb">public member functions</a></span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Iter<span class="special">,</span> <span class="keyword">typename</span> Sentinel<span class="special">,</span>
<span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> Exception<span class="special">&gt;</span>
<span class="comment">// <a class="link" href="callback_error_handler.html#id40-bb">public member functions</a></span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Iter<span class="special">,</span> <span class="keyword">typename</span> Sentinel<span class="special">&gt;</span>
<span class="identifier">error_handler_result</span>
<a class="link" href="callback_error_handler.html#id47-bb"><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span></a><span class="special">(</span><span class="identifier">Iter</span><span class="special">,</span> <span class="identifier">Sentinel</span><span class="special">,</span> <span class="identifier">Exception</span><span class="special">&lt;</span> <span class="identifier">Iter</span> <span class="special">&gt;</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<a class="link" href="callback_error_handler.html#id41-bb"><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span></a><span class="special">(</span>Iter<span class="special">,</span> Sentinel<span class="special">,</span> <a class="link" href="parse_error.html" title="Struct template parse_error">parse_error</a><span class="special">&lt;</span> Iter <span class="special">&gt;</span> const <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Context<span class="special">,</span> <span class="keyword">typename</span> Iter<span class="special">&gt;</span>
<span class="keyword">void</span> <a class="link" href="callback_error_handler.html#id48-bb"><span class="identifier">diagnose</span></a><span class="special">(</span><span class="identifier">diagnostic_kind</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string_view</span><span class="special">,</span> <span class="identifier">Context</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">Iter</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
void <a class="link" href="callback_error_handler.html#id42-bb"><span class="identifier">diagnose</span></a><span class="special">(</span><span class="identifier">diagnostic_kind</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string_view</span><span class="special">,</span> Context const <span class="special">&amp;</span><span class="special">,</span> Iter<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Context<span class="special">&gt;</span>
<span class="keyword">void</span> <a class="link" href="callback_error_handler.html#id49-bb"><span class="identifier">diagnose</span></a><span class="special">(</span><span class="identifier">diagnostic_kind</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string_view</span><span class="special">,</span> <span class="identifier">Context</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
void <a class="link" href="callback_error_handler.html#id43-bb"><span class="identifier">diagnose</span></a><span class="special">(</span><span class="identifier">diagnostic_kind</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string_view</span><span class="special">,</span> Context const <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<span class="comment">// public data members</span>
<span class="identifier">callback_type</span> <span class="identifier">error_</span><span class="special">;</span>
@@ -52,39 +51,39 @@
<span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="identifier">filename_</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id31651"></a><h2>Description</h2>
<a name="id29549"></a><h2>Description</h2>
<p>An error handler that allows users to supply callbacks to handle the reporting of warnings and errors. The reporting of errors and/or warnings can be suppressed by supplying one or both default-constructed callbacks. </p>
<div class="refsect2">
<a name="id31654"></a><h3>
<a name="id29552"></a><h3>
<a name="boost.parser.callback_error_handlerconstruct-copy-destruct"></a><code class="computeroutput">callback_error_handler</code>
public
construct/copy/destruct</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem"><pre class="literallayout"><a name="id42-bb"></a><span class="identifier">callback_error_handler</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a name="id43-bb"></a><span class="identifier">callback_error_handler</span><span class="special">(</span><span class="identifier">callback_type</span> error<span class="special">,</span>
<li class="listitem"><pre class="literallayout"><a name="id36-bb"></a><span class="identifier">callback_error_handler</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a name="id37-bb"></a><span class="identifier">callback_error_handler</span><span class="special">(</span><span class="identifier">callback_type</span> error<span class="special">,</span>
<span class="identifier">callback_type</span> warning <span class="special">=</span> <span class="identifier">callback_type</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a name="id44-bb"></a><span class="identifier">callback_error_handler</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string_view</span> filename<span class="special">,</span> <span class="identifier">callback_type</span> error<span class="special">,</span>
<li class="listitem"><pre class="literallayout"><a name="id38-bb"></a><span class="identifier">callback_error_handler</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string_view</span> filename<span class="special">,</span> <span class="identifier">callback_type</span> error<span class="special">,</span>
<span class="identifier">callback_type</span> warning <span class="special">=</span> <span class="identifier">callback_type</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem">
<pre class="literallayout"><a name="id45-bb"></a><span class="identifier">callback_error_handler</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">wstring_view</span> filename<span class="special">,</span> <span class="identifier">callback_type</span> error<span class="special">,</span>
<pre class="literallayout"><a name="id39-bb"></a><span class="identifier">callback_error_handler</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">wstring_view</span> filename<span class="special">,</span> <span class="identifier">callback_type</span> error<span class="special">,</span>
<span class="identifier">callback_type</span> warning <span class="special">=</span> <span class="identifier">callback_type</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span></pre>
<p>This overload is Windows-only. </p>
</li>
</ol></div>
</div>
<div class="refsect2">
<a name="id31721"></a><h3>
<a name="id46-bb"></a><code class="computeroutput">callback_error_handler</code> public member functions</h3>
<a name="id29619"></a><h3>
<a name="id40-bb"></a><code class="computeroutput">callback_error_handler</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Iter<span class="special">,</span> <span class="keyword">typename</span> Sentinel<span class="special">,</span> <span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> Exception<span class="special">&gt;</span>
<li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Iter<span class="special">,</span> <span class="keyword">typename</span> Sentinel<span class="special">&gt;</span>
<span class="identifier">error_handler_result</span>
<a name="id47-bb"></a><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span><span class="special">(</span><span class="identifier">Iter</span> first<span class="special">,</span> <span class="identifier">Sentinel</span> last<span class="special">,</span> <span class="identifier">Exception</span><span class="special">&lt;</span> <span class="identifier">Iter</span> <span class="special">&gt;</span> <span class="keyword">const</span> <span class="special">&amp;</span> e<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<a name="id41-bb"></a><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span><span class="special">(</span>Iter first<span class="special">,</span> Sentinel last<span class="special">,</span> <a class="link" href="parse_error.html" title="Struct template parse_error">parse_error</a><span class="special">&lt;</span> Iter <span class="special">&gt;</span> const <span class="special">&amp;</span> e<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Context<span class="special">,</span> <span class="keyword">typename</span> Iter<span class="special">&gt;</span>
<span class="keyword">void</span> <a name="id48-bb"></a><span class="identifier">diagnose</span><span class="special">(</span><span class="identifier">diagnostic_kind</span> kind<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string_view</span> message<span class="special">,</span>
<span class="identifier">Context</span> <span class="keyword">const</span> <span class="special">&amp;</span> context<span class="special">,</span> <span class="identifier">Iter</span> it<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
void <a name="id42-bb"></a><span class="identifier">diagnose</span><span class="special">(</span><span class="identifier">diagnostic_kind</span> kind<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string_view</span> message<span class="special">,</span>
Context const <span class="special">&amp;</span> context<span class="special">,</span> Iter it<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Context<span class="special">&gt;</span>
<span class="keyword">void</span> <a name="id49-bb"></a><span class="identifier">diagnose</span><span class="special">(</span><span class="identifier">diagnostic_kind</span> kind<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string_view</span> message<span class="special">,</span>
<span class="identifier">Context</span> <span class="keyword">const</span> <span class="special">&amp;</span> context<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
void <a name="id43-bb"></a><span class="identifier">diagnose</span><span class="special">(</span><span class="identifier">diagnostic_kind</span> kind<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string_view</span> message<span class="special">,</span>
Context const <span class="special">&amp;</span> context<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
</ol></div>
</div>
</div>

View File

@@ -26,12 +26,12 @@
</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="identifier">parsable_range</span> R<span class="special">,</span> <span class="keyword">typename</span> Parser<span class="special">,</span> <span class="keyword">typename</span> GlobalState<span class="special">,</span>
<span class="keyword">typename</span> ErrorHandler<span class="special">,</span> <span class="keyword">typename</span> Callbacks<span class="special">&gt;</span>
<span class="keyword">bool</span> <span class="identifier">callback_parse</span><span class="special">(</span><span class="identifier">R</span> <span class="keyword">const</span> <span class="special">&amp;</span> r<span class="special">,</span>
<a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <span class="identifier">Parser</span><span class="special">,</span> <span class="identifier">GlobalState</span><span class="special">,</span> <span class="identifier">ErrorHandler</span> <span class="special">&gt;</span> <span class="keyword">const</span> <span class="special">&amp;</span> parser<span class="special">,</span>
<span class="identifier">Callbacks</span> <span class="keyword">const</span> <span class="special">&amp;</span> callbacks<span class="special">,</span>
bool <span class="identifier">callback_parse</span><span class="special">(</span>R const <span class="special">&amp;</span> r<span class="special">,</span>
<a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> Parser<span class="special">,</span> GlobalState<span class="special">,</span> ErrorHandler <span class="special">&gt;</span> const <span class="special">&amp;</span> parser<span class="special">,</span>
Callbacks const <span class="special">&amp;</span> callbacks<span class="special">,</span>
<span class="identifier">trace</span> trace_mode <span class="special">=</span> <span class="identifier">trace</span><span class="special">::</span><span class="identifier">off</span><span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id44331"></a><h2>Description</h2>
<a name="id39330"></a><h2>Description</h2>
<p>Parses <code class="computeroutput">r</code> using <code class="computeroutput">parser</code>, and returns whether the parse was successful. The entire input range <code class="computeroutput">r</code> must be consumed for the parse to be considered successful. When a callback rule <code class="computeroutput">r</code> is successful during the parse, one of two things happens: 1) if <code class="computeroutput">r</code> has an attribute, <code class="computeroutput">callbacks(tag, x)</code> will be called (where <code class="computeroutput">tag</code> is <code class="computeroutput">decltype(r)::tag_type{}</code>, and <code class="computeroutput">x</code> is the attribute produced by <code class="computeroutput">r</code>); or 2) if <code class="computeroutput">r</code> has no attribute, <code class="computeroutput">callbacks(tag)</code> will be called. <code class="computeroutput">Callbacks</code> is expected to be an invocable with the correct overloads required to support all successful rule parses that might occur. If <code class="computeroutput">trace_mode == trace::on</code>, a verbose trace of the parse will be streamed to <code class="computeroutput">std::cout</code>.</p>
<p>
</p>

View File

@@ -26,13 +26,13 @@
</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="identifier">parsable_range</span> R<span class="special">,</span> <span class="keyword">typename</span> Parser<span class="special">,</span> <span class="keyword">typename</span> GlobalState<span class="special">,</span>
<span class="keyword">typename</span> ErrorHandler<span class="special">,</span> <span class="keyword">typename</span> SkipParser<span class="special">,</span> <span class="keyword">typename</span> Callbacks<span class="special">&gt;</span>
<span class="keyword">bool</span> <span class="identifier">callback_parse</span><span class="special">(</span><span class="identifier">R</span> <span class="keyword">const</span> <span class="special">&amp;</span> r<span class="special">,</span>
<a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <span class="identifier">Parser</span><span class="special">,</span> <span class="identifier">GlobalState</span><span class="special">,</span> <span class="identifier">ErrorHandler</span> <span class="special">&gt;</span> <span class="keyword">const</span> <span class="special">&amp;</span> parser<span class="special">,</span>
<a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <span class="identifier">SkipParser</span> <span class="special">&gt;</span> <span class="keyword">const</span> <span class="special">&amp;</span> skip<span class="special">,</span>
<span class="identifier">Callbacks</span> <span class="keyword">const</span> <span class="special">&amp;</span> callbacks<span class="special">,</span>
bool <span class="identifier">callback_parse</span><span class="special">(</span>R const <span class="special">&amp;</span> r<span class="special">,</span>
<a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> Parser<span class="special">,</span> GlobalState<span class="special">,</span> ErrorHandler <span class="special">&gt;</span> const <span class="special">&amp;</span> parser<span class="special">,</span>
<a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> SkipParser <span class="special">&gt;</span> const <span class="special">&amp;</span> skip<span class="special">,</span>
Callbacks const <span class="special">&amp;</span> callbacks<span class="special">,</span>
<span class="identifier">trace</span> trace_mode <span class="special">=</span> <span class="identifier">trace</span><span class="special">::</span><span class="identifier">off</span><span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id44516"></a><h2>Description</h2>
<a name="id39495"></a><h2>Description</h2>
<p>Parses <code class="computeroutput">r</code> using <code class="computeroutput">parser</code>, skipping all input recognized by <code class="computeroutput">skip</code> between the application of any two parsers, and returns whether the parse was successful. The entire input range <code class="computeroutput">r</code> must be consumed for the parse to be considered successful. When a callback rule <code class="computeroutput">r</code> is successful during the parse, one of two things happens: 1) if <code class="computeroutput">r</code> has an attribute, <code class="computeroutput">callbacks(tag, x)</code> will be called (where <code class="computeroutput">tag</code> is <code class="computeroutput">decltype(r)::tag_type{}</code>, and <code class="computeroutput">x</code> is the attribute produced by <code class="computeroutput">r</code>); or 2) if <code class="computeroutput">r</code> has no attribute, <code class="computeroutput">callbacks(tag)</code> will be called. <code class="computeroutput">Callbacks</code> is expected to be an invocable with the correct overloads required to support all successful rule parses that might occur. If <code class="computeroutput">trace_mode == trace::on</code>, a verbose trace of the parse will be streamed to <code class="computeroutput">std::cout</code>.</p>
<p>
</p>

View File

@@ -27,12 +27,12 @@
<span class="keyword">template</span><span class="special">&lt;</span><span class="identifier">parsable_iter</span> I<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">sentinel_for</span><span class="special">&lt;</span> <span class="identifier">I</span> <span class="special">&gt;</span> S<span class="special">,</span> <span class="keyword">typename</span> Parser<span class="special">,</span>
<span class="keyword">typename</span> GlobalState<span class="special">,</span>
<span class="identifier">error_handler</span><span class="special">&lt;</span> <span class="identifier">I</span><span class="special">,</span> <span class="identifier">S</span><span class="special">,</span> <span class="identifier">GlobalState</span> <span class="special">&gt;</span> ErrorHandler<span class="special">,</span> <span class="keyword">typename</span> Callbacks<span class="special">&gt;</span>
<span class="keyword">bool</span> <span class="identifier">callback_prefix_parse</span><span class="special">(</span><span class="identifier">I</span> <span class="special">&amp;</span> first<span class="special">,</span> <span class="identifier">S</span> last<span class="special">,</span>
<a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <span class="identifier">Parser</span><span class="special">,</span> <span class="identifier">GlobalState</span><span class="special">,</span> <span class="identifier">ErrorHandler</span> <span class="special">&gt;</span> <span class="keyword">const</span> <span class="special">&amp;</span> parser<span class="special">,</span>
<span class="identifier">Callbacks</span> <span class="keyword">const</span> <span class="special">&amp;</span> callbacks<span class="special">,</span>
bool <span class="identifier">callback_prefix_parse</span><span class="special">(</span><span class="identifier">I</span> <span class="special">&amp;</span> first<span class="special">,</span> <span class="identifier">S</span> last<span class="special">,</span>
<a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> Parser<span class="special">,</span> GlobalState<span class="special">,</span> ErrorHandler <span class="special">&gt;</span> const <span class="special">&amp;</span> parser<span class="special">,</span>
Callbacks const <span class="special">&amp;</span> callbacks<span class="special">,</span>
<span class="identifier">trace</span> trace_mode <span class="special">=</span> <span class="identifier">trace</span><span class="special">::</span><span class="identifier">off</span><span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id44263"></a><h2>Description</h2>
<a name="id39271"></a><h2>Description</h2>
<p>Parses <code class="computeroutput">[first, last)</code> using <code class="computeroutput">parser</code>, and returns whether the parse was successful. When a callback rule <code class="computeroutput">r</code> is successful during the parse, one of two things happens: 1) if <code class="computeroutput">r</code> has an attribute, <code class="computeroutput">callbacks(tag, x)</code> will be called (where <code class="computeroutput">tag</code> is <code class="computeroutput">decltype(r)::tag_type{}</code>, and <code class="computeroutput">x</code> is the attribute produced by <code class="computeroutput">r</code>); or 2) if <code class="computeroutput">r</code> has no attribute, <code class="computeroutput">callbacks(tag)</code> will be called. <code class="computeroutput">Callbacks</code> is expected to be an invocable with the correct overloads required to support all successful rule parses that might occur. If <code class="computeroutput">trace_mode == trace::on</code>, a verbose trace of the parse will be streamed to <code class="computeroutput">std::cout</code>. </p>
</div>
</div>

View File

@@ -28,13 +28,13 @@
<span class="keyword">typename</span> GlobalState<span class="special">,</span>
<span class="identifier">error_handler</span><span class="special">&lt;</span> <span class="identifier">I</span><span class="special">,</span> <span class="identifier">S</span><span class="special">,</span> <span class="identifier">GlobalState</span> <span class="special">&gt;</span> ErrorHandler<span class="special">,</span> <span class="keyword">typename</span> SkipParser<span class="special">,</span>
<span class="keyword">typename</span> Callbacks<span class="special">&gt;</span>
<span class="keyword">bool</span> <span class="identifier">callback_prefix_parse</span><span class="special">(</span><span class="identifier">I</span> <span class="special">&amp;</span> first<span class="special">,</span> <span class="identifier">S</span> last<span class="special">,</span>
<a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <span class="identifier">Parser</span><span class="special">,</span> <span class="identifier">GlobalState</span><span class="special">,</span> <span class="identifier">ErrorHandler</span> <span class="special">&gt;</span> <span class="keyword">const</span> <span class="special">&amp;</span> parser<span class="special">,</span>
<a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <span class="identifier">SkipParser</span> <span class="special">&gt;</span> <span class="keyword">const</span> <span class="special">&amp;</span> skip<span class="special">,</span>
<span class="identifier">Callbacks</span> <span class="keyword">const</span> <span class="special">&amp;</span> callbacks<span class="special">,</span>
bool <span class="identifier">callback_prefix_parse</span><span class="special">(</span><span class="identifier">I</span> <span class="special">&amp;</span> first<span class="special">,</span> <span class="identifier">S</span> last<span class="special">,</span>
<a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> Parser<span class="special">,</span> GlobalState<span class="special">,</span> ErrorHandler <span class="special">&gt;</span> const <span class="special">&amp;</span> parser<span class="special">,</span>
<a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> SkipParser <span class="special">&gt;</span> const <span class="special">&amp;</span> skip<span class="special">,</span>
Callbacks const <span class="special">&amp;</span> callbacks<span class="special">,</span>
<span class="identifier">trace</span> trace_mode <span class="special">=</span> <span class="identifier">trace</span><span class="special">::</span><span class="identifier">off</span><span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id44438"></a><h2>Description</h2>
<a name="id39428"></a><h2>Description</h2>
<p>Parses <code class="computeroutput">[first, last)</code> using <code class="computeroutput">parser</code>, skipping all input recognized by <code class="computeroutput">skip</code> between the application of any two parsers, and returns whether the parse was successful. When a callback rule <code class="computeroutput">r</code> is successful during the parse, one of two things happens: 1) if <code class="computeroutput">r</code> has an attribute, <code class="computeroutput">callbacks(tag, x)</code> will be called (where <code class="computeroutput">tag</code> is <code class="computeroutput">decltype(r)::tag_type{}</code>, and <code class="computeroutput">x</code> is the attribute produced by <code class="computeroutput">r</code>); or 2) if <code class="computeroutput">r</code> has no attribute, <code class="computeroutput">callbacks(tag)</code> will be called. <code class="computeroutput">Callbacks</code> is expected to be an invocable with the correct overloads required to support all successful rule parses that might occur. If <code class="computeroutput">trace_mode == trace::on</code>, a verbose trace of the parse will be streamed to <code class="computeroutput">std::cout</code>. </p>
</div>
</div>

View File

@@ -29,7 +29,7 @@
<span class="keyword">struct</span> <a class="link" href="callback_rule.html" title="Struct template callback_rule">callback_rule</a> <span class="special">{</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id45270"></a><h2>Description</h2>
<a name="id40162"></a><h2>Description</h2>
<p>A type used to declare named parsing rules that support reporting of attributes via callback. The <code class="computeroutput">TagType</code> template parameter is used to associate a particular <code class="computeroutput">rule</code> with the <code class="computeroutput"><a class="link" href="rule_parser.html" title="Struct template rule_parser">rule_parser</a></code> used during parsing. </p>
</div>
</div>

View File

@@ -25,7 +25,7 @@
</span><span class="emphasis"><em><span class="identifier">unspecified</span></em></span> char_<span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id42070"></a><h2>Description</h2>
<a name="id37295"></a><h2>Description</h2>
<p>The single-character parser. The produced attribute is the type of the matched code point (<code class="computeroutput">char</code> or <code class="computeroutput">char32_t</code>). Used as-is, <code class="computeroutput">char_</code> matches any code point. <code class="computeroutput">char_</code> can also can be used to create code point parsers that match one or more specific code point values, by calling it with: a single value comparable to a code point; a closed range of code point values <code class="computeroutput">[lo, hi]</code>, or a set of code point values passed as a range. When calling with a range, only the iterators that bound the range are stored. Make sure the range you pass outlives the use of the resulting parser. Note that a string literal is a range, and that it outlives any parser it is used to construct. </p>
</div>
</div>

View File

@@ -23,11 +23,11 @@
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_fwd_hpp.html" title="Header &lt;boost/parser/parser_fwd.hpp&gt;">boost/parser/parser_fwd.hpp</a>&gt;
</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Expected<span class="special">,</span> <span class="keyword">typename</span> AttributeType <span class="special">=</span> <span class="keyword">void</span><span class="special">&gt;</span>
</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Expected<span class="special">,</span> <span class="keyword">typename</span> AttributeType <span class="special">=</span> <a class="link" href="parse_error.html" title="Struct template parse_error">void</a><span class="special">&gt;</span>
<span class="keyword">struct</span> <a class="link" href="char_parser.html" title="Struct template char_parser">char_parser</a> <span class="special">{</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id45300"></a><h2>Description</h2>
<a name="id40192"></a><h2>Description</h2>
<p>Matches a single code point. If <code class="computeroutput">AttributeType</code> is not <code class="computeroutput">void</code>, <code class="computeroutput">AttributeType</code> is the attribute type produced; otherwise, the attribute type is the decayed type of the matched code point. The parse fails only if the parser is constructed with a specific set of expected code point values that does not include the matched code point. </p>
</div>
</div>

View File

@@ -27,7 +27,7 @@
<span class="keyword">struct</span> <a class="link" href="char_set_parser.html" title="Struct template char_set_parser">char_set_parser</a> <span class="special">{</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id45325"></a><h2>Description</h2>
<a name="id40217"></a><h2>Description</h2>
<p>Matches a single code point that is equal to one of the code points associated with tag type <code class="computeroutput">Tag</code>. This is used to create sets of characters for matching Unicode character classes like punctuation or lower case. Attribute type is the attribute type of the character being matched. </p>
</div>
</div>

View File

@@ -27,7 +27,7 @@
<span class="keyword">struct</span> <a class="link" href="char_subrange_parser.html" title="Struct template char_subrange_parser">char_subrange_parser</a> <span class="special">{</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id45348"></a><h2>Description</h2>
<a name="id40240"></a><h2>Description</h2>
<p>Matches a single code point that falls into one of the subranges of code points associated with tag type <code class="computeroutput">Tag</code>. This is used to create sets of characters for matching Unicode character classes like hex digits or control characters. Attribute type is the attribute type of the character being matched. </p>
</div>
</div>

View File

@@ -1,42 +0,0 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Global character_id</title>
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Parser">
<link rel="up" href="../../header/boost/parser/parser_fwd_hpp.html" title="Header &lt;boost/parser/parser_fwd.hpp&gt;">
<link rel="prev" href="ws_id.html" title="Global ws_id">
<link rel="next" href="is_token_v.html" title="Global is_token_v">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="spirit-nav">
<a accesskey="p" href="ws_id.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/parser_fwd_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="is_token_v.html"><img src="../../images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.parser.character_id"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Global character_id</span></h2>
<p>boost::parser::character_id</p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_fwd_hpp.html" title="Header &lt;boost/parser/parser_fwd.hpp&gt;">boost/parser/parser_fwd.hpp</a>&gt;
</span><span class="keyword">constexpr</span> <span class="keyword">int</span> character_id<span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id46164"></a><h2>Description</h2>
<p>The token ID used for single-character tokens. </p>
</div>
</div>
<div class="copyright-footer">Copyright © 2020 T. Zachary Laine<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="ws_id.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/parser_fwd_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="is_token_v.html"><img src="../../images/next.png" alt="Next"></a>
</div>
</body>
</html>

View File

@@ -25,7 +25,7 @@
</span><span class="emphasis"><em><span class="identifier">unspecified</span></em></span> control<span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id42266"></a><h2>Description</h2>
<a name="id37479"></a><h2>Description</h2>
<p>The control character parser. Matches the all Unicode code points with the "Cc" ("control character") character property. </p>
</div>
</div>

View File

@@ -25,7 +25,7 @@
</span><span class="emphasis"><em><span class="identifier">unspecified</span></em></span> cp<span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id42091"></a><h2>Description</h2>
<a name="id37316"></a><h2>Description</h2>
<p>The code point parser. It produces a <code class="computeroutput">char32_t</code> attribute. Used as-is, <code class="computeroutput">cp</code> matches any code point. <code class="computeroutput">cp</code> can also can be used to create code point parsers that match one or more specific code point values, by calling it with: a single value comparable to a code point; a closed range of code point values <code class="computeroutput">[lo, hi]</code>, or a set of code point values passed as a range. When calling with a range, only the iterators that bound the range are stored. Make sure the range you pass outlives the use of the resulting parser. Note that a string literal is a range, and that it outlives any parser it is used to construct. </p>
</div>
</div>

View File

@@ -25,7 +25,7 @@
</span><span class="emphasis"><em><span class="identifier">unspecified</span></em></span> cu<span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id42111"></a><h2>Description</h2>
<a name="id37336"></a><h2>Description</h2>
<p>The code unit parser. It produces a <code class="computeroutput">char</code> attribute. Used as-is, <code class="computeroutput">cu</code> matches any code point. <code class="computeroutput">cu</code> can also can be used to create code point parsers that match one or more specific code point values, by calling it with: a single value comparable to a code point; a closed range of code point values <code class="computeroutput">[lo, hi]</code>, or a set of code point values passed as a range. When calling with a range, only the iterators that bound the range are stored. Make sure the range you pass outlives the use of the resulting parser. Note that a string literal is a range, and that it outlives any parser it is used to construct. </p>
</div>
</div>

View File

@@ -7,12 +7,12 @@
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Parser">
<link rel="up" href="../../header/boost/parser/error_handling_fwd_hpp.html" title="Header &lt;boost/parser/error_handling_fwd.hpp&gt;">
<link rel="prev" href="../../header/boost/parser/error_handling_fwd_hpp.html" title="Header &lt;boost/parser/error_handling_fwd.hpp&gt;">
<link rel="next" href="lex_error.html" title="Struct template lex_error">
<link rel="next" href="line_position.html" title="Struct template line_position">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="spirit-nav">
<a accesskey="p" href="../../header/boost/parser/error_handling_fwd_hpp.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/error_handling_fwd_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="lex_error.html"><img src="../../images/next.png" alt="Next"></a>
<a accesskey="p" href="../../header/boost/parser/error_handling_fwd_hpp.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/error_handling_fwd_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="line_position.html"><img src="../../images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.parser.default_error_handler"></a><div class="titlepage"></div>
@@ -26,48 +26,47 @@
</span>
<span class="keyword">struct</span> <a class="link" href="default_error_handler.html" title="Struct default_error_handler">default_error_handler</a> <span class="special">{</span>
<span class="comment">// <a class="link" href="default_error_handler.html#boost.parser.default_error_handlerconstruct-copy-destruct">construct/copy/destruct</a></span>
<a class="link" href="default_error_handler.html#id59-bb"><span class="identifier">default_error_handler</span></a><span class="special">(</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">default</span><span class="special">;</span>
<a class="link" href="default_error_handler.html#id53-bb"><span class="identifier">default_error_handler</span></a><span class="special">(</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">default</span><span class="special">;</span>
<span class="comment">// <a class="link" href="default_error_handler.html#id60-bb">public member functions</a></span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Iter<span class="special">,</span> <span class="keyword">typename</span> Sentinel<span class="special">,</span>
<span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> Exception<span class="special">&gt;</span>
<span class="comment">// <a class="link" href="default_error_handler.html#id54-bb">public member functions</a></span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Iter<span class="special">,</span> <span class="keyword">typename</span> Sentinel<span class="special">&gt;</span>
<span class="identifier">error_handler_result</span>
<a class="link" href="default_error_handler.html#id61-bb"><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span></a><span class="special">(</span><span class="identifier">Iter</span><span class="special">,</span> <span class="identifier">Sentinel</span><span class="special">,</span> <span class="identifier">Exception</span><span class="special">&lt;</span> <span class="identifier">Iter</span> <span class="special">&gt;</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<a class="link" href="default_error_handler.html#id55-bb"><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span></a><span class="special">(</span>Iter<span class="special">,</span> Sentinel<span class="special">,</span> <a class="link" href="parse_error.html" title="Struct template parse_error">parse_error</a><span class="special">&lt;</span> Iter <span class="special">&gt;</span> const <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Context<span class="special">,</span> <span class="keyword">typename</span> Iter<span class="special">&gt;</span>
<span class="keyword">void</span> <a class="link" href="default_error_handler.html#id62-bb"><span class="identifier">diagnose</span></a><span class="special">(</span><span class="identifier">diagnostic_kind</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string_view</span><span class="special">,</span> <span class="identifier">Context</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">Iter</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
void <a class="link" href="default_error_handler.html#id56-bb"><span class="identifier">diagnose</span></a><span class="special">(</span><span class="identifier">diagnostic_kind</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string_view</span><span class="special">,</span> Context const <span class="special">&amp;</span><span class="special">,</span> Iter<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Context<span class="special">&gt;</span>
<span class="keyword">void</span> <a class="link" href="default_error_handler.html#id63-bb"><span class="identifier">diagnose</span></a><span class="special">(</span><span class="identifier">diagnostic_kind</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string_view</span><span class="special">,</span> <span class="identifier">Context</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
void <a class="link" href="default_error_handler.html#id57-bb"><span class="identifier">diagnose</span></a><span class="special">(</span><span class="identifier">diagnostic_kind</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string_view</span><span class="special">,</span> Context const <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id32588"></a><h2>Description</h2>
<a name="id30272"></a><h2>Description</h2>
<p>The error handler used when the user does not specify a custom one. This error handler prints warnings and errors to <code class="computeroutput">std::cerr</code>, and does not have an associcated filename. </p>
<div class="refsect2">
<a name="id32592"></a><h3>
<a name="id30276"></a><h3>
<a name="boost.parser.default_error_handlerconstruct-copy-destruct"></a><code class="computeroutput">default_error_handler</code>
public
construct/copy/destruct</h3>
<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><pre class="literallayout"><a name="id59-bb"></a><span class="identifier">default_error_handler</span><span class="special">(</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">default</span><span class="special">;</span></pre></li></ol></div>
<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><pre class="literallayout"><a name="id53-bb"></a><span class="identifier">default_error_handler</span><span class="special">(</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">default</span><span class="special">;</span></pre></li></ol></div>
</div>
<div class="refsect2">
<a name="id32607"></a><h3>
<a name="id60-bb"></a><code class="computeroutput">default_error_handler</code> public member functions</h3>
<a name="id30291"></a><h3>
<a name="id54-bb"></a><code class="computeroutput">default_error_handler</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Iter<span class="special">,</span> <span class="keyword">typename</span> Sentinel<span class="special">,</span> <span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> Exception<span class="special">&gt;</span>
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Iter<span class="special">,</span> <span class="keyword">typename</span> Sentinel<span class="special">&gt;</span>
<span class="identifier">error_handler_result</span>
<a name="id61-bb"></a><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span><span class="special">(</span><span class="identifier">Iter</span> first<span class="special">,</span> <span class="identifier">Sentinel</span> last<span class="special">,</span> <span class="identifier">Exception</span><span class="special">&lt;</span> <span class="identifier">Iter</span> <span class="special">&gt;</span> <span class="keyword">const</span> <span class="special">&amp;</span> e<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>Handles a <code class="computeroutput"><code class="computeroutput"><a class="link" href="parse_error.html" title="Struct template parse_error">parse_error</a></code></code> or <code class="computeroutput"><code class="computeroutput"><a class="link" href="lex_error.html" title="Struct template lex_error">lex_error</a></code></code> exception thrown during parsing/lexing. A formatted parse-expectation failure is printed to <code class="computeroutput">std::cerr</code>. Always returns <code class="computeroutput">error_handler_result::fail</code>. </p>
<a name="id55-bb"></a><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span><span class="special">(</span>Iter first<span class="special">,</span> Sentinel last<span class="special">,</span> <a class="link" href="parse_error.html" title="Struct template parse_error">parse_error</a><span class="special">&lt;</span> Iter <span class="special">&gt;</span> const <span class="special">&amp;</span> e<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>Handles a <code class="computeroutput"><code class="computeroutput"><a class="link" href="parse_error.html" title="Struct template parse_error">parse_error</a></code></code> exception thrown during parsing. A formatted parse-expectation failure is printed to <code class="computeroutput">std::cerr</code>. Always returns <code class="computeroutput">error_handler_result::fail</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Context<span class="special">,</span> <span class="keyword">typename</span> Iter<span class="special">&gt;</span>
<span class="keyword">void</span> <a name="id62-bb"></a><span class="identifier">diagnose</span><span class="special">(</span><span class="identifier">diagnostic_kind</span> kind<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string_view</span> message<span class="special">,</span>
<span class="identifier">Context</span> <span class="keyword">const</span> <span class="special">&amp;</span> context<span class="special">,</span> <span class="identifier">Iter</span> it<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
void <a name="id56-bb"></a><span class="identifier">diagnose</span><span class="special">(</span><span class="identifier">diagnostic_kind</span> kind<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string_view</span> message<span class="special">,</span>
Context const <span class="special">&amp;</span> context<span class="special">,</span> Iter it<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>Prints <code class="computeroutput">message</code> to <code class="computeroutput">std::cerr</code>. The diagnostic is printed with the given <code class="computeroutput">kind</code>, indicating the location as being at <code class="computeroutput">it</code>. This must be called within a parser semantic action, providing the parse context. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Context<span class="special">&gt;</span>
<span class="keyword">void</span> <a name="id63-bb"></a><span class="identifier">diagnose</span><span class="special">(</span><span class="identifier">diagnostic_kind</span> kind<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string_view</span> message<span class="special">,</span>
<span class="identifier">Context</span> <span class="keyword">const</span> <span class="special">&amp;</span> context<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
void <a name="id57-bb"></a><span class="identifier">diagnose</span><span class="special">(</span><span class="identifier">diagnostic_kind</span> kind<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string_view</span> message<span class="special">,</span>
Context const <span class="special">&amp;</span> context<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>Prints <code class="computeroutput">message</code> to <code class="computeroutput">std::cerr</code>. The diagnostic is printed with the given <code class="computeroutput">kind</code>, at no particular location. This must be called within a parser semantic action, providing the parse context. </p>
</li>
</ol></div>
@@ -81,7 +80,7 @@
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../../header/boost/parser/error_handling_fwd_hpp.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/error_handling_fwd_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="lex_error.html"><img src="../../images/next.png" alt="Next"></a>
<a accesskey="p" href="../../header/boost/parser/error_handling_fwd_hpp.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/error_handling_fwd_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="line_position.html"><img src="../../images/next.png" alt="Next"></a>
</div>
</body>
</html>

View File

@@ -28,17 +28,17 @@
<span class="keyword">public</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">parser</span><span class="special">::</span><span class="identifier">repeat_parser</span><span class="special">&lt;</span> <span class="identifier">Parser</span><span class="special">,</span> <span class="identifier">DelimiterParser</span> <span class="special">&gt;</span>
<span class="special">{</span>
<span class="comment">// <a class="link" href="delimited_seq_parser.html#boost.parser.delimited_seq_parserconstruct-copy-destruct">construct/copy/destruct</a></span>
<a class="link" href="delimited_seq_parser.html#id143-bb"><span class="identifier">delimited_seq_parser</span></a><span class="special">(</span><span class="identifier">Parser</span><span class="special">,</span> <span class="identifier">DelimiterParser</span><span class="special">)</span><span class="special">;</span>
<a class="link" href="delimited_seq_parser.html#id97-bb"><span class="identifier">delimited_seq_parser</span></a><span class="special">(</span>Parser<span class="special">,</span> DelimiterParser<span class="special">)</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id36849"></a><h2>Description</h2>
<a name="id32743"></a><h2>Description</h2>
<p>Repeats the application of another parser <code class="computeroutput">p</code> of type <code class="computeroutput">Parser</code>, <code class="computeroutput">[1, Inf)</code> times, applying a parser <code class="computeroutput">d</code> of type <code class="computeroutput">DelimiterParser</code> in between each pair of applications of <code class="computeroutput">p</code>. The parse succeeds iff <code class="computeroutput">p</code> succeeds at least once, and <code class="computeroutput">d</code> succeeds each time it is applied. The attribute produced is a sequence of the type of attribute produced by <code class="computeroutput">Parser</code>. </p>
<div class="refsect2">
<a name="id36861"></a><h3>
<a name="id32755"></a><h3>
<a name="boost.parser.delimited_seq_parserconstruct-copy-destruct"></a><code class="computeroutput">delimited_seq_parser</code>
public
construct/copy/destruct</h3>
<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><pre class="literallayout"><a name="id143-bb"></a><span class="identifier">delimited_seq_parser</span><span class="special">(</span><span class="identifier">Parser</span> parser<span class="special">,</span> <span class="identifier">DelimiterParser</span> delimiter_parser<span class="special">)</span><span class="special">;</span></pre></li></ol></div>
<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><pre class="literallayout"><a name="id97-bb"></a><span class="identifier">delimited_seq_parser</span><span class="special">(</span>Parser parser<span class="special">,</span> DelimiterParser delimiter_parser<span class="special">)</span><span class="special">;</span></pre></li></ol></div>
</div>
</div>
</div>

View File

@@ -7,12 +7,12 @@
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Parser">
<link rel="up" href="../../header/boost/parser/error_handling_fwd_hpp.html" title="Header &lt;boost/parser/error_handling_fwd.hpp&gt;">
<link rel="prev" href="error_handler_result.html" title="Type error_handler_result">
<link rel="next" href="write_formatted_messa_id57.html" title="Function template write_formatted_message">
<link rel="next" href="write_formatted_messa_id51.html" title="Function template write_formatted_message">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="spirit-nav">
<a accesskey="p" href="error_handler_result.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/error_handling_fwd_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="write_formatted_messa_id57.html"><img src="../../images/next.png" alt="Next"></a>
<a accesskey="p" href="error_handler_result.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/error_handling_fwd_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="write_formatted_messa_id51.html"><img src="../../images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.parser.diagnostic_kind"></a><div class="titlepage"></div>
@@ -27,7 +27,7 @@
<span class="keyword">enum</span> <span class="identifier">diagnostic_kind</span> <span class="special">{</span> error, <a class="link" href="diagnostic_kind.html#boost.parser.diagnostic_kind.warning">warning</a> <span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id33388"></a><h2>Description</h2>
<a name="id30882"></a><h2>Description</h2>
<p>The kinds of diagnostics that can be handled by an error handler. </p>
<div class="variablelist"><dl class="variablelist compact">
<dt><span class="term"><code class="computeroutput">warning</code><a name="boost.parser.diagnostic_kind.warning"></a></span></dt>
@@ -43,7 +43,7 @@
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="error_handler_result.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/error_handling_fwd_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="write_formatted_messa_id57.html"><img src="../../images/next.png" alt="Next"></a>
<a accesskey="p" href="error_handler_result.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/error_handling_fwd_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="write_formatted_messa_id51.html"><img src="../../images/next.png" alt="Next"></a>
</div>
</body>
</html>

View File

@@ -23,9 +23,9 @@
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_hpp.html" title="Header &lt;boost/parser/parser.hpp&gt;">boost/parser/parser.hpp</a>&gt;
</span><span class="keyword">constexpr</span> <a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <span class="identifier">digit_parser</span> <span class="special">&gt;</span> digit<span class="special">;</span></pre></div>
</span>constexpr <a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> digit_parser <span class="special">&gt;</span> digit<span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id42234"></a><h2>Description</h2>
<a name="id37447"></a><h2>Description</h2>
<p>The decimal digit parser. Matches the full set of Unicode decimal digits; in other words, all Unicode code points with the "Nd" character property. Note that this covers all Unicode scripts, only a few of which are Latin. </p>
</div>
</div>

View File

@@ -26,18 +26,18 @@
</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">class</span> <span class="special">&gt;</span> <span class="keyword">class</span> Parser<span class="special">&gt;</span>
<span class="keyword">struct</span> <a class="link" href="directive.html" title="Struct template directive">directive</a> <span class="special">{</span>
<span class="comment">// <a class="link" href="directive.html#id144-bb">public member functions</a></span>
<span class="comment">// <a class="link" href="directive.html#id98-bb">public member functions</a></span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Parser2<span class="special">&gt;</span>
<span class="keyword">constexpr</span> <span class="keyword">auto</span> <a class="link" href="directive.html#id145-bb"><span class="keyword">operator</span><span class="special">[</span><span class="special">]</span></a><span class="special">(</span><a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <span class="identifier">Parser2</span> <span class="special">&gt;</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
constexpr auto <a class="link" href="directive.html#id99-bb"><span class="keyword">operator</span><span class="special">[</span><span class="special">]</span></a><span class="special">(</span><a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> Parser2 <span class="special">&gt;</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id36921"></a><h2>Description</h2>
<a name="id32810"></a><h2>Description</h2>
<p>Represents a unparameterized higher-order parser (e.g. <code class="computeroutput"><a class="link" href="omit_parser.html" title="Struct template omit_parser">omit_parser</a></code>) as a directive (e.g. <code class="computeroutput">omit[other_parser]</code>). </p>
<div class="refsect2">
<a name="id36927"></a><h3>
<a name="id144-bb"></a><code class="computeroutput">directive</code> public member functions</h3>
<a name="id32816"></a><h3>
<a name="id98-bb"></a><code class="computeroutput">directive</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Parser2<span class="special">&gt;</span>
<span class="keyword">constexpr</span> <span class="keyword">auto</span> <a name="id145-bb"></a><span class="keyword">operator</span><span class="special">[</span><span class="special">]</span><span class="special">(</span><a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <span class="identifier">Parser2</span> <span class="special">&gt;</span> rhs<span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li></ol></div>
constexpr auto <a name="id99-bb"></a><span class="keyword">operator</span><span class="special">[</span><span class="special">]</span><span class="special">(</span><a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> Parser2 <span class="special">&gt;</span> rhs<span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li></ol></div>
</div>
</div>
</div>

View File

@@ -23,9 +23,9 @@
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_hpp.html" title="Header &lt;boost/parser/parser.hpp&gt;">boost/parser/parser.hpp</a>&gt;
</span><span class="keyword">constexpr</span> <a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <a class="link" href="float_parser.html" title="Struct template float_parser">float_parser</a><span class="special">&lt;</span> <span class="keyword">double</span> <span class="special">&gt;</span> <span class="special">&gt;</span> double_<span class="special">;</span></pre></div>
</span>constexpr <a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <a class="link" href="float_parser.html" title="Struct template float_parser">float_parser</a><span class="special">&lt;</span> double <span class="special">&gt;</span> <span class="special">&gt;</span> double_<span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id42679"></a><h2>Description</h2>
<a name="id37855"></a><h2>Description</h2>
<p>The <code class="computeroutput">double</code> parser. Produces a <code class="computeroutput">double</code> attribute. </p>
</div>
</div>

View File

@@ -23,9 +23,9 @@
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_fwd_hpp.html" title="Header &lt;boost/parser/parser_fwd.hpp&gt;">boost/parser/parser_fwd.hpp</a>&gt;
</span><span class="keyword">constexpr</span> <span class="keyword">bool</span> enable_optional<span class="special">;</span></pre></div>
</span>constexpr bool enable_optional<span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id46114"></a><h2>Description</h2>
<a name="id40951"></a><h2>Description</h2>
<p>A variable template that indicates that type <code class="computeroutput">T</code> is an optional-like type. </p>
</div>
</div>

View File

@@ -7,12 +7,12 @@
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Parser">
<link rel="up" href="../../header/boost/parser/parser_fwd_hpp.html" title="Header &lt;boost/parser/parser_fwd.hpp&gt;">
<link rel="prev" href="enable_optional.html" title="Global enable_optional">
<link rel="next" href="ws_id.html" title="Global ws_id">
<link rel="next" href="sorted.html" title="Global sorted">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="spirit-nav">
<a accesskey="p" href="enable_optional.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/parser_fwd_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="ws_id.html"><img src="../../images/next.png" alt="Next"></a>
<a accesskey="p" href="enable_optional.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/parser_fwd_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="sorted.html"><img src="../../images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.parser.enable_variant"></a><div class="titlepage"></div>
@@ -23,9 +23,9 @@
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_fwd_hpp.html" title="Header &lt;boost/parser/parser_fwd.hpp&gt;">boost/parser/parser_fwd.hpp</a>&gt;
</span><span class="keyword">constexpr</span> <span class="keyword">bool</span> enable_variant<span class="special">;</span></pre></div>
</span>constexpr bool enable_variant<span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id46131"></a><h2>Description</h2>
<a name="id40966"></a><h2>Description</h2>
<p>A variable template that indicates that type <code class="computeroutput">T</code> is an variant-like type. </p>
</div>
</div>
@@ -36,7 +36,7 @@
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="enable_optional.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/parser_fwd_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="ws_id.html"><img src="../../images/next.png" alt="Next"></a>
<a accesskey="p" href="enable_optional.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/parser_fwd_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="sorted.html"><img src="../../images/next.png" alt="Next"></a>
</div>
</body>
</html>

View File

@@ -23,9 +23,9 @@
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_hpp.html" title="Header &lt;boost/parser/parser.hpp&gt;">boost/parser/parser.hpp</a>&gt;
</span><span class="keyword">constexpr</span> <a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <span class="identifier">eoi_parser</span> <span class="special">&gt;</span> eoi<span class="special">;</span></pre></div>
</span>constexpr <a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> eoi_parser <span class="special">&gt;</span> eoi<span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id42054"></a><h2>Description</h2>
<a name="id37279"></a><h2>Description</h2>
<p>The end-of-input parser. It matches only the end of input. </p>
</div>
</div>

View File

@@ -23,9 +23,9 @@
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_hpp.html" title="Header &lt;boost/parser/parser.hpp&gt;">boost/parser/parser.hpp</a>&gt;
</span><span class="keyword">constexpr</span> <a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <a class="link" href="ws_parser.html" title="Struct template ws_parser">ws_parser</a><span class="special">&lt;</span> <span class="keyword">true</span><span class="special">,</span> <span class="keyword">false</span> <span class="special">&gt;</span> <span class="special">&gt;</span> eol<span class="special">;</span></pre></div>
</span>constexpr <a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <a class="link" href="ws_parser.html" title="Struct template ws_parser">ws_parser</a><span class="special">&lt;</span> true<span class="special">,</span> false <span class="special">&gt;</span> <span class="special">&gt;</span> eol<span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id42163"></a><h2>Description</h2>
<a name="id37384"></a><h2>Description</h2>
<p>The end-of-line parser. This matches "\r\n", or any one of the line break code points from the Unicode Line Break Algorithm, described in <a href="https://unicode.org/reports/tr14" target="_top">https://unicode.org/reports/tr14</a>. Produces no attribute. </p>
</div>
</div>

View File

@@ -25,7 +25,7 @@
</span><span class="emphasis"><em><span class="identifier">unspecified</span></em></span> eps<span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id42032"></a><h2>Description</h2>
<a name="id37259"></a><h2>Description</h2>
<p>The epsilon parser. This matches anything, and consumes no input. If used with an optional predicate, like <code class="computeroutput">eps(pred)</code>, it matches iff <code class="computeroutput">pred(ctx)</code> evaluates to true, where <code class="computeroutput">ctx</code> is the parser context. </p>
</div>
</div>

View File

@@ -27,7 +27,7 @@
<span class="keyword">struct</span> <a class="link" href="eps_parser.html" title="Struct template eps_parser">eps_parser</a> <span class="special">{</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id45371"></a><h2>Description</h2>
<a name="id40263"></a><h2>Description</h2>
<p>Matches anything, and consumes no input. If <code class="computeroutput">Predicate</code> is anything other than <code class="computeroutput">detail::nope</code> (which it is by default), and <code class="computeroutput">pred_(ctx)</code> evaluates to false, where <code class="computeroutput">ctx</code> is the parser context, the parse fails. </p>
</div>
</div>

View File

@@ -27,7 +27,7 @@
<span class="keyword">enum</span> <span class="identifier">error_handler_result</span> <span class="special">{</span> fail, <a class="link" href="error_handler_result.html#boost.parser.error_handler_result.rethrow">rethrow</a> <span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id33362"></a><h2>Description</h2>
<a name="id30856"></a><h2>Description</h2>
<p>The possible actions to take when a parse error is handled by an error handler. </p>
<div class="variablelist"><dl class="variablelist compact">
<dt><span class="term"><code class="computeroutput">rethrow</code><a name="boost.parser.error_handler_result.rethrow"></a></span></dt>

View File

@@ -27,7 +27,7 @@
<span class="keyword">struct</span> <a class="link" href="expect_parser.html" title="Struct template expect_parser">expect_parser</a> <span class="special">{</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id45399"></a><h2>Description</h2>
<a name="id40291"></a><h2>Description</h2>
<p>Applies the given parser <code class="computeroutput">p</code> of type <code class="computeroutput">Parser</code>, producing no attributes and consuming no input. The parse succeeds iff <code class="computeroutput">p</code>'s success is unequal to <code class="computeroutput">FailOnMatch</code>. </p>
</div>
</div>

View File

@@ -25,10 +25,10 @@
</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Iter<span class="special">,</span> <span class="keyword">typename</span> Sentinel<span class="special">&gt;</span>
<span class="identifier">Iter</span> <span class="identifier">find_line_end</span><span class="special">(</span><span class="identifier">Iter</span> it<span class="special">,</span> <span class="identifier">Sentinel</span> last<span class="special">)</span><span class="special">;</span></pre></div>
Iter <span class="identifier">find_line_end</span><span class="special">(</span>Iter it<span class="special">,</span> Sentinel last<span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id32349"></a><h2>Description</h2>
<p>Returns the iterator to the end of the line in which <code class="computeroutput">it</code> is found. Requires non-token iterators. <br>
<a name="id30074"></a><h2>Description</h2>
<p>Returns the iterator to the end of the line in which <code class="computeroutput">it</code> is found. <br>
</p>
</div>
</div>

View File

@@ -6,13 +6,13 @@
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Parser">
<link rel="up" href="../../header/boost/parser/error_handling_hpp.html" title="Header &lt;boost/parser/error_handling.hpp&gt;">
<link rel="prev" href="normalize_iterators_id41.html" title="Function template normalize_iterators">
<link rel="prev" href="write_formatted_expec_id35.html" title="Function template write_formatted_expectation_failure_error_message">
<link rel="next" href="find_line_end.html" title="Function template find_line_end">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="spirit-nav">
<a accesskey="p" href="normalize_iterators_id41.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/error_handling_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="find_line_end.html"><img src="../../images/next.png" alt="Next"></a>
<a accesskey="p" href="write_formatted_expec_id35.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/error_handling_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="find_line_end.html"><img src="../../images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.parser.find_line_position"></a><div class="titlepage"></div>
@@ -25,10 +25,10 @@
</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Iter<span class="special">&gt;</span>
<a class="link" href="line_position.html" title="Struct template line_position">line_position</a><span class="special">&lt;</span> <span class="identifier">Iter</span> <span class="special">&gt;</span> <span class="identifier">find_line_position</span><span class="special">(</span><span class="identifier">Iter</span> first<span class="special">,</span> <span class="identifier">Iter</span> it<span class="special">)</span><span class="special">;</span></pre></div>
<a class="link" href="line_position.html" title="Struct template line_position">line_position</a><span class="special">&lt;</span> Iter <span class="special">&gt;</span> <span class="identifier">find_line_position</span><span class="special">(</span>Iter first<span class="special">,</span> Iter it<span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id32317"></a><h2>Description</h2>
<p>Returns the <code class="computeroutput"><code class="computeroutput"><a class="link" href="line_position.html" title="Struct template line_position">line_position</a></code></code> for <code class="computeroutput">it</code>, counting lines from the beginning of the input <code class="computeroutput">first</code>. Requires non-token iterators. </p>
<a name="id30045"></a><h2>Description</h2>
<p>Returns the <code class="computeroutput"><code class="computeroutput"><a class="link" href="line_position.html" title="Struct template line_position">line_position</a></code></code> for <code class="computeroutput">it</code>, counting lines from the beginning of the input <code class="computeroutput">first</code>. </p>
</div>
</div>
<div class="copyright-footer">Copyright © 2020 T. Zachary Laine<p>
@@ -38,7 +38,7 @@
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="normalize_iterators_id41.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/error_handling_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="find_line_end.html"><img src="../../images/next.png" alt="Next"></a>
<a accesskey="p" href="write_formatted_expec_id35.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/error_handling_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="find_line_end.html"><img src="../../images/next.png" alt="Next"></a>
</div>
</body>
</html>

View File

@@ -23,9 +23,9 @@
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_hpp.html" title="Header &lt;boost/parser/parser.hpp&gt;">boost/parser/parser.hpp</a>&gt;
</span><span class="keyword">constexpr</span> <a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <a class="link" href="float_parser.html" title="Struct template float_parser">float_parser</a><span class="special">&lt;</span> <span class="keyword">float</span> <span class="special">&gt;</span> <span class="special">&gt;</span> float_<span class="special">;</span></pre></div>
</span>constexpr <a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <a class="link" href="float_parser.html" title="Struct template float_parser">float_parser</a><span class="special">&lt;</span> float <span class="special">&gt;</span> <span class="special">&gt;</span> float_<span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id42655"></a><h2>Description</h2>
<a name="id37833"></a><h2>Description</h2>
<p>The <code class="computeroutput">float</code> parser. Produces a <code class="computeroutput">float</code> attribute. </p>
</div>
</div>

View File

@@ -27,7 +27,7 @@
<span class="keyword">struct</span> <a class="link" href="float_parser.html" title="Struct template float_parser">float_parser</a> <span class="special">{</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id45425"></a><h2>Description</h2>
<a name="id40317"></a><h2>Description</h2>
<p>Matches a floating point number, producing an attribute of type <code class="computeroutput">T</code>. </p>
</div>
</div>

View File

@@ -25,9 +25,9 @@
</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> U<span class="special">,</span> <span class="identifier">U</span> I<span class="special">&gt;</span>
<span class="keyword">constexpr</span> <span class="keyword">decltype</span><span class="special">(</span><span class="keyword">auto</span><span class="special">)</span> <span class="identifier">get</span><span class="special">(</span><span class="identifier">T</span> <span class="special">&amp;&amp;</span> x<span class="special">,</span> <span class="identifier">integral_constant</span><span class="special">&lt;</span> <span class="identifier">U</span><span class="special">,</span> <span class="identifier">I</span> <span class="special">&gt;</span> i<span class="special">)</span><span class="special">;</span></pre></div>
constexpr decltype<span class="special">(</span>auto<span class="special">)</span> <span class="identifier">get</span><span class="special">(</span>T <span class="special">&amp;&amp;</span> x<span class="special">,</span> <span class="identifier">integral_constant</span><span class="special">&lt;</span> U<span class="special">,</span> <span class="identifier">I</span> <span class="special">&gt;</span> i<span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id51139"></a><h2>Description</h2>
<a name="id45496"></a><h2>Description</h2>
<p>An accessor that returns a reference to the <code class="computeroutput">I</code>-th data member of an aggregate struct or <code class="computeroutput">boost::parser::tuple</code>. </p>
</div>
</div>

View File

@@ -23,9 +23,9 @@
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_hpp.html" title="Header &lt;boost/parser/parser.hpp&gt;">boost/parser/parser.hpp</a>&gt;
</span><span class="keyword">constexpr</span> <a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <a class="link" href="uint_parser.html" title="Struct template uint_parser">uint_parser</a><span class="special">&lt;</span> <span class="keyword">unsigned</span> <span class="keyword">int</span><span class="special">,</span> <span class="number">16</span> <span class="special">&gt;</span> <span class="special">&gt;</span> hex<span class="special">;</span></pre></div>
</span>constexpr <a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <a class="link" href="uint_parser.html" title="Struct template uint_parser">uint_parser</a><span class="special">&lt;</span> unsigned int<span class="special">,</span> <span class="number">16</span> <span class="special">&gt;</span> <span class="special">&gt;</span> hex<span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id42416"></a><h2>Description</h2>
<a name="id37618"></a><h2>Description</h2>
<p>The hexadecimal unsigned integer parser. Produces an <code class="computeroutput">unsigned int</code> attribute. To parse a particular value <code class="computeroutput">x</code>, use <code class="computeroutput">hex(x)</code>. </p>
</div>
</div>

View File

@@ -25,7 +25,7 @@
</span><span class="emphasis"><em><span class="identifier">unspecified</span></em></span> hex_digit<span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id42250"></a><h2>Description</h2>
<a name="id37463"></a><h2>Description</h2>
<p>The hexidecimal digit parser. Matches the full set of Unicode hexidecimal digits (upper or lower case); in other words, all Unicode code points with the "Hex_Digit" character property. </p>
</div>
</div>

View File

@@ -24,9 +24,9 @@
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_hpp.html" title="Header &lt;boost/parser/parser.hpp&gt;">boost/parser/parser.hpp</a>&gt;
</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Predicate<span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">auto</span> <span class="identifier">if_</span><span class="special">(</span><span class="identifier">Predicate</span> pred<span class="special">)</span><span class="special">;</span></pre></div>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Predicate<span class="special">&gt;</span> constexpr auto <span class="identifier">if_</span><span class="special">(</span>Predicate pred<span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id43041"></a><h2>Description</h2>
<a name="id38179"></a><h2>Description</h2>
<p>Returns an <code class="computeroutput"><code class="computeroutput"><a class="link" href="if_directive.html" title="Struct template if_directive">if_directive</a></code></code> that fails if the given predicate <code class="computeroutput">pred</code> is <code class="computeroutput">false</code>, and otherwise, applies another parser. For instance, in <code class="computeroutput">if_(pred)[p]</code>, <code class="computeroutput">p</code> is only applied if <code class="computeroutput">pred</code> is true. </p>
</div>
</div>

View File

@@ -26,21 +26,21 @@
</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Predicate<span class="special">&gt;</span>
<span class="keyword">struct</span> <a class="link" href="if_directive.html" title="Struct template if_directive">if_directive</a> <span class="special">{</span>
<span class="comment">// <a class="link" href="if_directive.html#id146-bb">public member functions</a></span>
<span class="comment">// <a class="link" href="if_directive.html#id100-bb">public member functions</a></span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Parser2<span class="special">&gt;</span>
<span class="keyword">constexpr</span> <span class="keyword">auto</span> <a class="link" href="if_directive.html#id147-bb"><span class="keyword">operator</span><span class="special">[</span><span class="special">]</span></a><span class="special">(</span><a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <span class="identifier">Parser2</span> <span class="special">&gt;</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
constexpr auto <a class="link" href="if_directive.html#id101-bb"><span class="keyword">operator</span><span class="special">[</span><span class="special">]</span></a><span class="special">(</span><a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> Parser2 <span class="special">&gt;</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
<span class="comment">// public data members</span>
<span class="identifier">Predicate</span> <span class="identifier">pred_</span><span class="special">;</span>
Predicate <span class="identifier">pred_</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id36998"></a><h2>Description</h2>
<a name="id32880"></a><h2>Description</h2>
<p>Represents a sequence parser, the first parser of which is an <code class="computeroutput">epsilon_parser</code> with predicate, as a directive (e.g. <code class="computeroutput">if_(pred)[p]</code>). </p>
<div class="refsect2">
<a name="id37003"></a><h3>
<a name="id146-bb"></a><code class="computeroutput">if_directive</code> public member functions</h3>
<a name="id32885"></a><h3>
<a name="id100-bb"></a><code class="computeroutput">if_directive</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Parser2<span class="special">&gt;</span>
<span class="keyword">constexpr</span> <span class="keyword">auto</span> <a name="id147-bb"></a><span class="keyword">operator</span><span class="special">[</span><span class="special">]</span><span class="special">(</span><a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <span class="identifier">Parser2</span> <span class="special">&gt;</span> rhs<span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li></ol></div>
constexpr auto <a name="id101-bb"></a><span class="keyword">operator</span><span class="special">[</span><span class="special">]</span><span class="special">(</span><a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> Parser2 <span class="special">&gt;</span> rhs<span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li></ol></div>
</div>
</div>
</div>

View File

@@ -23,9 +23,9 @@
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_hpp.html" title="Header &lt;boost/parser/parser.hpp&gt;">boost/parser/parser.hpp</a>&gt;
</span><span class="keyword">constexpr</span> <a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <a class="link" href="int_parser.html" title="Struct template int_parser">int_parser</a><span class="special">&lt;</span> <span class="keyword">int</span> <span class="special">&gt;</span> <span class="special">&gt;</span> int_<span class="special">;</span></pre></div>
</span>constexpr <a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <a class="link" href="int_parser.html" title="Struct template int_parser">int_parser</a><span class="special">&lt;</span> int <span class="special">&gt;</span> <span class="special">&gt;</span> int_<span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id42576"></a><h2>Description</h2>
<a name="id37761"></a><h2>Description</h2>
<p>The <code class="computeroutput">int</code> parser. Produces an <code class="computeroutput">int</code> attribute. To parse a particular value <code class="computeroutput">x</code>, use <code class="computeroutput">int_(x)</code>. </p>
</div>
</div>

View File

@@ -28,7 +28,7 @@
<span class="keyword">struct</span> <a class="link" href="int_parser.html" title="Struct template int_parser">int_parser</a> <span class="special">{</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id45464"></a><h2>Description</h2>
<a name="id40356"></a><h2>Description</h2>
<p>Matches a signed number of radix <code class="computeroutput">Radix</code>, of at least <code class="computeroutput">MinDigits</code> and at most <code class="computeroutput">MaxDigits</code>, producing an attribute of type <code class="computeroutput">T</code>. Fails on any other input. The parse will also fail if <code class="computeroutput">Expected</code> is anything but <code class="computeroutput">detail::nope</code> (which it is by default), and the produced attribute is not equal to <code class="computeroutput">expected_</code>. <code class="computeroutput">Radix</code> must be one of <code class="computeroutput">2</code>, <code class="computeroutput">8</code>, <code class="computeroutput">10</code>, or <code class="computeroutput">16</code>. </p>
</div>
</div>

View File

@@ -24,9 +24,9 @@
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/tuple_hpp.html" title="Header &lt;boost/parser/tuple.hpp&gt;">boost/parser/tuple.hpp</a>&gt;
</span>
<span class="keyword">typedef</span> <span class="identifier">hana</span><span class="special">::</span><span class="identifier">integral_constant</span><span class="special">&lt;</span> <span class="identifier">T</span><span class="special">,</span> <span class="identifier">I</span> <span class="special">&gt;</span> <span class="identifier">integral_constant</span><span class="special">;</span></pre></div>
<span class="keyword">typedef</span> <span class="identifier">hana</span><span class="special">::</span><span class="identifier">integral_constant</span><span class="special">&lt;</span> T<span class="special">,</span> <span class="identifier">I</span> <span class="special">&gt;</span> <span class="identifier">integral_constant</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id51071"></a><h2>Description</h2>
<a name="id45435"></a><h2>Description</h2>
<p>A template alias that is <code class="computeroutput">boost::hana::integral_constant&lt;T, I&gt;</code> if <code class="computeroutput">BOOST_PARSER_USE_HANA_TUPLE</code> is defined, and <code class="computeroutput">std::integral_constant&lt;T, I&gt;</code> otherwise. </p>
</div>
</div>

View File

@@ -1,42 +0,0 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Global is_token_v</title>
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Parser">
<link rel="up" href="../../header/boost/parser/parser_fwd_hpp.html" title="Header &lt;boost/parser/parser_fwd.hpp&gt;">
<link rel="prev" href="character_id.html" title="Global character_id">
<link rel="next" href="sorted.html" title="Global sorted">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="spirit-nav">
<a accesskey="p" href="character_id.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/parser_fwd_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="sorted.html"><img src="../../images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.parser.is_token_v"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Global is_token_v</span></h2>
<p>boost::parser::is_token_v</p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_fwd_hpp.html" title="Header &lt;boost/parser/parser_fwd.hpp&gt;">boost/parser/parser_fwd.hpp</a>&gt;
</span><span class="keyword">constexpr</span> <span class="keyword">bool</span> is_token_v<span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id46180"></a><h2>Description</h2>
<p>A type trait that evaluates to <code class="computeroutput">true</code> iff <code class="computeroutput">T</code> is a specialization of <code class="computeroutput"><a class="link" href="token.html" title="Struct template token">boost::parser::token</a></code>. </p>
</div>
</div>
<div class="copyright-footer">Copyright © 2020 T. Zachary Laine<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="character_id.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/parser_fwd_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="sorted.html"><img src="../../images/next.png" alt="Next"></a>
</div>
</body>
</html>

View File

@@ -1,65 +0,0 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Struct template lex_error</title>
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Parser">
<link rel="up" href="../../header/boost/parser/error_handling_fwd_hpp.html" title="Header &lt;boost/parser/error_handling_fwd.hpp&gt;">
<link rel="prev" href="default_error_handler.html" title="Struct default_error_handler">
<link rel="next" href="line_position.html" title="Struct template line_position">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="spirit-nav">
<a accesskey="p" href="default_error_handler.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/error_handling_fwd_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="line_position.html"><img src="../../images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.parser.lex_error"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Struct template lex_error</span></h2>
<p>boost::parser::lex_error</p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/error_handling_fwd_hpp.html" title="Header &lt;boost/parser/error_handling_fwd.hpp&gt;">boost/parser/error_handling_fwd.hpp</a>&gt;
</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Iter<span class="special">&gt;</span>
<span class="keyword">struct</span> <a class="link" href="lex_error.html" title="Struct template lex_error">lex_error</a> <span class="special">:</span> <span class="keyword">public</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span> <span class="special">{</span>
<span class="comment">// <a class="link" href="lex_error.html#boost.parser.lex_errorconstruct-copy-destruct">construct/copy/destruct</a></span>
<a class="link" href="lex_error.html#id64-bb"><span class="identifier">lex_error</span></a><span class="special">(</span><span class="identifier">Iter</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">)</span><span class="special">;</span>
<span class="comment">// <a class="link" href="lex_error.html#id65-bb">public member functions</a></span>
<span class="keyword">char</span> <span class="keyword">const</span> <span class="special">*</span> <a class="link" href="lex_error.html#id66-bb"><span class="identifier">what</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
<span class="comment">// public data members</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="identifier">message</span><span class="special">;</span>
<span class="identifier">Iter</span> <span class="identifier">iter</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id32771"></a><h2>Description</h2>
<p>The exception thrown when a lexing error is encountered, consisting of an iterator to the point of failure, and a description of the value expected at the point of failure in <code class="computeroutput">what()</code>. </p>
<div class="refsect2">
<a name="id32775"></a><h3>
<a name="boost.parser.lex_errorconstruct-copy-destruct"></a><code class="computeroutput">lex_error</code>
public
construct/copy/destruct</h3>
<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><pre class="literallayout"><a name="id64-bb"></a><span class="identifier">lex_error</span><span class="special">(</span><span class="identifier">Iter</span> it<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> msg<span class="special">)</span><span class="special">;</span></pre></li></ol></div>
</div>
<div class="refsect2">
<a name="id32793"></a><h3>
<a name="id65-bb"></a><code class="computeroutput">lex_error</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><pre class="literallayout"><span class="keyword">char</span> <span class="keyword">const</span> <span class="special">*</span> <a name="id66-bb"></a><span class="identifier">what</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li></ol></div>
</div>
</div>
</div>
<div class="copyright-footer">Copyright © 2020 T. Zachary Laine<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="default_error_handler.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/error_handling_fwd_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="line_position.html"><img src="../../images/next.png" alt="Next"></a>
</div>
</body>
</html>

View File

@@ -23,9 +23,9 @@
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_hpp.html" title="Header &lt;boost/parser/parser.hpp&gt;">boost/parser/parser.hpp</a>&gt;
</span><span class="keyword">constexpr</span> <a class="link" href="directive.html" title="Struct template directive">directive</a><span class="special">&lt;</span> <a class="link" href="lexeme_parser.html" title="Struct template lexeme_parser">lexeme_parser</a> <span class="special">&gt;</span> lexeme<span class="special">;</span></pre></div>
</span>constexpr <a class="link" href="directive.html" title="Struct template directive">directive</a><span class="special">&lt;</span> <a class="link" href="lexeme_parser.html" title="Struct template lexeme_parser">lexeme_parser</a> <span class="special">&gt;</span> lexeme<span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id41901"></a><h2>Description</h2>
<a name="id37132"></a><h2>Description</h2>
<p>The <code class="computeroutput">lexeme</code> directive, whose <code class="computeroutput">operator[]</code> returns a <code class="computeroutput"><a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a>&lt;<a class="link" href="lexeme_parser.html" title="Struct template lexeme_parser">lexeme_parser</a>&lt;P&gt;&gt;</code> from a given parser of type <code class="computeroutput"><a class="link" href="parser_interface.html" title="Struct template parser_interface">parser_interface</a>&lt;P&gt;</code>. </p>
</div>
</div>

View File

@@ -27,7 +27,7 @@
<span class="keyword">struct</span> <a class="link" href="lexeme_parser.html" title="Struct template lexeme_parser">lexeme_parser</a> <span class="special">{</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id45498"></a><h2>Description</h2>
<a name="id40390"></a><h2>Description</h2>
<p>Applies the given parser <code class="computeroutput">p</code> of type <code class="computeroutput">Parser</code>, disabling the current skipper in use, if any. The parse succeeds iff <code class="computeroutput">p</code> succeeds. The attribute produced is the type of attribute produced by <code class="computeroutput">Parser</code>. </p>
</div>
</div>

View File

@@ -1,42 +0,0 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Global lexer</title>
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Parser">
<link rel="up" href="../../header/boost/parser/lexer_hpp.html" title="Header &lt;boost/parser/lexer.hpp&gt;">
<link rel="prev" href="token_chars.html" title="Global token_chars">
<link rel="next" href="to_tokens.html" title="Global to_tokens">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="spirit-nav">
<a accesskey="p" href="token_chars.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/lexer_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="to_tokens.html"><img src="../../images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.parser.lexer"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Global lexer</span></h2>
<p>boost::parser::lexer</p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/lexer_hpp.html" title="Header &lt;boost/parser/lexer.hpp&gt;">boost/parser/lexer.hpp</a>&gt;
</span><span class="keyword">constexpr</span> <span class="keyword">auto</span> lexer<span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id34726"></a><h2>Description</h2>
<p>A variable template used to generate a lexer for use in token parsing. The resulting lexer has no associated tokens. Associate tokens with it by piping <code class="computeroutput">boost::parser::token_spec</code>s and/or <code class="computeroutput">boost::parser::token_chars</code>s after it. </p>
</div>
</div>
<div class="copyright-footer">Copyright © 2020 T. Zachary Laine<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="token_chars.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/lexer_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="to_tokens.html"><img src="../../images/next.png" alt="Next"></a>
</div>
</body>
</html>

View File

@@ -1,87 +0,0 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Struct template lexer_t</title>
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Parser">
<link rel="up" href="../../header/boost/parser/lexer_hpp.html" title="Header &lt;boost/parser/lexer.hpp&gt;">
<link rel="prev" href="../../header/boost/parser/lexer_hpp.html" title="Header &lt;boost/parser/lexer.hpp&gt;">
<link rel="next" href="token.html" title="Struct template token">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="spirit-nav">
<a accesskey="p" href="../../header/boost/parser/lexer_hpp.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/lexer_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="token.html"><img src="../../images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.parser.lexer_t"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Struct template lexer_t</span></h2>
<p>boost::parser::lexer_t</p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/lexer_hpp.html" title="Header &lt;boost/parser/lexer.hpp&gt;">boost/parser/lexer.hpp</a>&gt;
</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> CharType<span class="special">,</span> <span class="keyword">typename</span> ID<span class="special">,</span> <span class="identifier">ctll</span><span class="special">::</span><span class="identifier">fixed_string</span> WsStr <span class="special">=</span> <span class="string">"\\s+"</span><span class="special">,</span>
<span class="identifier">ctll</span><span class="special">::</span><span class="identifier">fixed_string</span> RegexStr <span class="special">=</span> <span class="string">""</span><span class="special">,</span>
<span class="identifier">unspecified</span> IDs <span class="special">=</span> detail::nttp_array<span class="special">&lt;</span><span class="special">-</span><span class="number">1</span><span class="special">&gt;</span><span class="special">{</span><span class="special">}</span><span class="special">,</span>
<span class="identifier">unspecified</span> Specs <span class="special">=</span> detail::nttp_array<span class="special">&lt;</span>detail::parse_spec<span class="special">{</span><span class="special">}</span><span class="special">&gt;</span><span class="special">{</span><span class="special">}</span><span class="special">&gt;</span>
<span class="keyword">struct</span> <a class="link" href="lexer_t.html" title="Struct template lexer_t">lexer_t</a> <span class="special">{</span>
<span class="comment">// types</span>
<span class="keyword">typedef</span> <span class="identifier">ID</span> <a name="boost.parser.lexer_t.id_type"></a><span class="identifier">id_type</span><span class="special">;</span>
<span class="keyword">typedef</span> <a class="link" href="token.html" title="Struct template token">token</a><span class="special">&lt;</span> <span class="identifier">CharType</span> <span class="special">&gt;</span> <a name="boost.parser.lexer_t.token_type"></a><span class="identifier">token_type</span><span class="special">;</span>
<span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string_view</span><span class="special">&lt;</span> <span class="identifier">CharType</span> <span class="special">&gt;</span> <a name="boost.parser.lexer_t.string_view"></a><span class="identifier">string_view</span><span class="special">;</span>
<span class="comment">// <a class="link" href="lexer_t.html#id83-bb">public static functions</a></span>
<span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="identifier">size_t</span> <a class="link" href="lexer_t.html#id84-bb"><span class="identifier">size</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
<span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="keyword">auto</span> <a class="link" href="lexer_t.html#id85-bb"><span class="identifier">ids</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
<span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="keyword">auto</span> <a class="link" href="lexer_t.html#id86-bb"><span class="identifier">specs</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="identifier">parsable_range</span> V<span class="special">&gt;</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="keyword">auto</span> <a class="link" href="lexer_t.html#id87-bb"><span class="identifier">regex_range</span></a><span class="special">(</span><span class="identifier">V</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
<span class="comment">// <a class="link" href="lexer_t.html#id88-bb">public member functions</a></span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="identifier">ctll</span><span class="special">::</span><span class="identifier">fixed_string</span> RegexStr2<span class="special">,</span> <span class="keyword">auto</span> ID2<span class="special">,</span> <span class="keyword">typename</span> ValueType<span class="special">,</span>
<span class="keyword">int</span> Base<span class="special">&gt;</span>
<span class="keyword">constexpr</span> <span class="keyword">auto</span> <a class="link" href="lexer_t.html#id89-bb"><span class="keyword">operator</span><span class="special">|</span></a><span class="special">(</span><span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">auto</span> Ch<span class="special">,</span> <span class="keyword">auto</span><span class="special">...</span> Chs<span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">auto</span> <a class="link" href="lexer_t.html#id90-bb"><span class="keyword">operator</span><span class="special">|</span></a><span class="special">(</span><span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<span class="comment">// public data members</span>
<span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="identifier">ctll</span><span class="special">::</span><span class="identifier">fixed_string</span> <span class="identifier">ws_str</span><span class="special">;</span>
<span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="identifier">ctll</span><span class="special">::</span><span class="identifier">fixed_string</span> <span class="identifier">regex_str</span><span class="special">;</span>
<span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="keyword">bool</span> <span class="identifier">has_ws</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id33835"></a><h2>Description</h2>
<p>The type used to represent the lexer used to tokenize input during token parsing. Do not use this directly; use <code class="computeroutput">boost::parser::lexer</code> instead. </p>
<div class="refsect2">
<a name="id33839"></a><h3>
<a name="id83-bb"></a><code class="computeroutput">lexer_t</code> public static functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="identifier">size_t</span> <a name="id84-bb"></a><span class="identifier">size</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="keyword">auto</span> <a name="id85-bb"></a><span class="identifier">ids</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="keyword">auto</span> <a name="id86-bb"></a><span class="identifier">specs</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="identifier">parsable_range</span> V<span class="special">&gt;</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="keyword">auto</span> <a name="id87-bb"></a><span class="identifier">regex_range</span><span class="special">(</span><span class="identifier">V</span> <span class="special">&amp;</span> base<span class="special">)</span><span class="special">;</span></pre></li>
</ol></div>
</div>
<div class="refsect2">
<a name="id33894"></a><h3>
<a name="id88-bb"></a><code class="computeroutput">lexer_t</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="identifier">ctll</span><span class="special">::</span><span class="identifier">fixed_string</span> RegexStr2<span class="special">,</span> <span class="keyword">auto</span> ID2<span class="special">,</span> <span class="keyword">typename</span> ValueType<span class="special">,</span> <span class="keyword">int</span> Base<span class="special">&gt;</span>
<span class="keyword">constexpr</span> <span class="keyword">auto</span> <a name="id89-bb"></a><span class="keyword">operator</span><span class="special">|</span><span class="special">(</span><span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">auto</span> Ch<span class="special">,</span> <span class="keyword">auto</span><span class="special">...</span> Chs<span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">auto</span> <a name="id90-bb"></a><span class="keyword">operator</span><span class="special">|</span><span class="special">(</span><span class="emphasis"><em><span class="identifier">unspecified</span></em></span> rhs<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
</ol></div>
</div>
</div>
</div>
<div class="copyright-footer">Copyright © 2020 T. Zachary Laine<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../../header/boost/parser/lexer_hpp.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/lexer_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="token.html"><img src="../../images/next.png" alt="Next"></a>
</div>
</body>
</html>

View File

@@ -6,13 +6,13 @@
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Parser">
<link rel="up" href="../../header/boost/parser/error_handling_fwd_hpp.html" title="Header &lt;boost/parser/error_handling_fwd.hpp&gt;">
<link rel="prev" href="lex_error.html" title="Struct template lex_error">
<link rel="prev" href="default_error_handler.html" title="Struct default_error_handler">
<link rel="next" href="parse_error.html" title="Struct template parse_error">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="spirit-nav">
<a accesskey="p" href="lex_error.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/error_handling_fwd_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="parse_error.html"><img src="../../images/next.png" alt="Next"></a>
<a accesskey="p" href="default_error_handler.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/error_handling_fwd_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="parse_error.html"><img src="../../images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.parser.line_position"></a><div class="titlepage"></div>
@@ -27,12 +27,12 @@
<span class="keyword">struct</span> <a class="link" href="line_position.html" title="Struct template line_position">line_position</a> <span class="special">{</span>
<span class="comment">// public data members</span>
<span class="identifier">Iter</span> <span class="identifier">line_start</span><span class="special">;</span>
<span class="identifier">int64_t</span> <span class="identifier">line_number</span><span class="special">;</span>
<span class="identifier">int64_t</span> <span class="identifier">column_number</span><span class="special">;</span>
Iter <span class="identifier">line_start</span><span class="special">;</span>
int64_t <span class="identifier">line_number</span><span class="special">;</span>
int64_t <span class="identifier">column_number</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id32840"></a><h2>Description</h2>
<a name="id30404"></a><h2>Description</h2>
<p>A position within a line, consisting of an iterator to the start of the line, the line number, and the column number. </p>
</div>
</div>
@@ -43,7 +43,7 @@
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="lex_error.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/error_handling_fwd_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="parse_error.html"><img src="../../images/next.png" alt="Next"></a>
<a accesskey="p" href="default_error_handler.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/parser/error_handling_fwd_hpp.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="parse_error.html"><img src="../../images/next.png" alt="Next"></a>
</div>
</body>
</html>

View File

@@ -24,9 +24,9 @@
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_hpp.html" title="Header &lt;boost/parser/parser.hpp&gt;">boost/parser/parser.hpp</a>&gt;
</span>
<span class="keyword">constexpr</span> <span class="keyword">auto</span> <span class="identifier">lit</span><span class="special">(</span><span class="identifier">char8_t</span> c<span class="special">)</span><span class="special">;</span></pre></div>
constexpr auto <span class="identifier">lit</span><span class="special">(</span>char8_t c<span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id42945"></a><h2>Description</h2>
<a name="id38095"></a><h2>Description</h2>
<p>Returns a literal code point parser that produces no attribute. </p>
</div>
</div>

View File

@@ -24,9 +24,9 @@
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_hpp.html" title="Header &lt;boost/parser/parser.hpp&gt;">boost/parser/parser.hpp</a>&gt;
</span>
<span class="keyword">constexpr</span> <span class="keyword">auto</span> <span class="identifier">lit</span><span class="special">(</span><span class="keyword">char32_t</span> c<span class="special">)</span><span class="special">;</span></pre></div>
constexpr auto <span class="identifier">lit</span><span class="special">(</span>char32_t c<span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id42965"></a><h2>Description</h2>
<a name="id38112"></a><h2>Description</h2>
<p>Returns a literal code point parser that produces no attribute. </p>
</div>
</div>

View File

@@ -24,9 +24,9 @@
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_hpp.html" title="Header &lt;boost/parser/parser.hpp&gt;">boost/parser/parser.hpp</a>&gt;
</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="identifier">parsable_range_like</span> R<span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">auto</span> <span class="identifier">lit</span><span class="special">(</span><span class="identifier">R</span> <span class="special">&amp;&amp;</span> str<span class="special">)</span><span class="special">;</span></pre></div>
<span class="keyword">template</span><span class="special">&lt;</span><span class="identifier">parsable_range_like</span> R<span class="special">&gt;</span> constexpr auto <span class="identifier">lit</span><span class="special">(</span>R <span class="special">&amp;&amp;</span> str<span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id43016"></a><h2>Description</h2>
<a name="id38157"></a><h2>Description</h2>
<p>Returns a parser that matches <code class="computeroutput">str</code> that produces no attribute. </p>
</div>
</div>

View File

@@ -24,9 +24,9 @@
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/parser/parser_hpp.html" title="Header &lt;boost/parser/parser.hpp&gt;">boost/parser/parser.hpp</a>&gt;
</span>
<span class="keyword">constexpr</span> <span class="keyword">auto</span> <span class="identifier">lit</span><span class="special">(</span><span class="keyword">char</span> c<span class="special">)</span><span class="special">;</span></pre></div>
constexpr auto <span class="identifier">lit</span><span class="special">(</span>char c<span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id42925"></a><h2>Description</h2>
<a name="id38078"></a><h2>Description</h2>
<p>Returns a literal code point parser that produces no attribute. </p>
</div>
</div>

View File

@@ -15,7 +15,7 @@
<a accesskey="p" href="../../../header/boost/parser/tuple_hpp.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../header/boost/parser/tuple_hpp.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="../tuple.html"><img src="../../../images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.parser.literals.operator_c_id372"></a><div class="titlepage"></div>
<a name="boost.parser.literals.operator_c_id324"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Function template operator""_c</span></h2>
<p>boost::parser::literals::operator""_c</p>
@@ -24,9 +24,9 @@
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../../header/boost/parser/tuple_hpp.html" title="Header &lt;boost/parser/tuple.hpp&gt;">boost/parser/tuple.hpp</a>&gt;
</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">char</span><span class="special">...</span> chars<span class="special">&gt;</span> <span class="keyword">constexpr</span> <span class="keyword">auto</span> <span class="keyword">operator</span><span class="string">""</span><span class="identifier">_c</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></div>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">char</span><span class="special">...</span> chars<span class="special">&gt;</span> constexpr auto <span class="keyword">operator</span><span class="string">""</span><span class="identifier">_c</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id51020"></a><h2>Description</h2>
<a name="id45385"></a><h2>Description</h2>
<p>A literal that can be used to concisely name <code class="computeroutput">parser::llong</code> integral constants. </p>
</div>
</div>

View File

@@ -1,43 +0,0 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Function operator""_l</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../../index.html" title="Chapter 1. Boost.Parser">
<link rel="up" href="../../../header/boost/parser/parser_hpp.html" title="Header &lt;boost/parser/parser.hpp&gt;">
<link rel="prev" href="operator_l_id133.html" title='Function operator""_l'>
<link rel="next" href="operator_l_id135.html" title='Function operator""_l'>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="spirit-nav">
<a accesskey="p" href="operator_l_id133.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../header/boost/parser/parser_hpp.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="operator_l_id135.html"><img src="../../../images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.parser.literals.operator_l_id134"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Function operator""_l</span></h2>
<p>boost::parser::literals::operator""_l</p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../../header/boost/parser/parser_hpp.html" title="Header &lt;boost/parser/parser.hpp&gt;">boost/parser/parser.hpp</a>&gt;
</span>
<span class="keyword">constexpr</span> <span class="keyword">auto</span> <span class="keyword">operator</span><span class="string">""</span><span class="identifier">_l</span><span class="special">(</span><span class="keyword">char</span> <span class="keyword">const</span> <span class="special">*</span> str<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span><span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id36541"></a><h2>Description</h2>
<p>Returns a literal parser equivalent to <code class="computeroutput">lit(str)</code>. </p>
</div>
</div>
<div class="copyright-footer">Copyright © 2020 T. Zachary Laine<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="operator_l_id133.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../header/boost/parser/parser_hpp.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="operator_l_id135.html"><img src="../../../images/next.png" alt="Next"></a>
</div>
</body>
</html>

View File

@@ -1,43 +0,0 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Function operator""_l</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../../index.html" title="Chapter 1. Boost.Parser">
<link rel="up" href="../../../header/boost/parser/parser_hpp.html" title="Header &lt;boost/parser/parser.hpp&gt;">
<link rel="prev" href="operator_l_id134.html" title='Function operator""_l'>
<link rel="next" href="operator_l_id136.html" title='Function operator""_l'>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="spirit-nav">
<a accesskey="p" href="operator_l_id134.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../header/boost/parser/parser_hpp.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="operator_l_id136.html"><img src="../../../images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.parser.literals.operator_l_id135"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Function operator""_l</span></h2>
<p>boost::parser::literals::operator""_l</p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../../header/boost/parser/parser_hpp.html" title="Header &lt;boost/parser/parser.hpp&gt;">boost/parser/parser.hpp</a>&gt;
</span>
<span class="keyword">constexpr</span> <span class="keyword">auto</span> <span class="keyword">operator</span><span class="string">""</span><span class="identifier">_l</span><span class="special">(</span><span class="identifier">char8_t</span> <span class="keyword">const</span> <span class="special">*</span> str<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span><span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id36570"></a><h2>Description</h2>
<p>Returns a literal parser equivalent to <code class="computeroutput">lit(str)</code>. </p>
</div>
</div>
<div class="copyright-footer">Copyright © 2020 T. Zachary Laine<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="operator_l_id134.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../header/boost/parser/parser_hpp.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="operator_l_id136.html"><img src="../../../images/next.png" alt="Next"></a>
</div>
</body>
</html>

View File

@@ -1,43 +0,0 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Function operator""_l</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../../index.html" title="Chapter 1. Boost.Parser">
<link rel="up" href="../../../header/boost/parser/parser_hpp.html" title="Header &lt;boost/parser/parser.hpp&gt;">
<link rel="prev" href="operator_l_id135.html" title='Function operator""_l'>
<link rel="next" href="operator_p_id137.html" title='Function operator""_p'>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="spirit-nav">
<a accesskey="p" href="operator_l_id135.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../header/boost/parser/parser_hpp.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="operator_p_id137.html"><img src="../../../images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.parser.literals.operator_l_id136"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Function operator""_l</span></h2>
<p>boost::parser::literals::operator""_l</p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../../header/boost/parser/parser_hpp.html" title="Header &lt;boost/parser/parser.hpp&gt;">boost/parser/parser.hpp</a>&gt;
</span>
<span class="keyword">constexpr</span> <span class="keyword">auto</span> <span class="keyword">operator</span><span class="string">""</span><span class="identifier">_l</span><span class="special">(</span><span class="keyword">char32_t</span> <span class="keyword">const</span> <span class="special">*</span> str<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span><span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id36599"></a><h2>Description</h2>
<p>Returns a literal parser equivalent to <code class="computeroutput">lit(str)</code>. </p>
</div>
</div>
<div class="copyright-footer">Copyright © 2020 T. Zachary Laine<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="operator_l_id135.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../header/boost/parser/parser_hpp.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="operator_p_id137.html"><img src="../../../images/next.png" alt="Next"></a>
</div>
</body>
</html>

View File

@@ -7,15 +7,15 @@
<link rel="home" href="../../../index.html" title="Chapter 1. Boost.Parser">
<link rel="up" href="../../../header/boost/parser/parser_hpp.html" title="Header &lt;boost/parser/parser.hpp&gt;">
<link rel="prev" href="../../../header/boost/parser/parser_hpp.html" title="Header &lt;boost/parser/parser.hpp&gt;">
<link rel="next" href="operator_l_id132.html" title='Function operator""_l'>
<link rel="next" href="operator_l_id86.html" title='Function operator""_l'>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="spirit-nav">
<a accesskey="p" href="../../../header/boost/parser/parser_hpp.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../header/boost/parser/parser_hpp.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="operator_l_id132.html"><img src="../../../images/next.png" alt="Next"></a>
<a accesskey="p" href="../../../header/boost/parser/parser_hpp.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../header/boost/parser/parser_hpp.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="operator_l_id86.html"><img src="../../../images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.parser.literals.operator_l_id131"></a><div class="titlepage"></div>
<a name="boost.parser.literals.operator_l_id85"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Function operator""_l</span></h2>
<p>boost::parser::literals::operator""_l</p>
@@ -24,9 +24,9 @@
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../../header/boost/parser/parser_hpp.html" title="Header &lt;boost/parser/parser.hpp&gt;">boost/parser/parser.hpp</a>&gt;
</span>
<span class="keyword">constexpr</span> <span class="keyword">auto</span> <span class="keyword">operator</span><span class="string">""</span><span class="identifier">_l</span><span class="special">(</span><span class="keyword">char</span> c<span class="special">)</span><span class="special">;</span></pre></div>
constexpr auto <span class="keyword">operator</span><span class="string">""</span><span class="identifier">_l</span><span class="special">(</span>char c<span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id36466"></a><h2>Description</h2>
<a name="id32401"></a><h2>Description</h2>
<p>Returns a literal parser equivalent to <code class="computeroutput">lit(c)</code>. </p>
</div>
</div>
@@ -37,7 +37,7 @@
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../../../header/boost/parser/parser_hpp.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../header/boost/parser/parser_hpp.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="operator_l_id132.html"><img src="../../../images/next.png" alt="Next"></a>
<a accesskey="p" href="../../../header/boost/parser/parser_hpp.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../header/boost/parser/parser_hpp.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="operator_l_id86.html"><img src="../../../images/next.png" alt="Next"></a>
</div>
</body>
</html>

View File

@@ -6,16 +6,16 @@
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../../index.html" title="Chapter 1. Boost.Parser">
<link rel="up" href="../../../header/boost/parser/parser_hpp.html" title="Header &lt;boost/parser/parser.hpp&gt;">
<link rel="prev" href="operator_l_id132.html" title='Function operator""_l'>
<link rel="next" href="operator_l_id134.html" title='Function operator""_l'>
<link rel="prev" href="operator_l_id85.html" title='Function operator""_l'>
<link rel="next" href="operator_l_id87.html" title='Function operator""_l'>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="spirit-nav">
<a accesskey="p" href="operator_l_id132.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../header/boost/parser/parser_hpp.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="operator_l_id134.html"><img src="../../../images/next.png" alt="Next"></a>
<a accesskey="p" href="operator_l_id85.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../header/boost/parser/parser_hpp.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="operator_l_id87.html"><img src="../../../images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.parser.literals.operator_l_id133"></a><div class="titlepage"></div>
<a name="boost.parser.literals.operator_l_id86"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Function operator""_l</span></h2>
<p>boost::parser::literals::operator""_l</p>
@@ -24,9 +24,9 @@
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../../header/boost/parser/parser_hpp.html" title="Header &lt;boost/parser/parser.hpp&gt;">boost/parser/parser.hpp</a>&gt;
</span>
<span class="keyword">constexpr</span> <span class="keyword">auto</span> <span class="keyword">operator</span><span class="string">""</span><span class="identifier">_l</span><span class="special">(</span><span class="keyword">char32_t</span> c<span class="special">)</span><span class="special">;</span></pre></div>
constexpr auto <span class="keyword">operator</span><span class="string">""</span><span class="identifier">_l</span><span class="special">(</span>char8_t c<span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id36512"></a><h2>Description</h2>
<a name="id32421"></a><h2>Description</h2>
<p>Returns a literal parser equivalent to <code class="computeroutput">lit(c)</code>. </p>
</div>
</div>
@@ -37,7 +37,7 @@
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="operator_l_id132.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../header/boost/parser/parser_hpp.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="operator_l_id134.html"><img src="../../../images/next.png" alt="Next"></a>
<a accesskey="p" href="operator_l_id85.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../header/boost/parser/parser_hpp.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="operator_l_id87.html"><img src="../../../images/next.png" alt="Next"></a>
</div>
</body>
</html>

View File

@@ -6,16 +6,16 @@
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../../index.html" title="Chapter 1. Boost.Parser">
<link rel="up" href="../../../header/boost/parser/parser_hpp.html" title="Header &lt;boost/parser/parser.hpp&gt;">
<link rel="prev" href="operator_l_id131.html" title='Function operator""_l'>
<link rel="next" href="operator_l_id133.html" title='Function operator""_l'>
<link rel="prev" href="operator_l_id86.html" title='Function operator""_l'>
<link rel="next" href="operator_l_id88.html" title='Function operator""_l'>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="spirit-nav">
<a accesskey="p" href="operator_l_id131.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../header/boost/parser/parser_hpp.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="operator_l_id133.html"><img src="../../../images/next.png" alt="Next"></a>
<a accesskey="p" href="operator_l_id86.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../header/boost/parser/parser_hpp.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="operator_l_id88.html"><img src="../../../images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.parser.literals.operator_l_id132"></a><div class="titlepage"></div>
<a name="boost.parser.literals.operator_l_id87"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Function operator""_l</span></h2>
<p>boost::parser::literals::operator""_l</p>
@@ -24,9 +24,9 @@
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../../header/boost/parser/parser_hpp.html" title="Header &lt;boost/parser/parser.hpp&gt;">boost/parser/parser.hpp</a>&gt;
</span>
<span class="keyword">constexpr</span> <span class="keyword">auto</span> <span class="keyword">operator</span><span class="string">""</span><span class="identifier">_l</span><span class="special">(</span><span class="identifier">char8_t</span> c<span class="special">)</span><span class="special">;</span></pre></div>
constexpr auto <span class="keyword">operator</span><span class="string">""</span><span class="identifier">_l</span><span class="special">(</span>char32_t c<span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id36489"></a><h2>Description</h2>
<a name="id32441"></a><h2>Description</h2>
<p>Returns a literal parser equivalent to <code class="computeroutput">lit(c)</code>. </p>
</div>
</div>
@@ -37,7 +37,7 @@
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="operator_l_id131.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../header/boost/parser/parser_hpp.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="operator_l_id133.html"><img src="../../../images/next.png" alt="Next"></a>
<a accesskey="p" href="operator_l_id86.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../header/boost/parser/parser_hpp.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="operator_l_id88.html"><img src="../../../images/next.png" alt="Next"></a>
</div>
</body>
</html>

Some files were not shown because too many files have changed in this diff Show More