Sorry, no there isn't. The implementation of the number parser will
eventually just be std::from_chars. So even if I added support to the
Spirit X3 number parsers -- which I use when std::from_chars is
unavailable, the support would eventually go away. Also, there are a
lot of code paths in the Spirit X3 number parsers, and I wouldn't want
to try just jamming such logic in there.
The thing I would do is make a rule that produces my number type (say,
double). Then I would have a character-based parser that the rule
uses, that recognized numbers, and accumulated the characters --
without the separators -- into something like a
boost::container::small_vector
Hi all,
In the past I had some attempts with Spirit.x3. C++, VHDL and other languages support literal digit separators. On Stackoverflow.com there are some workarounds (in the context of VHDL's digit separator '_' ) for X3, which works but are unattractive and to unwieldy/unflexible. Is there a native/direct support for it at Boost.Parser?
Thanks, Olaf
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost