Nikita Kniazev
b3ae790e2b
Use endian macros from Predef
...
The `boost/detail/endian.hpp` header is deprecated.
2018-09-15 18:19:49 +03:00
Nikita Kniazev
02c3c30077
ts_real_policies: Parse directly into output parameter
...
There is no need to initialize accumulator with zero value before the first
call to `parse`, and to use a temporary.
2018-03-10 19:22:28 +03:00
Nikita Kniazev
dc9e23e9f5
ts_real_policies: Output parameter is of actual accumulator type
2018-03-10 19:12:28 +03:00
Nikita Kniazev
e472c0536f
ts_real_policies: One iterator copy less optimization
2018-03-10 19:09:41 +03:00
Nikita Kniazev
1a72c27306
ts_real_policies: Fixed small numbers parsing
...
Numbers in range (-1000.0, 1000.0) has only one segment (no thousands delimiter),
and are parsed in `if` statement expression.
2018-03-10 19:06:11 +03:00
Nikita Kniazev
bd472f37c7
Qi.Examples: reference: Fixed lazy example
...
Phoenix expression used like it is a Qi expression.
I suspect it had been legal when they were belong to
the same Proto domain but not now.
2017-11-08 20:10:28 +03:00
Nikita Kniazev
beb28c417d
Qi.Examples: Fixed parse_frac_n
in reference.cpp
...
Error message:
```
qi/reference.cpp:126:5: note: candidate function template not viable: requires 3 arguments, but 4 were provided
parse_frac_n(Iterator& first, Iterator const& last, Attribute& attr)
```
The issue had been introduced in 6832dc2298
where `parse_frac_n` signature was changed.
2017-10-30 02:14:46 +03:00
Nikita Kniazev
12549b559c
Qi.Examples: Fixed missing using
statement for expect
directive
...
Error message:
> qi/reference.cpp:1047:31: error: ‘expect’ was not declared in this scope
> test_parser("xi", expect[char_('o')]); // should throw an exception
Introduced with PR #196 (commit d494fe189b
)
2016-08-16 19:16:24 +03:00
mxc-commons
d494fe189b
Expect directive, ready for PR
...
As discussed with Joel de Guzman this PR introduces the expect directive
expect[] to spirit qi 2. PR includes code, test, example, and
documentation.
See
https://sourceforge.net/p/spirit/mailman/spirit-general/thread/nln5d3%24klg%241%40ger.gmane.org/#msg35208052
Here is what I did:
1. Added expect.hpp to home/qi/directives.
1a. Added forwarding header qi_expectd.hpp to include dir.
2. Renamed expectation parser (a > b) struct from expect to
expect_operator
to prevent name conflicts (expect directive uses struct
expect_directive).
3. Added expect directive to the common terminals
(common_terminals.hpp).
4. Added expectd.cpp to the test suite.
5. Added expectd.cpp to the examples.
6. Added expect directive documentation to directive.qbk. Crosslinked
expectation operator and expect directive docs.
7. Added expect directive to the index.idx file for index-generation.
8. Added expect directive to the qi quick_reference.qbk.
9. Added expect directive to the spirit reference card (tex, pdf)
10. Created a new section in the whats_new.hpp.
11. Changed spirit version to 2.5.4. Spirit index.html showed 2.5.2
allthough an 2.5.3 What's New section already existed. Fixed.
2016-07-12 02:49:07 +02:00
Joel de Guzman
8b5acda525
Fix for MSVC 10
...
[SVN r71196]
2011-04-12 00:32:59 +00:00
Bryce Adelstein-Lelbach
51ab66858a
Docs for karma::as, more utree docs.
...
[SVN r68163]
2011-01-14 23:15:23 +00:00
Bryce Adelstein-Lelbach
dd897317ca
Re-added Qi numeric literals as they no longer break Qi auto-magic.
...
[SVN r67902]
2011-01-10 03:04:31 +00:00
Bryce Adelstein-Lelbach
e1b0e45a5d
Removed Qi numeric literals (interference w/ auto magic)
...
[SVN r67737]
2011-01-06 23:37:52 +00:00
Hartmut Kaiser
83a792d7ed
Spirit: updating copyrights
...
[SVN r67619]
2011-01-03 16:58:38 +00:00
Bryce Adelstein-Lelbach
1446a3fa25
Parameterized and literal support for integer, real and boolean parsers. Fix for
...
lazy parser and handles_container<>. Added docs for as<T> (docs for Qi only).
[SVN r67553]
2011-01-01 22:22:56 +00:00
Bryce Adelstein-Lelbach
c4ea90c69b
Added support for integral literals to Qi.
...
[SVN r67508]
2010-12-30 21:55:39 +00:00
Hartmut Kaiser
3bab48844d
Spirit: adding docs for hold[]
...
[SVN r67384]
2010-12-21 14:04:46 +00:00
Hartmut Kaiser
637d7522af
Spirit: adjusting code to pass new assert inspect rule
...
[SVN r66504]
2010-11-12 00:36:49 +00:00
Daniel James
8fbd5b5f1d
Fix quoting in spirit example.
...
[SVN r63622]
2010-07-04 18:52:48 +00:00
Hartmut Kaiser
c65fb2f80f
Spirit: refining the transform_attribute CP
...
[SVN r61284]
2010-04-15 02:43:23 +00:00
Hartmut Kaiser
dc21be9b9f
Spirit: fixing problems in reference.cpp
...
[SVN r61171]
2010-04-10 02:32:28 +00:00
Hartmut Kaiser
30018804eb
Spirit: adding no_skip[] directive, docs, tests, etc.
...
[SVN r59719]
2010-02-17 02:18:44 +00:00
Hartmut Kaiser
8ac872d39e
Spirit: fixing remaining problems from changing transform_attribute
...
[SVN r59348]
2010-01-29 17:13:53 +00:00
Hartmut Kaiser
305fa2f05c
Spirit: adding docs for auto_ and matches[]
...
[SVN r58865]
2010-01-10 15:33:12 +00:00
Hartmut Kaiser
6bea365c51
Spirit: updating copyrights, doc version, etc.
...
[SVN r58589]
2009-12-30 16:16:52 +00:00
Hartmut Kaiser
aab62c9837
Spirit: silencing MSVC warnings
...
[SVN r57505]
2009-11-09 04:02:16 +00:00
Hartmut Kaiser
f0c9748672
Spirit: applied editorial fixes to docs
...
[SVN r57211]
2009-10-29 00:12:04 +00:00
Hartmut Kaiser
d705e73596
Spirit: added qi::attr_cast doc section
...
[SVN r57195]
2009-10-28 18:02:52 +00:00
Hartmut Kaiser
74c0186c27
Spirit: doc updates
...
[SVN r57194]
2009-10-28 17:21:47 +00:00
Joel de Guzman
09e5a4a291
new nonterminal concept doc
...
rule doc update
grammar doc
[SVN r57167]
2009-10-27 07:12:35 +00:00
Joel de Guzman
e21ced910a
rule doc updates (final)
...
[SVN r57124]
2009-10-24 09:23:25 +00:00
Joel de Guzman
d56b56e3e0
Rule docs
...
[SVN r57013]
2009-10-20 14:08:14 +00:00
Hartmut Kaiser
805b22d05b
Spirit: fixing compilation problem in example
...
[SVN r56593]
2009-10-05 12:33:01 +00:00
Joel de Guzman
8623174924
Tweaks for recursive_wrapper
...
[SVN r56567]
2009-10-04 05:08:54 +00:00
Hartmut Kaiser
3e9c2bdf68
Spirit: restructured customization points, added qi::attr_cast, added phoenix expression support for Karma attributes, updated tests
...
[SVN r56534]
2009-10-02 21:19:08 +00:00
Hartmut Kaiser
3e88852d0b
Spirit: added qi::bool_ docs
...
[SVN r56470]
2009-09-29 14:30:33 +00:00
Hartmut Kaiser
ed6e0ddda8
Spirit: fixed warnings about unused variables
...
[SVN r56246]
2009-09-16 19:11:00 +00:00
Joel de Guzman
2ab93a3df0
binary parsers examples
...
[SVN r56153]
2009-09-12 10:56:06 +00:00
Joel de Guzman
02b8dad7b9
list + binary parsers
...
[SVN r56152]
2009-09-12 10:05:55 +00:00
Joel de Guzman
80766ab81f
optional doc
...
[SVN r56124]
2009-09-09 19:31:24 +00:00
Joel de Guzman
ba3cbd508d
optional doc
...
[SVN r56123]
2009-09-09 19:24:02 +00:00
Joel de Guzman
80ce448a61
more operators
...
[SVN r56122]
2009-09-09 15:54:13 +00:00
Joel de Guzman
6345734d26
predicate examples
...
[SVN r56119]
2009-09-09 10:26:33 +00:00
Joel de Guzman
6ff5307dae
expect + permutation docs
...
[SVN r56090]
2009-09-07 15:52:40 +00:00
Joel de Guzman
a8a6ddd5cb
sequential-or
...
[SVN r56082]
2009-09-07 09:00:38 +00:00
Joel de Guzman
791533f9f0
Alternative doc
...
[SVN r56080]
2009-09-07 07:39:42 +00:00
Joel de Guzman
ba5fa5bc0b
Sequence doc
...
[SVN r56079]
2009-09-07 06:11:05 +00:00
Joel de Guzman
c0188b480e
Complete Auxiliary Docs
...
[SVN r56078]
2009-09-07 02:41:18 +00:00
Joel de Guzman
2df4b0263e
Directives complete
...
[SVN r56067]
2009-09-06 14:55:33 +00:00
Joel de Guzman
83bc94b15f
more directives
...
[SVN r56058]
2009-09-06 09:33:04 +00:00