Boost: spirit quick reference

Source: Internet
Author: User
Tags printable characters uppercase letter
Simple C ++ boost Chinese manual directory
  Quick Reference

 

This isn't intended to be a full, detailed reference; nor is it intended to be of any use to readers who aren't already familiar with spirit. it's just a brief reminder of the syntax and behaviour of each component, with links to the full documentation.
The purpose of this chapter is not to provide a complete and detailed reference manual, nor to be used by readers who are not familiar with spirit. It is just a brief reminder of the syntax and the behavior of each component, as well as a link to the complete document.

  • Primitive parser generators (Action arguments are listed on the right)Basic analyzer Generator(Action parameters are listed on the right)

    • Null parsers null Analyzer
    • Character parsers character Analyzer
    • Number parsers Digital Analyzer
    • Other lexeme parsers other bitwise Analyzer
    • Text parsers
  • Other parser elements other analyzer Elements
    • Compound parsers composite Analyzer
    • General ctictives generic indicator
    • Tree-specific ctives tree-specific indicator
  • Operators Operator
    • Unary operators Single-parameter Operators
    • Binary Operators(In order of precedence)
      Binary Operators(Sort by priority)
Null parsers null Analyzer
end_p Matches EOF
Matching EOF
ITER, ITER
eps_p
eps_p(P)
Matches without consuming text
Match without consuming text
ITER, ITER
epsilon_p
epsilon_p(P)
SynonymEps_p
Eps_p
Synonym
ITER, ITER
nothing_p Always fails
Always match failed
ITER, ITER
Character parsers character Analyzer
alnum_p Matches any alphanumeric character
Match any letter or number
Char
alpha_p Matches any letter
Match any letter
Char
anychar_p Matches any character
Match any character
Char
blank_p Matches a space or tab
Match a space or tab
Char
ch_p(char) Matches a character
Match one character
Char
chset_p(charset) Matches a character in the Set
Match a character in the character set
Char
cntrl_p Matches any control character
Match any control character
Char
digit_p Matches any Digit
Match any number
Char
f_ch_p(func) Matches a character
Match one character
Char
f_range_p(func1, func2) Matches any character in the specified sive range
Match any character in the closed interval
Char
graph_p Matches any non-space printable character
Match any non-empty printable characters
Char
lower_p Matches any lower-case letter
Match any lowercase letter
Char
print_p Matches any printable character
Match any printable character
Char
punct_p Matches any punctuation mark
Match any punctuation mark
Char
range_p(char1, char2) Matches any character in the specified sive range
Match any character in the closed interval
Char
sign_p Matches a plus or minus sign
Matches the positive or negative number.
Bool
space_p Matches any whitespace character
Match any blank characters
Char
upper_p Matches any upper-case letter
Match any uppercase letter
Char
xdigit_p Matches any hexadecimal digit
Match any hexadecimal number
Char
Number parsers Digital Analyzer
bin_p Matches an unsigned binary integer
Matches an unsigned binary integer.
Numeric
hex_p Matches an unsigned hexadecimal integer
Matches an unsigned hexadecimal integer.
Numeric
int_p Matches a signed decimal integer
Matches a signed decimal integer.
Numeric
int_parser<type, base, min, max> Matches a signed integerMinTo
Max
Digits
MatchMinToMaxSigned integer
Numeric
oct_p Matches an unsigned octal integer
Matches an unsigned octal integer.
Numeric
real_p Matches a floating point number
Match a floating point number
Numeric
real_parser<type, policy> Matches a floating point number
Match a floating point number
Numeric
strict_real_p Matches a floating point number (requires decimal point)
Match a floating point number (decimal point required)
Numeric
strict_ureal_p Matches an unsigned FP number (requires decimal point)
Match an unsigned floating point number (decimal point required)
Numeric
uint_p Matches an unsigned decimal integer Numeric
uint_parser<type, base, min, max> Matches an unsigned integerMinTo
Max
Digits
MatchMinToMaxUnsigned integer
Numeric
ureal_p Matches an unsigned FP number
Match an unsigned floating point number
Numeric
Other lexeme parsers other bitwise Analyzer
c_escape_ch_p Matches a C escape code
Matching a C escape code
Char
comment_p(string)
comment_p (string1, string2)
Matches C ++ or C-style comments
Matching C ++ or C-style comments
ITER, ITER
eol_p Matches Cr, lf, or any combination
Matches Cr, lf, or any combination of them.
ITER, ITER
f_str_p(func1, func2) Matches a string
Match a string
ITER, ITER
lex_escape_ch_p Matches a C escape code or any backslash escape
Matches a C escape code or any backslash escape
Char
regex_p(regex) Matches a regular expression
Match a regular expression
ITER, ITER
str_p(string)
str_p(iter1, iter2)
Matches a string
Match a string
ITER, ITER
Text parsers
chseq_p(string)
chseq_p(iter1, iter2)
Matches a string, possibly with embedded whitespace
Matches a string and can contain embedded spaces.
ITER, ITER
f_chseq_p(func1, func2) Matches a string, possibly with embedded whitespace
Matches a string and can contain embedded spaces.
ITER, ITER
 
Compound parsers composite Analyzer
confix_p(open, exp, close) MatchesOpen> (exp-close)> close
MatchOpen> (exp-close)> close
do_p[P].while_p(cond) Matches while a condition is true (at least once)
Match (at least once) when the condition is true)
for_p(init, cond, step)[P]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.