mirror of
https://github.com/boostorg/spirit_x4.git
synced 2026-01-29 20:12:07 +00:00
* Migrate to Catch2 * Enable colors in Catch2 * CI: Cache Catch2 * Remove unused variable * Supply compiler flags to `Catch2WithMain` * CI: Fix Catch2 cache * Fix styling
22 lines
717 B
C++
22 lines
717 B
C++
/*=============================================================================
|
|
Copyright (c) 2019 Joel de Guzman
|
|
Copyright (c) 2019 Nikita Kniazev
|
|
Copyright (c) 2025 Nana Sakisaka
|
|
|
|
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
=============================================================================*/
|
|
|
|
#include "grammar.hpp"
|
|
|
|
#include <boost/spirit/x4/numeric/int.hpp>
|
|
|
|
constexpr auto grammar_def = x4::int_;
|
|
|
|
BOOST_SPIRIT_X4_DEFINE(grammar)
|
|
BOOST_SPIRIT_X4_INSTANTIATE(
|
|
grammar_type,
|
|
std::string_view::const_iterator,
|
|
x4::parse_context_for<std::string_view::const_iterator>
|
|
)
|