1 [/==============================================================================
2 Copyright (C) 2001-2011 Hartmut Kaiser
3 Copyright (C) 2001-2011 Joel de Guzman
5 Distributed under the Boost Software License, Version 1.0. (See accompanying
6 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 ===============================================================================/]
9 [section:primitives Token definition Primitives]
11 This module includes different primitives allowing you to create token definitions.
12 It includes `char_`, character literals, `string`, and string literals.
14 [heading Module Headers]
16 // forwards to <boost/spirit/home/lex/primitives.hpp>
17 #include <boost/spirit/include/lex_primitives.hpp>
19 Also, see __include_structure__.
21 [/////////////////////////////////////////////////////////////////////////////]
22 [section:char_tokendef Tokens Matching Single Characters]
26 The character based token definitions described in this section are:
28 The `char_` creates token definitions matching single characters. The `char_`
29 token definition is associated `standard` encoding namespace. This is
30 needed when doing basic operations such as forcing lower or upper case and
31 dealing with character ranges.
35 [heading Module Headers]
37 // forwards to <boost/spirit/home/lex/lexer/char_token_def.hpp>
38 #include <boost/spirit/include/lex_char_token_def.hpp>
40 Also, see __include_structure__.
51 [:__primitive_lexer_concept__]
53 [variablelist Notation
54 [[`ch`] [Character-class specific character from `standard` character
58 [heading Expression Semantics]
60 Semantics of an expression is defined only where it differs from, or is not
61 defined in __primitive_lexer_concept__.
64 [[Expression] [Description]]
65 [[`ch`] [Create a token definition matching the character
67 [[`lex::char_(ch)`] [Create a token definition matching the character