Commit Graph

901 Commits

Author SHA1 Message Date
Joel de Guzman
c5fe8848ce added explicit force_attribute bool template parameter to rule 2015-04-08 14:34:29 +08:00
Joel de Guzman
67854cb26e Merge pull request #55 from mlang/x3/test/optional-omit
Re-enable the use of omit in test/x3/optional.cpp.
2014-11-22 01:22:24 +08:00
Joel de Guzman
eb135d77c4 Big negative exponents now fail parsing instead of a runtime assertion. 2014-11-07 20:09:37 +08:00
Joel de Guzman
b7c04a2374 Big exponents now fail parsing instead of a runtime assertion. 2014-11-07 18:23:19 +08:00
Joel de Guzman
6832dc2298 fixing various corner case bugs. the new implementation uses integers
for intermediate computations to improve precision.
2014-11-07 18:23:19 +08:00
Joel de Guzman
27d8c7e2f4 Merge pull request #67 from teajay-fr/bug/gcc_4.9.1_support
Change the language feature set option for gcc
2014-11-06 08:45:53 +08:00
Joel de Guzman
c0d6ed357b Fixes Trac #10755 "Wrong overflow checking with uint_parser<uint8_t,
10, 1, 3>"
2014-11-06 08:38:06 +08:00
Thomas Bernard
8237380a16 Change the language feature set option for gcc 2014-11-06 00:34:39 +01:00
Thomas Bernard
fec70d409c Merge branch 'x3-devel' into feature/x3_devlop_merge
Conflicts:
	include/boost/spirit/home/x3/extensions/repeat.hpp
	test/x3/Jamfile

Add support for no_case to the bool parsers
2014-11-01 23:43:02 +01:00
Joel de Guzman
d9678d5d50 Merge pull request #62 from vtnerd/BugFix-NullTermination
Fixed bug with null-termination and string containers.
2014-10-19 12:48:58 +08:00
Lee Clagett
726a930dc6 Fixed bug with null-termination and string containers. 2014-10-18 23:56:15 -04:00
Thomas Bernard
e4d195ef29 Merge branch 'x3-devel' of https://github.com/boostorg/spirit into feature/x3_no_case
Conflicts:
	include/boost/spirit/home/x3/string/literal_string.hpp

Finalized the no_case handling based on the corrected encoding handling
2014-10-18 10:15:49 +02:00
Thomas Bernard
92bd34bd79 Corrected the seperation of the literal string from their sizes in the
any_char operator()
Reactivated all the char set tests
2014-10-15 23:00:58 +00:00
Thomas Bernard
7bde4c42ff Add as_parser templates to handle on char strings as char_ instead of
literal_string
2014-10-13 09:30:41 +00:00
Thomas Bernard
a4e043101c Add the char_set and char_range parser 2014-10-12 17:16:07 +00:00
Thomas Bernard
eec3ff5316 Fix the char encoding specific generators for all the string literal
parsers
2014-10-12 15:57:55 +00:00
Thomas Bernard
89cb0c3b69 Remove the development target 2014-10-12 14:11:18 +00:00
Thomas Bernard
60cca11616 Implement the no case directive for the symbols parser 2014-10-12 14:10:03 +00:00
Thomas Bernard
eb9f42adc7 Reactivate some test which pass 2014-10-07 23:25:45 +00:00
Thomas Bernard
ad9d0429a0 Use a less invasive case_compare type extraction from the context 2014-10-07 23:19:36 +00:00
Thomas Bernard
aa7ca423e4 Add the no_case context to the any_parser tests 2014-10-06 23:10:46 +00:00
Thomas Bernard
ea72c747af Make the char class parser no_case compatible.
Make all no_case tests pass.
2014-10-05 23:26:19 +00:00
Thomas Bernard
4b1fab071d Make no case directive compilable
Added helpers to parse no case strings
Fixed some include locks
Do not pass the encoding as runtime parameter to the parsing helpers
2014-09-21 22:41:22 +00:00
Mario Lang
707ae80ce7 Re-enable the use of omit in test/x3/optional.cpp. 2014-09-13 09:52:22 +02:00
Thomas Bernard
5a74952057 Add no case directive 2014-09-09 22:26:41 +00:00
Thomas Bernard
89d14edb05 Add no_case test cases 2014-09-08 22:05:52 +00:00
Joel de Guzman
31f4416286 added tests for DBL_MAX, DBL_EPSILON, DBL_MIN and DBL_DENORM_MIN 2014-09-05 11:45:45 +08:00
Joel de Guzman
5b5ccf2e49 fixes Ticket #10193 2014-08-11 17:52:24 +08:00
Joel de Guzman
d2afc02c2d - temporarily disabling some karma tests
- wrapped the affected tests in #if defined(BOOST_SPIRIT_ZERO_PROBLEM)
2014-07-15 11:08:13 +08:00
Joel de Guzman
bcd6f561ad Merge branch 'develop' 2014-07-10 08:07:16 +08:00
Tomoki Imai
f84d869ec8 Change from BOOST_TEST to BOOST_TEST_EQ for better information. 2014-06-16 13:44:16 +09:00
Tomoki Imai
e203a7c95d add line to run support/regression_line_pos_iterator.cpp 2014-06-14 18:55:44 +09:00
Tomoki Imai
67b3097895 Fix line_pos_iterator's column counting bug,get_current_line bug.
Add regresssion test for it.
2014-06-14 17:28:09 +09:00
K-ballo
d912186426 Revert "Merge pull request #37 from cppljevans/context_debug_fix_swap"
This reverts commit 527e54b549, reversing
changes made to 3928caeb3d.
2014-06-08 22:44:29 -03:00
Joel de Guzman
e95d80d682 added bool.cpp test 2014-06-07 08:23:32 +08:00
Lee Clagett
6825a6716f Ported confix to x3 extensions 2014-06-01 20:44:16 -04:00
Joel de Guzman
0f5844c525 Merge pull request #32 from vtnerd/bugfix/raw-handles-container
Bugfix/raw handles container
2014-05-31 13:32:18 +08:00
Lee Clagett
375ab999ed Changed the handles_container attribute of raw to always return true
The raw directive currently defers the decision of whether it can handle
a container to its subject (handles_container). If the subject cannot
handle a container, the raw directive returns false too. Since
is_container returns true for iterator_range, this creates problems with
the sequence operator that tries to call
attr.insert(attr.end(), raw_range) when handles_container of the raw
subject is false. Since the raw directive can handle container
attributes (it has for some time), it seemed best to always return true
for handles_container.
2014-05-30 08:38:59 -04:00
Joel de Guzman
29ead94468 Merge branch 'x3-devel' 2014-05-30 13:37:31 +08:00
Joel de Guzman
41cf0f5fdb minor adjustments. we're good to go. test pass. 2014-05-30 13:34:25 +08:00
Joel de Guzman
3afadd48dc Merge pull request #28 from teajay-fr/feature/x3_repeat
Feature/x3 repeat
2014-05-30 13:26:32 +08:00
Joel de Guzman
a70a53e856 Merge branch 'x3-devel' 2014-05-27 13:22:18 +08:00
Joel de Guzman
99430b8077 simplification of semantic action interface
- there are only 2 variations now f() and f(ctx)
  - added _attr(ctx) accessor for accessing the attribute
  - added _where(ctx) accessor for accessing the iterator range
this, and in preparation for a unified call interface for actions as well as lazy args to e.g. eps(f)
2014-05-26 17:03:26 +08:00
Joel de Guzman
528c1de366 made on_success mechanism as a member of the rule ID 2014-05-26 13:06:58 +08:00
Joel de Guzman
168e202365 making the rule ID more useful by making it a class where you define on_error (and later on_success) hooks. 2014-05-26 12:38:30 +08:00
Joel de Guzman
571fcb07ba fixed for new on_error interface 2014-05-25 08:34:38 +08:00
Joel de Guzman
913a092ee6 reverting previous mistakes 2014-05-25 08:29:56 +08:00
Joel de Guzman
1a960e4bba All tests are now passing. 2014-05-17 09:25:06 +08:00
Joel de Guzman
0e47e08037 added rcontext argument to parse functions 2014-05-15 21:46:25 +08:00
Lee Clagett
b77ab8b3d1 Adding test_failure to x3 test framework
The new test_failure function ensures that the first iterator argument
remains at the start position when parsing fails.
2014-05-11 10:14:41 -04:00
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