octopus-prime
2cd5e66cbf
Renamed test.
...
Added tests for:
<map>
<unordered_map>
<boost/unordered_map.hpp>
<vector>
<list>
<deque>
<set>
<unordered_set>
<boost/unordered_set.hpp>
<string>
2016-01-26 19:55:11 +01:00
octopus-prime
793ec4292c
Added test for map support.
2016-01-25 19:51:11 +01:00
Adrian Vogelsgesang
99c679026a
X3: test case for expect directive with nested kleene star
...
This testcase tries to use a kleene star within an expect directive.
The test compiles but the parsed attribute is not as expected.
2015-08-20 00:31:24 +02:00
Adrian Vogelsgesang
856f88f5d1
X3: test case for char_range boundaries
...
ticket: https://svn.boost.org/trac/boost/ticket/11531
2015-08-09 15:37:18 +02:00
Mario Lang
b42df6fe50
X3: Fix parse_sequence with variant_attribute.
2015-07-06 23:12:48 +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
f8adee2ced
X3: Add test for the fix in 2a94b18e97
.
2015-06-03 16:35:10 +02:00
Joel de Guzman
0a7fadd838
Merge pull request #104 from teajay-fr/feature/x3_binary
...
Add support for the binary parsers
2015-05-27 14:08:49 +08:00
Thomas Bernard
d5f1197790
Add support for the binary parsers
2015-05-23 15:26:45 +02:00
Mario Lang
ad507e4da1
Fix include paths.
...
Now the x3 testsuite builds again.
2015-05-22 09:05:47 +02:00
Mario Lang
10c13779b3
Rename {directive => extensions}/matches.hpp.
2015-05-21 22:25:37 +02:00
Mario Lang
dc4c7f824e
x3::matches.
2015-05-21 21:21:31 +02:00
Mario Lang
705524b1e1
X3: no_case *is* implemented.
2015-05-20 00:07:34 +02:00
Joel de Guzman
3627a46902
more test updates and cleanup
2015-05-14 07:40:18 +08:00
Joel de Guzman
0adee06b27
cleaning up the tests
2015-05-14 02:13:24 +08:00
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
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
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
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
bcd6f561ad
Merge branch 'develop'
2014-07-10 08:07:16 +08: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
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
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
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
Joel de Guzman
4fedf68181
Merge branch 'origin/x3-devel'
2014-04-23 07:28:10 +08: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
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
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
Joel de Guzman
5767624292
preparing for migration to boost devel
2014-03-18 10:53:30 +08:00