| 1 | /*============================================================================= |
| 2 | Copyright (c) 2019 Nikita Kniazev |
| 3 | Copyright (c) 2019 Joel de Guzman |
| 4 | |
| 5 | Distributed under the Boost Software License, Version 1.0. (See accompanying |
| 6 | file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| 7 | =============================================================================*/ |
| 8 | #include "grammar.hpp" |
| 9 | #include <boost/core/lightweight_test.hpp> |
| 10 | |
| 11 | int main() |
| 12 | { |
| 13 | char const* s = "123" , * e = s + std::strlen(s: s); |
| 14 | #if 1 |
| 15 | auto r = parse(first&: s, last: e, p: grammar); |
| 16 | #else |
| 17 | int i = 0; |
| 18 | auto r = parse(s, e, grammar, i); |
| 19 | #endif |
| 20 | |
| 21 | BOOST_TEST(r); |
| 22 | return boost::report_errors(); |
| 23 | } |
| 24 | |
| 25 | |