Giter Club home page Giter Club logo

metaparse's Introduction

Boost.Metaparse

Build Status Windows build status

Metaparse is parser generator library for template metaprograms. The purpose of this library is to support the creation of parsers that parse at compile time.

metaparse's People

Contributors

akumta avatar asomers avatar danieljames avatar eldiener avatar grafikrobot avatar lastique avatar ldionne avatar pdimov avatar r0mai avatar sabel83 avatar sdarwin avatar wilzegers avatar zerotypos-found avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

metaparse's Issues

[Feature request] value based BOOST_METAPARSE_STRING macro analog

Hi. I am using boost::metaparse::string for value-based metaprogramming.
For convenience, I created a macro for myself:

#ifdef BOOST_METAPARSE_MAKE_STRING
#error BOOST_METAPARSE_MAKE_STRING already defined
#endif
#define BOOST_METAPARSE_MAKE_STRING(S) (BOOST_METAPARSE_STRING(S){})

This macro allows me to write such statements succinctly and without unnecessary parentheses:

field<int, (name=BOOST_METAPARSE_MAKE_STRING("id"))> index;
field<std::string, (name=BOOST_METAPARSE_MAKE_STRING("user"))> username;

In modern C++(example above is C++17), the value-based metaprogramming approach is very often used. I believe that this macro will be useful not only for me. Why not add it to the library?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.