return.hpp
Go to the documentation of this file.
1 // Copyright (C) 2020-2023 Jonathan Müller and lexy contributors
2 // SPDX-License-Identifier: BSL-1.0
3 
4 #ifndef LEXY_DSL_RETURN_HPP_INCLUDED
5 #define LEXY_DSL_RETURN_HPP_INCLUDED
6 
7 #include <lexy/action/base.hpp>
8 #include <lexy/dsl/base.hpp>
9 
10 namespace lexyd
11 {
12 struct _ret : rule_base
13 {
14  // We unconditionally jump to the final parser.
15  template <typename NextParser>
17 };
18 
20 constexpr auto return_ = _ret{};
21 } // namespace lexyd
22 
23 #endif // LEXY_DSL_RETURN_HPP_INCLUDED
24 
lexyd::return_
constexpr auto return_
Finishes parsing a production without considering subsequent rules.
Definition: return.hpp:20
lexyd::_ret
Definition: return.hpp:12
lexyd::rule_base
Definition: grammar.hpp:17
base.hpp
lexy::_detail::final_parser
Definition: action/base.hpp:164
base.hpp
lexyd
Definition: trace.hpp:22


behaviortree_cpp_v4
Author(s): Davide Faconti
autogenerated on Fri Jun 28 2024 02:20:08