2382 Commits

Author SHA1 Message Date
Joel de Guzman 8cd6940866 added bool parser 2014-06-07 07:46:18 +08:00
Joel de Guzman 97ddf141e3 - Added calc 9 (ported from Qi calc 8).
- Fixed is_substitute for variants
- Fixed variant_find_substitute when Attribute and Variant is the same type
2014-06-06 23:35:09 +08:00
Joel de Guzman 97ca172485 preparing for calc9 2014-06-06 12:10:27 +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
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
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 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 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 fe2a3e13bb bumping copyright dates 2014-05-17 17:41:20 +08:00
Joel de Guzman 2610912397 added phrase_parse_context 2014-05-17 11:56:34 +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
Joel de Guzman 1966f55985 working with the monster 2014-05-16 13:34:25 +08:00
Joel de Guzman 927dea5eb1 implementing BOOST_SPIRIT_DEFINE 2014-05-16 07:22:18 +08:00
Joel de Guzman 0e47e08037 added rcontext argument to parse functions 2014-05-15 21:46:25 +08:00
Joel de Guzman aeb0e93865 fix for raw directive 2014-05-13 09:37:14 +08:00
Lee Clagett 3f0ec43f53 Modifying x3 seek implementation for better readability 2014-05-10 15:19:23 -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
Andrey Semashev c82c039f43 Fix compilation with C++03 compilers.
Fix compilation with C++03 compilers (e.g. gcc 4.2.1).
2014-05-07 22:30:24 +04:00
Thomas Bernard e1571dac5e Remove old code 2014-05-07 16:50:41 +02:00
Thomas Bernard a5e1c57350 Add repeat directive 2014-05-07 16:43:12 +02:00