Re: [Boost-bugs] [Boost C++ Libraries] #10193: [Spirit.qi] real_parser is too strict with the exponent part

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10193: [Spirit.qi] real_parser is too strict with the exponent part
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-08-11 09:40:50


#10193: [Spirit.qi] real_parser is too strict with the exponent part
-------------------------------+----------------------
  Reporter: anonymous | Owner: djowel
      Type: Bugs | Status: reopened
 Milestone: To Be Determined | Component: spirit
   Version: Boost 1.55.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+----------------------

Comment (by olegmax@…):

 Replying to [comment:6 djowel]:
> If I understand correctly, what you want is this:
>
> exponent_part = -((lit('e') | 'E') >> -sign >> +digit);

 [http://www.boost.org/doc/libs/1_56_0/libs/spirit/doc/html/spirit/qi/reference/numeric/real.html
 Grammar] in documentation is already treats exponent_part as optional. So,
 preferred solution for me as a library user is to sync code with existing
 grammar description.
 Not sure whether you may break backward compatibility in this case. May be
 additional option should be added...

 Btw, grammar in documentation doesn't permit dot before exponent part
 (integer only mantissa), but I'm almost sure that actual code permits it.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10193#comment:7>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:16 UTC