Commit Graph

901 Commits

Author SHA1 Message Date
Thomas Bernard
6dfba300b8 Don't use lambdas for the repeat limit evaluation
Comment out the not yet supported tests
Changed some variable names to improve the code clarity
2014-05-09 01:21:53 +02:00
Joel de Guzman
ba9239aa2e Merge branch 'origin/develop' 2014-05-08 07:41:02 +08:00
Thomas Bernard
642a70afb8 Revert unwanted changes 2014-05-07 17:00:16 +02:00
Thomas Bernard
a5e1c57350 Add repeat directive 2014-05-07 16:43:12 +02:00
Lee Clagett
bb6f924aeb Flattened extensions directory. 2014-05-03 11:14:01 -04:00
Lee Clagett
70df6e398e Ported v2 repository seek directive to x3 extensions 2014-05-02 23:58:48 -04:00
Joel de Guzman
a129355f3e implemented raw directive 2014-05-02 10:53:16 +08:00
Joel de Guzman
f9e3f874cc porting calc7 to x3 2014-05-02 08:58:53 +08:00
Joel de Guzman
7f111eb070 added with directive 2014-05-02 08:30:37 +08:00
K-ballo
f91e771d51 Fix for #8537: Qi skip fails when nested under two or more levels of lexeme 2014-04-26 23:53:55 -03:00
Joel de Guzman
4fedf68181 Merge branch 'origin/x3-devel' 2014-04-23 07:28:10 +08:00
K-ballo
ad772933a7 Added type-erased parser, tests and examples 2014-04-22 13:55:08 -03:00
K-ballo
955fa54406 Added type-erased parser, tests and examples 2014-04-22 12:47:04 -03:00
Joel de Guzman
dc5d47814e various sequence handling fixes 2014-04-20 11:07:23 +08:00
Joel de Guzman
4afb7f95f7 Merge pull request #12 from vtnerd/bugfix/qi_tests
Bugfix/qi tests
2014-04-17 07:47:49 +08:00
Lee Clagett
831104d38c Removed some unnecessary namespacing aliasing in tests. 2014-04-16 07:36:45 -04:00
Lee Clagett
a3d5d7909b Fixed qi::alternative test code. 2014-04-13 14:07:10 -04:00
Lee Clagett
79f65ff9c0 Updated tests to catch bug in tst_map 2014-04-13 11:51:19 -04:00
Joel de Guzman
26b0e9e1f0 action should be in core, not auxilary 2014-04-09 12:57:52 +08:00
Joel de Guzman
f88d50853c use enum class for error_handler_result 2014-04-09 11:54:09 +08:00
Joel de Guzman
e24686ea6f added on_sucess handler (complements on_error) 2014-04-09 11:40:02 +08:00
Joel de Guzman
c0c07026dc Ported calc5 to X3 (Same as Calc4, this time, we'll incorporate debugging support, plus error handling and reporting). 2014-04-09 08:34:57 +08:00
Joel de Guzman
e1dffe91c3 impemented rule %= operator 2014-04-08 11:30:13 +08:00
Joel de Guzman
92dfab37fa added offline error handling for rules 2014-04-07 15:26:12 +08:00
Joel de Guzman
16b894852a added actions test
added _fail context for forcing a faiked parse
2014-04-02 17:38:03 +08:00
Joel de Guzman
ceb4e05483 semantic actions with attributes only (no context) 2014-04-02 02:34:32 +08:00
Joel de Guzman
4a7cdc23e0 nullary semantic actions allowed 2014-04-02 02:04:41 +08:00
Joel de Guzman
7b0d142492 semantic actions with context only (no attributes) 2014-04-02 01:52:19 +08:00
Joel de Guzman
99337861f8 + Using -std=c++1y
+ Using polymorphic lambda on semantic actions
2014-04-01 18:54:33 +08:00
Joel de Guzman
df2e019830 Merge branch 'parse-into-fusion-map' of https://github.com/redbaron/spirit into redbaron-parse-into-fusion-map
Conflicts:
	test/Jamfile
2014-04-01 10:50:51 +08:00
Joel de Guzman
f6b78c4464 Merge branch 'lit-leaks-attribute' of https://github.com/redbaron/spirit into redbaron-lit-leaks-attribute
Conflicts:
	test/Jamfile
	test/x3/sequence.cpp
2014-04-01 10:47:57 +08:00
Joel de Guzman
131e64bd98 Added x3 tests to Jamfile (reverted from commit c3935ca442) 2014-04-01 10:30:47 +08:00
Joel de Guzman
5e1c8a2dd8 Merge pull request #8 from redbaron/fix-one-element-seq
Fix one element seq
2014-04-01 10:25:52 +08:00
Joel de Guzman
be00816174 added jamfile 2014-04-01 08:10:03 +08:00
Maxim Ivanov
8ea47e5025 Fix for the case when fusion assoc seq is on either side of seq 2014-03-26 09:52:28 +00:00
Maxim Ivanov
dfed8f3dea Added test for parsing to fusion map with keys parsed in alternative<> 2014-03-26 09:44:43 +00:00
Maxim Ivanov
bb16f871ae Merge branch 'fix-one-element-seq' into parse-into-fusion-map 2014-03-25 10:14:57 +00:00
Maxim Ivanov
58e177beb7 Support parsing into fusion adapted structs 2014-03-25 10:14:46 +00:00
Maxim Ivanov
2f1659413b Fix for sequences with only one element producing attr
If in a sequence only one element produces attribute, then make whole
sequence to produce that attribute,rather than wrapping it into
fusion::deque. Not doing so breaks alternative<> parser, when such
sequences are on left and right side of it, because it then generates
variant attribute over fusion:deque<> attributes, which is not
what it is supposed to do. Plus it breaks traits::move_to when both
source and destination are single element fusions sequences. Hence this
fix to put everything back to normal for this edge case.
2014-03-24 23:48:28 +00:00
Maxim Ivanov
3dc3960e67 Added test for fusion::map parsing 2014-03-20 11:25:22 +00:00
Maxim Ivanov
ba5b50f691 as x3::lit() is fixes no need to omit[] it anymore 2014-03-19 22:36:01 +00:00
Maxim Ivanov
4f97aa987c stop x3::lit from updating passed container 2014-03-19 22:34:31 +00:00
Maxim Ivanov
c206e3d0ac Added test for recently fixed sequence attribute consistency bug 2014-03-19 20:22:08 +00:00
Maxim Ivanov
c3935ca442 Added x3 tests to Jamfile 2014-03-19 15:48:49 +00:00
Joel de Guzman
8a35332835 Merging Spirit x3 into devel 2014-03-18 11:06:19 +08:00
Joel de Guzman
5767624292 preparing for migration to boost devel 2014-03-18 10:53:30 +08:00
Yuri Khan
555fb29c71 Add test exercising attribute_size<optional<T> > 2014-03-03 15:19:11 +07:00
Joel de Guzman
02ef48736f fixed missing dependency in jamfile 2014-01-23 11:22:49 +08:00
K-ballo
288ea470ea Fixed omit/skip in test case 2013-12-14 12:11:48 -06:00
Joel de Guzman
c0537c8251 Removing phoenix-2 for good ( good bye I will miss you ) 2013-12-14 09:52:07 +08:00
Hartmut Kaiser
90d65d4be7 Fixed #8970: Karma fails to output a sign with a user-defined real number policy
[SVN r85221]
2013-08-06 13:36:38 +00:00
Hartmut Kaiser
81b9bb40b0 Spirit: fixing a problem in karma::omit
[SVN r84814]
2013-06-17 13:11:30 +00:00
Hartmut Kaiser
fc83d23f2a Fix #8563: Compilation error with boost::spirit::lex::less actor
[SVN r84285]
2013-05-14 23:43:46 +00:00
Hartmut Kaiser
ad53d2e841 Fix #7900: karma indirect_iterator returns reference to temporary
[SVN r82521]
2013-01-17 13:33:58 +00:00
Hartmut Kaiser
c8c65757c6 Spirit: fixing inspect errors
[SVN r82191]
2012-12-23 20:02:12 +00:00
Hartmut Kaiser
597226c96d Spirit: applying patch fixing qi::stream EOF behavior
[SVN r82078]
2012-12-18 13:51:21 +00:00
Hartmut Kaiser
4e804bf318 Spirit: Fixing inspect problems
[SVN r81794]
2012-12-08 15:51:22 +00:00
Hartmut Kaiser
3ba8b8b8ed Spirit: applying Karma unicode patch
[SVN r81746]
2012-12-06 17:41:53 +00:00
Hartmut Kaiser
7aa7ebd3c1 Spirit: fixed #7635: Karma real generators output "inf" when attribute is integral 0
[SVN r81160]
2012-11-03 15:16:56 +00:00
Joel de Guzman
f1759ccbff test overlapping symbols
[SVN r80800]
2012-10-01 00:04:26 +00:00
Ben Hanson
7fbb69518b Whitespace should be + not *.
[SVN r78358]
2012-05-06 14:49:11 +00:00
Ben Hanson
313c1f8d25 Whitespace should be + not *.
[SVN r78357]
2012-05-06 14:48:29 +00:00
Ben Hanson
97a91cfe72 Whitespace should be + not *.
[SVN r78356]
2012-05-06 14:46:35 +00:00
Ben Hanson
b9f77a7c91 whitespace should be + not *.
[SVN r78355]
2012-05-06 14:45:33 +00:00
Joel de Guzman
97800f6fc5 test for ticket #6714 (fixed)
[SVN r77433]
2012-03-20 15:14:10 +00:00
Hartmut Kaiser
d14eb0fd7c Spirit: correcting copyright
[SVN r76463]
2012-01-13 18:48:54 +00:00
Hartmut Kaiser
ef42d4535d Spirit: Fixed a problem in Karma when a variant holding a container was used as a generator inside a sequence.
[SVN r76462]
2012-01-13 18:46:11 +00:00
Hartmut Kaiser
4cb423d7db Spirit: Fixing problems in karma::center[] directive
[SVN r76381]
2012-01-09 13:47:25 +00:00
Hartmut Kaiser
7261177938 Spirit: fixed #6253: lex::lexertl::generate_static_dfa compiler errors if lexer has wchar_t as underlying stream type
[SVN r75910]
2011-12-12 00:48:40 +00:00
Joel de Guzman
41b3214ebc added longest match test
[SVN r75735]
2011-11-29 23:47:21 +00:00
Joel de Guzman
7c1d4d079e Docs for the seek directive
[SVN r75108]
2011-10-25 01:01:33 +00:00
Hartmut Kaiser
8cfd595355 Spirit: applying Vitaly Budovski's patch adding binary floating point parsers and generators
[SVN r75105]
2011-10-24 15:05:44 +00:00
Joel de Guzman
78cb23c6ac Added rvalue support for symbols %=
[SVN r74906]
2011-10-11 00:24:04 +00:00
Hartmut Kaiser
b5a81660c3 Spirit: copyright fixes
[SVN r74246]
2011-09-05 22:32:29 +00:00
Hartmut Kaiser
4727fc8f49 Spirit: Fixing actions for embedded parsers which synthesize attributes, adding test
[SVN r74055]
2011-08-24 22:24:51 +00:00
Joel de Guzman
445ba6df37 Disabling test that cannot be fixed.
[SVN r74033]
2011-08-23 23:44:16 +00:00
Joel de Guzman
553db54427 added test for SA chaining
[SVN r73833]
2011-08-16 23:21:29 +00:00
Joel de Guzman
b03f0941e0 added test for SA chaining
[SVN r73832]
2011-08-16 23:18:50 +00:00
Joel de Guzman
ed1bc1c2bc test case where literals emit an attribute of /0
[SVN r73420]
2011-07-28 23:33:09 +00:00
Hartmut Kaiser
3ce4e53557 Spirit: added position_token type
[SVN r72114]
2011-05-23 01:58:19 +00:00
Hartmut Kaiser
d842d60abb Spirit: tweaks to attribute handling
[SVN r72111]
2011-05-23 01:55:32 +00:00
Bryce Adelstein-Lelbach
bdc6857561 Change utree functions to take a utree as a parameter, instead of a scope.
Remove scope from Spirit, as it is application specific. Change utree's function
API to take function_base references and pointers by ctor/assignment operator,
instead of just stored_function<> instances, allowing users to derive classes
from function_base and use them with utree. Add an operator() to utree that 
aliases utree.eval(), so that utree can be used as a function object. Allow both
a utree& and a utree const& to be passed as a parameter to a utree function object.



[SVN r72067]
2011-05-21 23:58:19 +00:00
Bryce Adelstein-Lelbach
8306bcb237 Allow tags for strings.
[SVN r71999]
2011-05-16 20:27:26 +00:00
Hartmut Kaiser
f3c5618547 Spirit: adding more test cases
[SVN r71731]
2011-05-05 02:10:16 +00:00
Hartmut Kaiser
d926f23342 Spirit: fixed a copyright
[SVN r71633]
2011-04-30 18:34:36 +00:00
Hartmut Kaiser
0102565600 Spirit: fixing an issue in Qi with adapted ADTs, added test
[SVN r71631]
2011-04-30 17:34:30 +00:00
Joel de Guzman
8e3ef5fe7e Minor tweaks
[SVN r71399]
2011-04-21 05:13:30 +00:00
Hartmut Kaiser
09b20da8cd Spirit: renamed test
[SVN r71373]
2011-04-18 17:33:19 +00:00
Hartmut Kaiser
e1ceb64f5a Spirit: more karma adapted ADT problems fixed, full radix range for karma::uint_generators
[SVN r71372]
2011-04-18 17:08:57 +00:00
Hartmut Kaiser
962b5862d4 Spirit: fixing another problem with adapted ADTs related to numerics
[SVN r71353]
2011-04-17 15:46:28 +00:00
Hartmut Kaiser
260e21cf53 Spirit: applying patch to allow for arbitrary radicies while parsing unsigned numbers
[SVN r71347]
2011-04-17 02:55:36 +00:00
Hartmut Kaiser
575df4e144 Spirit: fixing more problems with using adapted ADTs in Kamra
[SVN r71305]
2011-04-16 02:10:11 +00:00
Bryce Adelstein-Lelbach
a23a191569 Remove utree's operator[], add spirit::get().
[SVN r71254]
2011-04-14 17:36:25 +00:00
Joel de Guzman
788ff8f0c2 Arbitrary radix feature for uints
[SVN r71233]
2011-04-14 00:33:42 +00:00
Hartmut Kaiser
2dc2bc919f Spirit: adding missing numeric CP specializations for adapted ADTs, added test
[SVN r71231]
2011-04-13 21:54:16 +00:00
Thomas Heller
b3678abf1d [phoenix]
- Added documention for the function adaption macros
    - Added the What's new section
    - Fixed some bugs
    - Added basic support for phx2 result type deduction, not in production yet

[spirit]
    - Made necessary changes that reflect latest phoenix internal changes



[SVN r71227]
2011-04-13 19:09:59 +00:00
Hartmut Kaiser
69983e81ed Spirit: adding Phoenix V3 limits.hpp to allow for flawless definition of all required LIMITS
[SVN r71193]
2011-04-11 18:50:28 +00:00
Joel de Guzman
39f3505d00 Fixes http://boost.2283326.n4.nabble.com/Grammar-stopped-compiling-on-more-recent-spirit-version-td3432652.html
[SVN r71100]
2011-04-08 00:21:27 +00:00
Hartmut Kaiser
ba46672803 Spirit: fixing assertions in error_handler when used with multi_pass, added test
[SVN r71080]
2011-04-07 14:38:33 +00:00
Hartmut Kaiser
bf019b8b58 Spirit: fixing tests to actually run both test suites (Phoenix V2 and V3)
[SVN r70748]
2011-03-30 11:29:59 +00:00
Hartmut Kaiser
d66b8b2c36 Spirit: enabling Phoenix V3 tests
[SVN r70737]
2011-03-30 02:30:36 +00:00
Hartmut Kaiser
ff02f5751c Spirit: more fixes for Phoenix V3
[SVN r70696]
2011-03-29 14:25:46 +00:00
Vladimir Prus
48b3346f18 Complete Phonix 2 & 3 test setup.
Current regression test system assumes that each test has a distinct
name. It does not support having one test built with two property sets,
and reporting them properly. So, we need to locally redefine the
'run' and 'compile' functions to declare two variants of each test.


[SVN r70694]
2011-03-29 13:12:39 +00:00
Hartmut Kaiser
2afde11ef5 Spirit: more adjustments for Phoenix V3
[SVN r70687]
2011-03-29 00:11:41 +00:00
Hartmut Kaiser
400a764d61 Spirit: patch allowing to use Spirit with Phoenix V3
[SVN r70656]
2011-03-28 02:37:31 +00:00
Hartmut Kaiser
e342e00d02 Spirit: applied Thomas Heller's patch fixing a bunch of warnings
[SVN r70605]
2011-03-26 23:48:38 +00:00
Hartmut Kaiser
cb0ad949b0 Spirit: fixing iterator handling in stream parser, added test
[SVN r70550]
2011-03-26 01:01:41 +00:00
Hartmut Kaiser
33ccba6f3a Spirit: comment fixes, minor adjustments
[SVN r70225]
2011-03-20 18:25:44 +00:00
Hartmut Kaiser
1cd6547388 Spirit: more work on Qi container attributes
[SVN r70211]
2011-03-19 23:42:09 +00:00
Hartmut Kaiser
9db67059e0 Spirit: adding test for recently fixed container attribute handling problem
[SVN r70045]
2011-03-17 00:18:08 +00:00
Hartmut Kaiser
8483d78f97 Spirit: adding possibility to specify token id with lex::char_ and lex::string
[SVN r69833]
2011-03-10 22:29:40 +00:00
Joel de Guzman
814f2416bb fixes bug_march_10_2011_8_35_am in alternative.cpp test
[SVN r69813]
2011-03-10 01:16:39 +00:00
Hartmut Kaiser
eddea13c02 Spirit: adding a failing test case to alternative.cpp
[SVN r69780]
2011-03-09 20:07:51 +00:00
Hartmut Kaiser
95e1432c0c Spirit: fixing attribute problem in new assign_value_to_container CP
[SVN r69772]
2011-03-09 14:34:51 +00:00
Joel de Guzman
5da23ebd08 keywords patch
[SVN r69671]
2011-03-08 02:18:41 +00:00
Joel de Guzman
d426d220b6 Bug?
[SVN r69599]
2011-03-06 05:41:28 +00:00
Hartmut Kaiser
418fd94ddb Spirit: fixed compilation issue in attribute handling code
[SVN r69527]
2011-03-03 18:49:26 +00:00
Hartmut Kaiser
25216c09c8 Spirit: commented two non-functional use cases
[SVN r69498]
2011-03-02 23:45:14 +00:00
Hartmut Kaiser
89b05ff46d Spirit: added handling of variants to the new attribute handling
[SVN r69495]
2011-03-02 23:37:52 +00:00
Hartmut Kaiser
7c324eef45 Spirit: fixing container attribute handling of sequences and container parser components
[SVN r69405]
2011-02-28 22:43:13 +00:00
Hartmut Kaiser
5afb701cc1 Spirit: added context to top level APIs, added docs, added tests
[SVN r69293]
2011-02-26 04:07:14 +00:00
Hartmut Kaiser
14cdc347c5 Spirit: Fixing obscure bug in qi::attr(), added test case
[SVN r69219]
2011-02-23 20:09:38 +00:00
Joel de Guzman
0cc2c21375 fixed test error
[SVN r69138]
2011-02-22 02:08:05 +00:00
Hartmut Kaiser
34caf28b54 Spirit: fixed karma::repeat to use the new attribute propagation scheme as well, adding tests
[SVN r69092]
2011-02-20 19:27:22 +00:00
Joel de Guzman
d0ce4409fa Tweaks. Allow attribute compatibility on alternatives
[SVN r69023]
2011-02-19 09:15:03 +00:00
Joel de Guzman
2b1dac562a Allow attribute compatibility with semantic actions
[SVN r68906]
2011-02-15 03:20:11 +00:00
Hartmut Kaiser
0dc2bc3fc6 Spirit: fixing a kleene/sequence attribute issue
[SVN r68852]
2011-02-13 20:43:52 +00:00
Hartmut Kaiser
dda450b4d8 Spirit: added one more test
[SVN r68746]
2011-02-09 14:26:54 +00:00
Joel de Guzman
b49f827549 added option to have no predefined terminals
[SVN r68744]
2011-02-09 10:44:41 +00:00
Hartmut Kaiser
3fc4ceb718 Spirit: unified handling of sequences and container components for container attributes, modified hold_any to enable streaming with wchar_t, added extract_from_container CP, fixed integral generators for const data types
[SVN r68645]
2011-02-05 03:48:49 +00:00
Bryce Adelstein-Lelbach
31ae946ef9 Fix for broken utree logical operations.
[SVN r68576]
2011-01-31 05:31:55 +00:00
Bryce Adelstein-Lelbach
dc09ed9169 Added support for storing function references in utree.
[SVN r68549]
2011-01-29 18:58:27 +00:00
Bryce Adelstein-Lelbach
5a30752baa Added regression tests and fixes for Spirit.Qi numeric literal alternatives issue.
[SVN r68487]
2011-01-27 20:30:12 +00:00
Hartmut Kaiser
38e43304b2 Spirit: fixing test Jamfile
[SVN r68298]
2011-01-19 17:08:17 +00:00
Hartmut Kaiser
e072d85c37 Adding test
[SVN r68292]
2011-01-19 16:08:52 +00:00
Steven Watanabe
2adcb7862b Revert [67111] (addition of boost/detail/iomanip.hpp) and all the commits that depend on it. ([68137], [68140], [68141], [68154], and [68165]).
[SVN r68168]
2011-01-15 08:11:51 +00:00
Hartmut Kaiser
5cca7065e8 Spirit: added explicit name() to symbols, doc fixes
[SVN r68166]
2011-01-15 02:48:46 +00:00
Bryce Adelstein-Lelbach
3d1cd1811c Replacing the use of <iomanip> with <boost/detail/iomanip.hpp> across Boost.
On Linux, GNU's libstdc++, which is the default stdlib for icc and clang,
cannot parse the <iomanip> header in version 4.5+ (which thankfully neither
compiler advises the use of yet), as it's original C++98-friendly
implementation has been replaced with a gnu++0x implementation.
<boost/detail/iomanip.hpp> is a portable implementation of <iomanip>, providing
boost::detail::setfill, boost::detail::setbase, boost::detail::setw,
boost::detail::setprecision, boost::detail::setiosflags and
boost::detail::resetiosflags. 



[SVN r68140]
2011-01-14 02:35:58 +00:00
Hartmut Kaiser
9fec54a408 Spirit: fixing regression in netlib url parser
[SVN r67963]
2011-01-11 16:18:19 +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
Hartmut Kaiser
ca6b180931 Spirit: replaced proto::lit with spirit::lit
[SVN r67754]
2011-01-07 17:50:06 +00:00
Bryce Adelstein-Lelbach
9a4c9d7852 Fixes for utree tags (tag method won't throw for non-strings utree types, bug
fix from peper for max-size shorts).



[SVN r67744]
2011-01-07 01:09:17 +00:00
Bryce Adelstein-Lelbach
e1b0e45a5d Removed Qi numeric literals (interference w/ auto magic)
[SVN r67737]
2011-01-06 23:37:52 +00:00
Bryce Adelstein-Lelbach
a1fa5e9721 Added FIXME comments for utree sequence tests.
[SVN r67713]
2011-01-06 04:24:26 +00:00
Hartmut Kaiser
2b12744edf Spirit: added more tests
[SVN r67712]
2011-01-06 03:12:02 +00:00
Hartmut Kaiser
0134cd358f Spirit: added more tests
[SVN r67693]
2011-01-05 22:38:10 +00:00
Hartmut Kaiser
242874826f Spirit: more utree fixes
[SVN r67689]
2011-01-05 21:06:41 +00:00
Bryce Adelstein-Lelbach
77f6955781 Regenned docs to fix a problem in them, added more utree tests.
[SVN r67683]
2011-01-05 16:44:32 +00:00
Hartmut Kaiser
83a792d7ed Spirit: updating copyrights
[SVN r67619]
2011-01-03 16:58:38 +00:00
Bryce Adelstein-Lelbach
569b3111e1 Renamed the "get_c_string_impl" Spirit CP to "extract_c_string"; changed utree
tests for mixed expectation/sequence operators. Added spirit::result_of::get_begin
and spirit::result_of::get_end to string_traits.hpp.



[SVN r67606]
2011-01-03 05:24:09 +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
Bryce Adelstein-Lelbach
eac6e38159 Reorganized Spirit tests, broke down larger tests so they won't time out on
ICC.



[SVN r67494]
2010-12-29 21:17:01 +00:00
Hartmut Kaiser
f30ca2301d Spirit: utree modifications, mostly
[SVN r67472]
2010-12-27 23:45:44 +00:00
Hartmut Kaiser
9efb146e36 Spirit: touching up utree
[SVN r67457]
2010-12-26 17:18:24 +00:00
Hartmut Kaiser
0fa3a02cd6 Spirit: added test
[SVN r67455]
2010-12-26 15:30:11 +00:00
Hartmut Kaiser
ac0cdfb0a7 Spirit: utree integration, initial implementation complete
[SVN r67447]
2010-12-25 21:13:56 +00:00
Hartmut Kaiser
3f90d0c7d8 Spirit: fixing Qi sequence attribute handling
[SVN r67442]
2010-12-24 02:12:10 +00:00
Hartmut Kaiser
d785d4f538 Spirit: fixing Karma string literal problem
[SVN r67441]
2010-12-24 02:10:11 +00:00
Bryce Adelstein-Lelbach
05913d71b4 Added the as directive.
[SVN r67437]
2010-12-23 21:14:50 +00:00
Bryce Adelstein-Lelbach
a007ccec8d Removed the typed string CP, add a fix for sequences, and some new tests for
them.



[SVN r67409]
2010-12-22 05:20:00 +00:00
Hartmut Kaiser
25b26153d5 Spirit: fixed/added utree tests
[SVN r67408]
2010-12-22 01:27:07 +00:00
Bryce Adelstein-Lelbach
3b37b8e575 Added a new utree CP to allow rule<Iterator, utf8_string_type()> r = char("+-/*")
semantics (rationale: a single character is represented as a string in utree).
Also added tests for the above functionality.



[SVN r67392]
2010-12-21 19:54:14 +00:00
Bryce Adelstein-Lelbach
555ce8238d Retooled the get_c_string customization point in Spirit (reimplemented it as
a static member of a template struct) to fix parameterized use of karma::string
with utree (e.g., string("foo")). Broke the Spirit test-suite into five test-suites
in the test Jamfile for testing individual Spirit modules (this doesn't change
what tests are run if you just invoke 'bjam' in libs/spirit/test, nor does it change
where in the build directory the tests are placed). Added some more utree tests.



[SVN r67380]
2010-12-21 07:17:40 +00:00
Hartmut Kaiser
28bb0466c4 Spirit: adding uninitialized utree node type
[SVN r67379]
2010-12-21 02:50:47 +00:00
Hartmut Kaiser
0643a7d53e Spirit: utree documentation work
[SVN r67357]
2010-12-20 01:59:17 +00:00
Hartmut Kaiser
c6e903b281 Spirit: fixing header ordering
[SVN r67344]
2010-12-19 17:25:22 +00:00
Hartmut Kaiser
04faf8e525 Spirit: improving integration of utree in Karma
[SVN r67316]
2010-12-19 03:37:49 +00:00
Joel de Guzman
408f917c68 correct as_string behavior
[SVN r67056]
2010-12-06 03:58:13 +00:00
Hartmut Kaiser
ab5c13c58c Spirit: working on utree integration with Karma, adding tests
[SVN r67052]
2010-12-06 00:14:19 +00:00
Hartmut Kaiser
d7a5158607 Spirit: adding a few utree test cases which currently still fail
[SVN r67024]
2010-12-05 18:40:31 +00:00
Joel de Guzman
5bef5d36d7 added as_string directive as a synonym to "raw".
[SVN r67019]
2010-12-05 04:37:45 +00:00
Hartmut Kaiser
48abd98e8d Spirit: fixed utree tests
[SVN r67001]
2010-12-04 02:16:51 +00:00
Hartmut Kaiser
9d4b93650f Spirit: fixed utree tests
[SVN r66999]
2010-12-04 02:03:33 +00:00
Joel de Guzman
e690655eb1 Utree-spirit integration
[SVN r66995]
2010-12-03 23:54:39 +00:00
Hartmut Kaiser
a2b5ee39e9 Spirit: more warning fixes in lexer tests
[SVN r66948]
2010-12-01 14:39:43 +00:00
Hartmut Kaiser
adce0d2f4a Spirit: minor adjustment to lexer test
[SVN r66947]
2010-12-01 14:36:07 +00:00
Hartmut Kaiser
882b2786a0 Spirit: more utree fixes for better integration with Qi, updated tests
[SVN r66938]
2010-11-30 23:42:03 +00:00
Hartmut Kaiser
4828ebed7b Spirit: more utree tests
[SVN r66935]
2010-11-30 22:55:27 +00:00
Hartmut Kaiser
791e72f108 Spirit: test fixes...
[SVN r66919]
2010-11-30 20:36:09 +00:00
Hartmut Kaiser
b638e2cba0 Spirit: adding basic utree tests
[SVN r66916]
2010-11-30 20:14:08 +00:00
Hartmut Kaiser
acbd5cca5d Spirit: adding minimal utree tests
[SVN r66913]
2010-11-30 19:50:10 +00:00
Hartmut Kaiser
e7b6b72df8 Spirit: fixing warnings in lexer tests
[SVN r66850]
2010-11-29 19:05:45 +00:00
Hartmut Kaiser
3ddbb0263b Spirit: added new test for lexer id_types not equal to std::size_t
[SVN r66849]
2010-11-29 18:51:12 +00:00
Hartmut Kaiser
fdcc51780c Spirit: adding more tests, updating docs
[SVN r66796]
2010-11-27 16:05:13 +00:00
Hartmut Kaiser
ab43e2e78b Spirit: added two more lexer examples
[SVN r66777]
2010-11-26 18:33:30 +00:00
Hartmut Kaiser
42dc03c37b Spirit: added one more lexer regression test
[SVN r66761]
2010-11-25 22:41:23 +00:00
Hartmut Kaiser
07aaaca51b Spirit: adding new test for lexer lookahead
[SVN r66741]
2010-11-24 23:51:56 +00:00
Hartmut Kaiser
13a4d3c83a Spirit: adding yet another regression test
[SVN r66738]
2010-11-24 18:10:35 +00:00
Hartmut Kaiser
e329f1b28e Spirit: adding test case for lexer problem fixed with the previous commit
[SVN r66736]
2010-11-24 17:16:23 +00:00
Hartmut Kaiser
637d7522af Spirit: adjusting code to pass new assert inspect rule
[SVN r66504]
2010-11-12 00:36:49 +00:00
Hartmut Kaiser
67789d3e51 Spirit: added regression test for qi::repeat
[SVN r66169]
2010-10-25 00:53:56 +00:00
Hartmut Kaiser
d0252c5aa6 Spirit: fixed #4742 (Karma produces not the supposed output for a real number generator in scientific mode), added test
[SVN r66051]
2010-10-17 20:41:51 +00:00
Hartmut Kaiser
8259c2c711 Adding regression test for real_parser<float>, still fails, ATM.
[SVN r65655]
2010-09-28 22:29:34 +00:00
Hartmut Kaiser
94eb1365dd Added test case for broken debug output for optionals
[SVN r64973]
2010-08-23 17:55:47 +00:00
Christopher Schmidt
9c969ae095 fixed initialization of one-element fusion sequences
[SVN r64699]
2010-08-09 19:24:48 +00:00
Hartmut Kaiser
6d828ccc85 Spirit: fixed a problem while handling single element sequence attributes
[SVN r64258]
2010-07-22 13:24:20 +00:00
Hartmut Kaiser
e53af16ab2 Spirit: added karma::duplicate[] directive, tests and docs
[SVN r63892]
2010-07-11 19:41:53 +00:00
Hartmut Kaiser
f0ca803b90 Spirit: minor documentation work, untabified file
[SVN r63788]
2010-07-09 19:02:54 +00:00
Joel de Guzman
fd3f45f181 disallowing partial parses of ints and enforcing overflow-is-parse-error rule.
[SVN r63127]
2010-06-20 10:05:10 +00:00
Hartmut Kaiser
ffd143b920 Spirit: fixed backtracking problem if semantic action makes parse fail retrospectively, added test
[SVN r63087]
2010-06-18 21:51:30 +00:00
Hartmut Kaiser
ab1f828376 Spirit: fixed #4253: Error with lex::_val, added test
[SVN r62184]
2010-05-25 02:55:57 +00:00
Hartmut Kaiser
44a4d27dee Spirit: Fixing numeric parser tests
[SVN r62145]
2010-05-22 14:57:10 +00:00
Hartmut Kaiser
bcf948448b Spirit: fixing const correctness problem, added test
[SVN r62144]
2010-05-22 14:28:52 +00:00
Hartmut Kaiser
600edefd1c Spirit: Added tests to ensure numeric overflow leads to failing parse
[SVN r62116]
2010-05-20 17:25:08 +00:00
Hartmut Kaiser
b81a218d3d Spirit: fixing strict issue in Karma sequences, added test case
[SVN r61844]
2010-05-07 18:02:30 +00:00
Hartmut Kaiser
bbca6fad7d Spirit: added a test case
[SVN r61838]
2010-05-07 15:45:40 +00:00
Hartmut Kaiser
c4bd086c9f Spirit: introduced new cutomization point for karma alternatives (variant_which) and extended strict mode to alternatives, added tests
[SVN r61727]
2010-05-02 03:07:54 +00:00
Douglas Gregor
1f1bdb03c0 Eliminate a redundant (and therefore incorrect) using declaration for int_.
[SVN r61696]
2010-04-30 07:00:44 +00:00
Hartmut Kaiser
fdb92763c6 Spirit: added strict mode to Karma, new directives strict[] and relaxed[]. No docs yet
[SVN r61491]
2010-04-22 20:25:10 +00:00
Hartmut Kaiser
e7dcdee2c7 Spirit: enabling Qi debug test
[SVN r61478]
2010-04-22 01:01:07 +00:00
Hartmut Kaiser
2966839ec7 Spirit: fixed gcc compilation problems, added karma debug support, fixed Qi debug indentation
[SVN r61475]
2010-04-21 23:35:50 +00:00
Hartmut Kaiser
491095d948 Spirit: fixing problem with using a karma::repeat[] in a sequence.
[SVN r61468]
2010-04-21 17:22:37 +00:00
Hartmut Kaiser
08afd83615 Spirit: added karma::skip directive
[SVN r61445]
2010-04-21 00:49:21 +00:00
Hartmut Kaiser
36a531388f Spirit: added regression test
[SVN r61426]
2010-04-20 14:37:58 +00:00
Hartmut Kaiser
7a2557646c Spirit: fixing inspect errors
[SVN r61371]
2010-04-18 18:23:18 +00:00
Hartmut Kaiser
f0b3d3c909 Spirit: fixed attribute propagation of optionals in rules
[SVN r61328]
2010-04-16 22:47:13 +00:00
Hartmut Kaiser
bfe0fe032c Spirit: enabled single element sequences everywhere a single value is expected (Qi, Karma), added tests
[SVN r61324]
2010-04-16 18:15:19 +00:00
Hartmut Kaiser
5b0795c272 Spirit: added single character syntax for character ranges for Karma as well, added tests
[SVN r61321]
2010-04-16 18:01:02 +00:00
Hartmut Kaiser
ce3ab6be45 Spirit: added single character syntax for character ranges, added tests
[SVN r61319]
2010-04-16 17:56:11 +00:00
Hartmut Kaiser
12b882b557 Spirit: added more tests
[SVN r61308]
2010-04-16 02:48:12 +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
13b3ef8e1b Spirit: added new test
[SVN r61124]
2010-04-07 13:27:52 +00:00
Joel de Guzman
717a52ae53 fix for new attribute handling for int parsers.
[SVN r61122]
2010-04-07 13:10:15 +00:00
Joel de Guzman
ce03668632 added tests for handling debug output for stl containers
[SVN r60494]
2010-03-12 00:20:01 +00:00
Hartmut Kaiser
b6b0b4fd47 Spirit: Fixing problem in Karma repetitive generators.
[SVN r60451]
2010-03-10 23:37:04 +00:00
Joel de Guzman
5b0e883834 more tests
[SVN r60346]
2010-03-08 12:50:04 +00:00
Hartmut Kaiser
1420ca57dc Spirit: implemented new encoding features for Karma, added tests
[SVN r60257]
2010-03-06 21:59:15 +00:00
Joel de Guzman
190c6d21c8 tweaks
[SVN r60220]
2010-03-06 00:19:12 +00:00
Joel de Guzman
2b35713eea better "encoding" usage
[SVN r60217]
2010-03-05 23:17:02 +00:00
Joel de Guzman
48ee009d92 rules with parameters for char encoding
[SVN r60190]
2010-03-05 15:40:12 +00:00
Joel de Guzman
d04374aabb encoding directive
[SVN r60184]
2010-03-05 13:30:35 +00:00
Hartmut Kaiser
7576bd0c7b Spirit: fixing copyrights
[SVN r60155]
2010-03-04 19:00:09 +00:00
Hartmut Kaiser
38152660b1 Spirit: Fixed return value for expect parser if exceptions are not enabled.
[SVN r60154]
2010-03-04 18:58:28 +00:00
Hartmut Kaiser
99f7c4a8a8 Spirit: fixed #3815 (Clearing an iterator range), added test
[SVN r59930]
2010-02-26 01:13:28 +00:00
Hartmut Kaiser
93407fafd1 Spirit: added karma::no_delimit[], added post-delimit step to implicit verbatim Karma rules
[SVN r59761]
2010-02-19 15:45:23 +00:00
Hartmut Kaiser
30018804eb Spirit: adding no_skip[] directive, docs, tests, etc.
[SVN r59719]
2010-02-17 02:18:44 +00:00
Joel de Guzman
d969d8eb2d minor tweaks
[SVN r59717]
2010-02-17 02:09:30 +00:00
Hartmut Kaiser
7eac2e0b03 Spirit: buffer[buffer[...]] does not result in double buffering anymore, added tests
[SVN r59541]
2010-02-07 04:00:46 +00:00
Joel de Guzman
da553929ec added hold directive
[SVN r59521]
2010-02-06 02:15:34 +00:00
Joel de Guzman
104e749067 added hold directive
[SVN r59520]
2010-02-06 01:55:56 +00:00
Hartmut Kaiser
9460453df6 Spirit: added another testcase for multi_pass
[SVN r59496]
2010-02-05 00:45:18 +00:00
Hartmut Kaiser
98487ff905 Spirit: fixing inspect errors
[SVN r59488]
2010-02-05 00:32:43 +00:00
Hartmut Kaiser
c26800257e Spirit: added testcase for latest regression
[SVN r59487]
2010-02-05 00:32:14 +00:00
Joel de Guzman
8f203e8106 More Unicode Support
[SVN r59441]
2010-02-03 12:35:53 +00:00
Joel de Guzman
67d5d07428 basic unicode tests ok
[SVN r59424]
2010-02-02 12:15:30 +00:00
Joel de Guzman
3e345922f1 fix regression failure. macro BOOST_SPIRIT_TEST_REAL_PRECISION enables a particular test for precision. This is disabled by default.
[SVN r59361]
2010-01-30 03:44:30 +00:00
Hartmut Kaiser
f1bb6c531e Spirit: added tests for sequences with unused attribute at the end
[SVN r59357]
2010-01-30 02:18:10 +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
27b7ad03b9 Spirit: more tests for recent binary fix
[SVN r58943]
2010-01-12 16:20:01 +00:00
Hartmut Kaiser
3cbf0e686c Spirit: added another test case for unsigned integer generators
[SVN r58942]
2010-01-12 16:14:39 +00:00
Hartmut Kaiser
305d978127 Spirit: fixing tests for qi::matches[]
[SVN r58917]
2010-01-12 01:10:31 +00:00
Hartmut Kaiser
d180c4d806 Spirit: reverting change to Qi sequence attribute handling
[SVN r58850]
2010-01-09 18:52:59 +00:00
Hartmut Kaiser
8ad85ef03c Spirit: fixing attribute handling in sequences
[SVN r58824]
2010-01-09 03:51:21 +00:00
Hartmut Kaiser
6943646dd8 Spirit: adding tests for the matches[] directive
[SVN r58798]
2010-01-08 02:35:10 +00:00
Hartmut Kaiser
88084a2bc2 Spirit: fixing tests for Qi match
[SVN r58770]
2010-01-06 16:01:05 +00:00
Hartmut Kaiser
d2a4c7db6a Spirit: added more tests for Karma auto_
[SVN r58769]
2010-01-06 16:00:18 +00:00
Hartmut Kaiser
33bcfd368c Spirit: fixing Karma binary tests
[SVN r58768]
2010-01-06 15:59:37 +00:00
Hartmut Kaiser
6bea365c51 Spirit: updating copyrights, doc version, etc.
[SVN r58589]
2009-12-30 16:16:52 +00:00
Hartmut Kaiser
9e68c7836b Spirit: fixing a problem in sequences if the attribute is a container of containers, more test cases
[SVN r58564]
2009-12-29 16:37:17 +00:00
Hartmut Kaiser
c5714e60b2 Spirit: little endian binary test fix
[SVN r58520]
2009-12-23 22:22:38 +00:00
Hartmut Kaiser
5b38575814 Spirit: minor test adjustment
[SVN r58469]
2009-12-20 14:32:08 +00:00
Hartmut Kaiser
e774599d93 Spirit: fixing qi::repeat[] for unused attributes, augmented tests
[SVN r58414]
2009-12-16 12:31:16 +00:00
Hartmut Kaiser
0cad894939 Spirit: fixing problem in qi::repeat[], augmented tests
[SVN r58408]
2009-12-16 01:38:09 +00:00
Hartmut Kaiser
cfc930afff Spirit: doc fixes and test additions
[SVN r58379]
2009-12-14 15:53:02 +00:00
Hartmut Kaiser
4e02281ad7 Spirit: added bool return value to push_back customization point, adjusted tests
[SVN r58298]
2009-12-11 19:50:35 +00:00
Hartmut Kaiser
3ff68ed6e1 Spirit: added new karma example
[SVN r58171]
2009-12-06 01:17:45 +00:00
Hartmut Kaiser
a825026007 Spirit: updated docs, added more tests
[SVN r58145]
2009-12-04 19:59:57 +00:00
Hartmut Kaiser
1bcf398ae5 Spirit: adding karma::columns directive, tests
[SVN r58121]
2009-12-03 17:47:30 +00:00
Hartmut Kaiser
fad57733ed Spirit: simplified auto facilities, adjusted tests to compile with gcc as well
[SVN r58118]
2009-12-03 16:57:55 +00:00
Hartmut Kaiser
77812536a2 Spirit: added tests for new API functions
[SVN r58107]
2009-12-03 03:18:41 +00:00
Hartmut Kaiser
efc0ae870a Spirit: added new karma example (auto_facilities.cpp), tweaks to auto_ tests
[SVN r58083]
2009-12-01 14:35:34 +00:00
Hartmut Kaiser
ae775567c9 Spirit: fixes to karma::auto_, added qi::auto_, added tests
[SVN r58048]
2009-11-29 23:30:50 +00:00
Hartmut Kaiser
fa09b0f10c Spirit: added karma::auto_ and related facilities, added test
[SVN r58042]
2009-11-29 21:28:22 +00:00
Hartmut Kaiser
fca181ea0a Spirit: added karma::symbols generator, updated docs, tests, and example
[SVN r57974]
2009-11-27 19:09:02 +00:00
Hartmut Kaiser
612ff62ba2 Spirit: reverted latest change
[SVN r57930]
2009-11-25 23:18:02 +00:00
Hartmut Kaiser
f5aa0b31aa Spirit: added specializations for the push_back CP for optional attribute values, adjusted tests
[SVN r57905]
2009-11-24 20:57:05 +00:00
Hartmut Kaiser
550e6c849b Spirit: fixed test case
[SVN r57869]
2009-11-23 17:23:43 +00:00
Hartmut Kaiser
94565f00c2 Spirit: added new test cases
[SVN r57865]
2009-11-23 16:26:11 +00:00
Daniel James
9a599c07fd Implement prefix_find.
[SVN r57730]
2009-11-17 20:26:15 +00:00
Daniel James
8d0e234b86 Don't match substrings in symbols::find.
[SVN r57718]
2009-11-16 23:56:20 +00:00
Hartmut Kaiser
7c970d0298 Spirit: updating static lexer support
[SVN r57583]
2009-11-11 21:29:50 +00:00
Hartmut Kaiser
b27b5c312a Spirit: started to integrate re2c style code generator for lexer
[SVN r57563]
2009-11-11 03:58:20 +00:00
Daniel James
02ff0bf2cc Fix a few gcc warnings. Still some long long constant warnings and an integer overflow warning.
[SVN r57524]
2009-11-09 19:46:09 +00:00
Hartmut Kaiser
aab62c9837 Spirit: silencing MSVC warnings
[SVN r57505]
2009-11-09 04:02:16 +00:00
Hartmut Kaiser
62acdc7a6b Spirit: and yet another fixed warning
[SVN r57473]
2009-11-07 23:00:36 +00:00
Hartmut Kaiser
66c1ec2ad5 Spirit: fixing more warnings
[SVN r57472]
2009-11-07 22:58:06 +00:00
Hartmut Kaiser
5ef3e235dc Spirit: fixing more warnings
[SVN r57470]
2009-11-07 22:37:06 +00:00
Hartmut Kaiser
b05fe26fae Spirit: fixing bug in alternatives taking optionals
[SVN r57435]
2009-11-06 14:40:18 +00:00
Hartmut Kaiser
b77800682a Spirit: removed another superfluous semicolon
[SVN r57417]
2009-11-05 17:58:19 +00:00
Hartmut Kaiser
d0a1718f17 Spirit: replaced long long by boost::long_long_type
[SVN r57415]
2009-11-05 17:50:26 +00:00
Joel de Guzman
c7df3e7cd3 symbols fix from Daniel James
[SVN r57401]
2009-11-05 07:34:23 +00:00
Hartmut Kaiser
c2708c20e8 Spirit: adjusting test case for reverted semantics
[SVN r57309]
2009-11-03 15:00:38 +00:00
Hartmut Kaiser
8d41d43c5b Spirit: added new lexer test
[SVN r57299]
2009-11-03 01:54:01 +00:00
Hartmut Kaiser
92977a52a2 Spirit: added new lexer test
[SVN r57278]
2009-11-01 17:51:02 +00:00
Hartmut Kaiser
2a2df9a5d2 Spirit: added stream based API description to docs
[SVN r57233]
2009-10-29 18:07:19 +00:00
Hartmut Kaiser
8f609c5ee3 Spirit: added stream based API description to docs
[SVN r57226]
2009-10-29 15:43:25 +00:00
Hartmut Kaiser
ea051b978b Spirit: doc update
[SVN r57163]
2009-10-27 00:02:10 +00:00
Hartmut Kaiser
e39451eb0e Spirit: added even more alternative tests
[SVN r57130]
2009-10-24 14:18:32 +00:00