2
0
mirror of https://github.com/boostorg/spirit.git synced 2026-01-19 04:42:11 +00:00

805 Commits

Author SHA1 Message Date
Nikita Kniazev
d9564895c6 Fixed unused argc/argv 2017-11-21 19:49:36 +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
ed44948e62 X3.Examples: actions: Missing using x3::_attr 2017-11-07 21:16:21 +03:00
Nikita Kniazev
9128cd2535 Qi.Examples: expect: Do not use c++11 for loop 2017-11-07 21:10:18 +03:00
Nikita Kniazev
591001628f Karma.Examples: Fix complex_number_adapt compilation 2017-11-06 22:45:16 +03:00
Joel de Guzman
1e31221cdd Merge pull request #255 from Kojoley/fix-examples-qi-reference-parse_frac_n
Qi.Examples: Fixed `parse_frac_n` in `reference.cpp`
2017-10-30 08:00:42 +08: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
c134020c2a X3.Examples: Fix no template named 'with_context' error
`with_context` was removed in 361b12eeeb
but the examples had not been adjusted.
2017-10-30 00:55:31 +03:00
Joel de Guzman
6892080b91 fix. test files location. 2017-08-07 11:14:22 +08: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
88f494cb0d Fixes for PR #196 expect directive
This PR contains fixes for both issues reported by Lastique and
MarcelRaad. It makes PR #197 obsolete.

Removed obsolete dependency  of test/qi/expectd.cpp on
mxc/qitoo/qitoo.hpp. Was reintroduced by mistake.

Created qi/detail/expectation_failure.hpp. It defines the
expectation_failure template as a common dependency of expect directive
and expect operator. Removed expectation_failure from
operator/expect.hpp.

Changed version.hpp to 2.54. I did not notice that addl file in the
first place.
2016-07-19 16:42:03 +02:00
mxc-commons
0d3dc69ca5 Changed type aliases to typedefs for C++03 compatibility 2016-07-15 02:14:44 +02:00
mxc-commons
4251626a8f Output formatting corrected 2016-07-12 04:00:08 +02: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
mxc-commons
947189bc75 spirit 2 expect directive
Initial commit.
2016-07-07 00:50:44 +02:00
mxc-commons
aed96ba915 spirit 2 expect directive
Initial commit.
2016-07-07 00:49:18 +02:00
Ahmed Charles
53f210976b Fix typo in test case. 2015-12-22 17:14:26 -08:00
Seth Heeren
027e3049bb Fix compile error in word_count_lexer example 2015-09-26 00:52:35 +02:00
Mario Lang
20ecf739f0 Fix some typos in docs and comments. 2015-06-24 20:45:54 +02:00
Mario Lang
6846946823 X3: Make use of Fusion member type deduction to simplify examples. 2015-06-15 22:30:00 +02:00
Mario Lang
ecc69624af Forgot another use of BOOST_FOREACH. 2015-05-26 11:01:34 +02:00
Mario Lang
7f7f884fcf Use error_handler to report success && iter != end. 2015-05-21 01:56:44 +02:00
Mario Lang
4e4aa40a82 Use rexpr_type. 2015-05-19 14:42:09 +02:00
Mario Lang
71eba444a7 No need to declare rexpr_class twice. 2015-05-19 14:41:14 +02:00
Mario Lang
4229b079cd Use '=' to assign rule names. 2015-05-19 14:39:35 +02:00
Mario Lang
9c0466fef2 Rules should be const, as advertised by docs. 2015-05-19 14:37:01 +02:00
Mario Lang
ce22f82d6a No need for *_id typedefs. 2015-05-19 14:33:41 +02:00
Mario Lang
c69b41d547 Fix some unused local typedefs in X3 examples. 2015-05-19 12:49:53 +02:00
Mario Lang
033e52c039 Make annotation.hpp generic and move to support/utility/annotate_on_success.hpp.
Since X3 promotes x3::variant, we can actually make annotation.hpp
generic, avoiding copy-pastism in all the projects that make use of
basic error reporting.
2015-05-18 14:35:52 +02:00
Mario Lang
38b334b51d Kill duplicated code in annotation.hpp. 2015-05-18 02:01:46 +02:00
Ahmed Charles
ac70d6f65a Allow rule.hpp to be included independently. 2015-05-16 18:02:10 -06:00
Ahmed Charles
e2044f0bde Rearrange includes and add some missing includes. 2015-05-16 14:07:19 -06:00
Ahmed Charles
5b8c168f22 Remove unused namespace alias. 2015-05-16 14:07:18 -06:00
Ahmed Charles
a53f104eaa Remove unused struct fun::error_handler_tag. 2015-05-16 14:07:18 -06:00
Ahmed Charles
51cb406b62 Fix rexpr_full so it actually builds like the other examples. 2015-05-16 14:07:18 -06:00
Ahmed Charles
e6eb41f09d Fix roman example for x3. 2015-05-16 13:11:30 -06:00
Ahmed Charles
cd71ff6f9a Fix Jamfile with new example location. 2015-05-15 20:16:36 -06:00
Joel de Guzman
578091e779 - docs for rexpr tutorial
- minor bugfix (strings in lexeme)
2015-05-16 00:44:49 +08:00
Joel de Guzman
43d2b1b6e0 reoraganizing X3 documentation 2015-05-15 22:59:07 +08:00
Joel de Guzman
0e17b6d05d reorganizing files into cleaner directory structures 2015-05-15 04:14:07 +08:00
Joel de Guzman
4afcc094af more polishing 2015-05-14 21:47:03 +08:00
Joel de Guzman
a3d667002f Making testing a full-fledged X3 suppoty utility 2015-05-14 21:38:05 +08:00
Joel de Guzman
c45fdad1b2 Bug fix: rule IDs must have accessible on_error and on_sucess 2015-05-14 21:15:17 +08:00
Joel de Guzman
c0d05b990d some cleanup and polish 2015-05-14 15:14:02 +08:00
Joel de Guzman
761f9a588d rexpr_full with tests 2015-05-14 14:59:45 +08:00
Joel de Guzman
f152060988 working rexpr parser 2015-05-14 12:47:11 +08:00
Joel de Guzman
1f6f24733f cleaning up the x3 docs 2015-05-13 22:21:32 +08:00
Joel de Guzman
5453de5cbb partial documentation updates 2015-05-13 18:49:12 +08:00
Joel de Guzman
86fcb400a5 more tutorials available 2015-05-13 02:43:15 +08:00
Joel de Guzman
e1bf3b9458 Got all the num_list examples 2015-05-12 15:40:48 +08:00