grammar_linker.cpp 692 B

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