Commit Graph

4777 Commits

Author SHA1 Message Date
Joel de Guzman
b1b1c166d8 Merge pull request #36 from sehe/develop
Fix assignment basic_hold_any::operator= #35 (c++11)
2014-06-06 08:19:55 +08:00
Joel de Guzman
2a735d84fe Merge branch 'temp' 2014-06-06 08:17:21 +08:00
Seth Heeren
de562e75ee Fix assignment basic_hold_any::operator= #35 (c++11)
The template version would not be used because the compiler-generated
one was a closer match. The implicit assignment, however, broke the
ownership semantics.
2014-06-06 02:12:02 +02:00
Joel de Guzman
dd80c84a05 Merge branch 'master' 2014-06-06 07:05:34 +08:00
Joel de Guzman
3928caeb3d Merge branch 'origin/master' 2014-06-06 07:03:33 +08:00
Joel de Guzman
ce24248d8f adding testing utility 2014-06-06 07:02:35 +08:00
Joel de Guzman
78658e8882 Merge pull request #35 from sehe/master
Fix assignment basic_hold_any::operator=
2014-06-06 07:01:15 +08:00
Seth Heeren
637bc77505 Fix assignment basic_hold_any::operator=
The template version would not be used because the compiler-generated
one was a closer match. The implicit assignment, however, broke the
ownership semantics.
2014-06-06 00:50:29 +02:00
K-ballo
a6c314fdb4 Cosmetic fixes to the repeat directive 2014-06-01 22:31:34 -03:00
Joel de Guzman
244c575066 Merge pull request #33 from vtnerd/feature/x3-confix
Feature/x3 confix
2014-06-02 09:01:07 +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
Joel de Guzman
409059dc43 Bumped spirit version 2014-05-31 13:07:24 +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
3ac97a6e33 Merge branch 'develop' 2014-05-28 16:08:58 +08:00
Joel de Guzman
e85cf3da3f fixed long standing operator precendence bug 2014-05-28 15:45:26 +08:00
Joel de Guzman
a70a53e856 Merge branch 'x3-devel' 2014-05-27 13:22:18 +08:00
Joel de Guzman
64e4fe1511 simpler name for bool template param 2014-05-27 06:21:09 +08:00
Joel de Guzman
6a7389bc50 fixes #9807 2014-05-27 06:19:44 +08:00
Joel de Guzman
c21c79f9f4 Some cleanup 2014-05-26 23:28:51 +08:00
Joel de Guzman
fb2ab52da1 merging position_cache with error_handler 2014-05-26 20:00:45 +08:00
Joel de Guzman
faebc75274 compiler error handling looking good 2014-05-26 19:32:56 +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
b00adde370 using is_callable utility instead of proto hack 2014-05-26 14:14:30 +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
dd352e4b60 ported all grammars to the new syntax 2014-05-26 09:07:15 +08:00
Joel de Guzman
b20c23d134 adjust the examples to reflect API changes 2014-05-26 07:38:02 +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
275b0bcb34 some cleanup 2014-05-24 17:29:09 +08:00
Joel de Guzman
683ed7df49 improved exception handling API: on_error(first, last, x, context) 2014-05-24 16:45:46 +08:00
Joel de Guzman
41b5b4b1a6 implemented clang-style error handling 2014-05-24 16:32:23 +08:00
Joel de Guzman
8ca164044c - added lambda_visitor
- added annotation of ASTs
2014-05-19 11:53:25 +08:00
Joel de Guzman
caf19f5c7c passing position_cache as context to our parser (for error handling) 2014-05-19 10:34:16 +08:00
Joel de Guzman
0a32d104db incremental port again 2014-05-19 02:46:48 +08:00
Joel de Guzman
92b4f69c74 another incremental port of qi::calc7 2014-05-18 07:27:29 +08:00
Joel de Guzman
97a3004e95 improved expression api 2014-05-17 19:21:42 +08:00
Joel de Guzman
252e712524 porting qi/calc7 to x3 calc8 2014-05-17 19:13:56 +08:00
Joel de Guzman
fe2a3e13bb bumping copyright dates 2014-05-17 17:41:20 +08:00
Joel de Guzman
a73c91d14d more cleanup 2014-05-17 17:19:41 +08:00
Joel de Guzman
2610912397 added phrase_parse_context 2014-05-17 11:56:34 +08:00
Joel de Guzman
4fa3f73caa cleanup simplification 2014-05-17 11:25:04 +08:00
Joel de Guzman
24a11833cd fixed error handler 2014-05-17 10:53:31 +08:00
Joel de Guzman
fd99b74257 Implemented BOOST_SPIRIT_DECLARE and BOOST_SPIRIT_DECLARE 2014-05-17 10:46:07 +08:00
Joel de Guzman
1a960e4bba All tests are now passing. 2014-05-17 09:25:06 +08:00
Joel de Guzman
12ee452e27 - allow simple local rules
- inject the rule tag into the context ONLY IF there's no BOOST_DEFINE for that rule.
2014-05-17 08:24:52 +08:00