summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/metaparse/example/getting_started/4_1.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/boost/libs/metaparse/example/getting_started/4_1.hpp')
-rw-r--r--src/boost/libs/metaparse/example/getting_started/4_1.hpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/boost/libs/metaparse/example/getting_started/4_1.hpp b/src/boost/libs/metaparse/example/getting_started/4_1.hpp
new file mode 100644
index 000000000..513705947
--- /dev/null
+++ b/src/boost/libs/metaparse/example/getting_started/4_1.hpp
@@ -0,0 +1,27 @@
+#ifndef BOOST_METAPARSE_GETTING_STARTED_4_1_HPP
+#define BOOST_METAPARSE_GETTING_STARTED_4_1_HPP
+
+// Automatically generated header file
+
+// Definitions before section 4
+#include "4.hpp"
+
+// Definitions of section 4
+#include <boost/metaparse/lit_c.hpp>
+
+#include <boost/metaparse/sequence.hpp>
+
+using exp_parser4 = build_parser<sequence<token<int_>, token<lit_c<'+'>>, token<int_>>>;
+
+// query:
+// exp_parser4::apply<BOOST_METAPARSE_STRING("11 + 2")>::type
+
+#ifdef __METASHELL
+#include <metashell/formatter.hpp>
+#endif
+
+// query:
+// exp_parser4::apply<BOOST_METAPARSE_STRING("11 + 2")>::type
+
+#endif
+