Commit Graph

4777 Commits

Author SHA1 Message Date
Joel de Guzman
92472c70f1 Merge pull request #129 from mlang/typos
Fix some typos in docs and comments.
2015-06-25 04:12:34 +08:00
Mario Lang
20ecf739f0 Fix some typos in docs and comments. 2015-06-24 20:45:54 +02:00
Joel de Guzman
45b1d55849 Merge pull request #128 from mlang/x3/drop-private-integer_sequence
X3: We do not need integer_sequence.hpp.
2015-06-24 19:32:20 +08:00
Mario Lang
d109f01de9 X3: We do not need integer_sequence.hpp. 2015-06-24 12:20:40 +02:00
Joel de Guzman
ec6fa6fe7a Merge pull request #127 from mlang/x3/expect/auto
X3: Simplify operator>.
2015-06-23 16:27:27 +08:00
Mario Lang
090e7a056e X3: Simplify operator>. 2015-06-23 09:48:51 +02:00
Joel de Guzman
2397342a0b Merge pull request #125 from mlang/x3/no-result_of-dep
X3: Use decltype instead of result_of.
2015-06-19 17:28:29 +08:00
Mario Lang
391cbb2f27 X3: Use decltype instead of result_of.
boost/utility/result_of.hpp is rather expensive to include.
Using decltype here makes the compile time go down by almost half a sec.
2015-06-19 09:49:26 +02:00
Joel de Guzman
c6aba10d55 Merge pull request #124 from mlang/x3/context/decltype-auto
X3: Eliminate two more hidden cases of get_result.
2015-06-19 09:07:21 +08:00
Joel de Guzman
6da74751a2 Merge pull request #123 from mlang/x3/add-constref
X3: Add another missing const&.
2015-06-19 09:06:33 +08:00
Mario Lang
d6b5f0d925 X3: Eliminate two more hidden cases of get_result.
This is a follow-up to 6ede5f7c81.
2015-06-18 17:19:49 +02:00
Mario Lang
d87aa6846b X3: Add another missing const&.
A tiny change which results in 7kb less binary size and
17.8s to 17.2s compile time reduction (GCC).
2015-06-18 16:00:04 +02:00
Joel de Guzman
544661db5f Merge pull request #122 from mlang/x3/remove-useless-using
X3: Remove useless using-directives.
2015-06-17 21:51:27 +08:00
Mario Lang
20658b2b21 X3: Remove useless using-directives. 2015-06-17 15:46:50 +02:00
Joel de Guzman
4f25cc4aba Merge pull request #121 from mlang/x3/context/decltype-auto
X3: [context] decltype(auto) makes get_result unnecessary.
2015-06-17 08:15:34 +08:00
Mario Lang
6ede5f7c81 X3: [context] decltype(auto) makes get_result unnecessary. 2015-06-17 02:06:51 +02:00
Mario Lang
2f20512a3b X3: Make use of implicit constructibility. 2015-06-16 23:46:01 +02:00
Joel de Guzman
0467669fd4 Merge pull request #119 from mlang/x3/inherit
X3: Use inheritance instead of typedef typename ...::type type;
2015-06-16 07:37:03 +08:00
Mario Lang
53352198fa X3: Use inheritance instead of typedef typename ...::type type; 2015-06-16 01:23:37 +02:00
Joel de Guzman
91bf92350d Merge pull request #118 from mlang/x3/fusion/auto
X3: Make use of Fusion member type deduction to simplify examples.
2015-06-16 06:11:35 +08:00
Mario Lang
6846946823 X3: Make use of Fusion member type deduction to simplify examples. 2015-06-15 22:30:00 +02:00
Joel de Guzman
50af4f9a61 Merge pull request #117 from mlang/x3/use-logical-or
X3: Simplify alternative::parse.
2015-06-15 06:37:19 +08:00
Mario Lang
af73c1c209 X3: Simplify alternative::parse. 2015-06-14 19:32:25 +02:00
Joel de Guzman
12713a5328 Merge pull request #116 from mlang/x3/avoid-copy
X3: Avoid copying the arguments to {unary,binary}_parser, sequence and alternative.
2015-06-14 06:20:00 +08:00
Mario Lang
1d7159ce0b X3: Avoid copying the arguments to {unary,binary}_parser, sequence and alternative.
For consistency with the rest.  Apparently, this brings the executable size
of an X3 grammar of mine down from 440936 to 420000.  It also reduces
compilation time a bit, which was rather unexpected (18.3s to 17.8s).
2015-06-13 19:31:44 +02:00
Joel de Guzman
7dccf4ce1a Merge pull request #115 from mlang/x3/test/sequence-of-sequences
X3: Add test for the fix in 2a94b18e97.
2015-06-03 23:28:16 +08:00
Joel de Guzman
a9d7610cab Merge pull request #84 from tabe/develop-set_end
fix unused parameter
2015-06-03 23:24:11 +08:00
Mario Lang
f8adee2ced X3: Add test for the fix in 2a94b18e97. 2015-06-03 16:35:10 +02:00
Joel de Guzman
a130e5f63c Merge pull request #112 from akrzemi1/patch-1
Removed unused result_t
2015-06-03 08:08:52 +08:00
Andrzej Krzemieński
7d1bf76803 Removed unused result_t
I get loads of warnings about this unused typedef when building QuickBook.
2015-06-02 17:09:32 +02:00
Joel de Guzman
7895809f76 Merge pull request #111 from mlang/x3/fix-push_back-to-mpl_view
X3: Fix push_back to mpl::view in x3::sequence.
2015-05-31 19:57:19 +08:00
Mario Lang
bc20650d9e X3: Remove unused include mpl/joint_view.hpp and add mpl/insert_range.hpp where appropriate. 2015-05-31 12:34:40 +02:00
Mario Lang
2a94b18e97 X3: Fix push_back to mpl::view in x3::sequence.
This is a follow-up to 20170960dc which
fixes x3::alternative, but omitted x3::sequence.
2015-05-31 01:12:09 +02:00
Mario Lang
2995de5fa1 Allow retrieval of the iterator_range of a position_tagged.
position_cache allows to retrieve the iterator_range of a
position tagged AST type.  However, pos_cache in error_handler<Iterator>
is private, so the iterator_range can not be retrieved from client code.
It would be useful for a "late raw" and for testing purposes.
This patch adds error_handler<Iterator>::position_of(position_tagged).
2015-05-29 11:10:15 +02:00
Mario Lang
c5b9823ae8 auto makes this simpler. 2015-05-29 02:02:40 +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
Joel de Guzman
7fef0c6394 Merge pull request #108 from teajay-fr/bugfix/x3_remove_pragma_once
Remove leftover pragma once
2015-05-27 07:28:04 +08:00
Thomas Bernard
bec3383191 Remove leftover pragma once 2015-05-26 22:51:55 +02:00
Joel de Guzman
e245aed20c Merge pull request #107 from mlang/x3/examples/no-BOOST_FOREACH
Forgot another use of BOOST_FOREACH.
2015-05-26 17:50:52 +08:00
Mario Lang
ecc69624af Forgot another use of BOOST_FOREACH. 2015-05-26 11:01:34 +02:00
Thomas Bernard
e1210dff47 Clean up and finalized the binary parser 2015-05-24 21:50:38 +02:00
Joel de Guzman
55e87419c7 c++11 coding style tweaks 2015-05-24 22:01:17 +08:00
Joel de Guzman
1c8d9b6e25 removing #pragma once clutter 2015-05-24 16:47:41 +08:00
Thomas Bernard
d5f1197790 Add support for the binary parsers 2015-05-23 15:26:45 +02:00
Joel de Guzman
03c5648858 Merge pull request #103 from mlang/x3/fix_include_paths
Fix include paths.
2015-05-22 16:44:16 +08:00
Mario Lang
ad507e4da1 Fix include paths.
Now the x3 testsuite builds again.
2015-05-22 09:05:47 +02:00
Joel de Guzman
cea20165bf - removing extensions
- promoting stuff from extensions to directive
2015-05-22 08:48:46 +08:00
Joel de Guzman
9f3e4c60ec Merge pull request #102 from mlang/x3/matches_directive
x3::matches.
2015-05-22 08:37:58 +08: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