letter.hpp 695 B

1234567891011121314151617181920212223242526272829
  1. #ifndef BOOST_METAPARSE_V1_LETTER_HPP
  2. #define BOOST_METAPARSE_V1_LETTER_HPP
  3. // Copyright Abel Sinkovics (abel@sinkovics.hu) 2009 - 2010.
  4. // Distributed under the Boost Software License, Version 1.0.
  5. // (See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt)
  7. #include <boost/metaparse/v1/error/letter_expected.hpp>
  8. #include <boost/metaparse/v1/accept_when.hpp>
  9. #include <boost/metaparse/v1/one_char.hpp>
  10. #include <boost/metaparse/v1/util/is_letter.hpp>
  11. namespace boost
  12. {
  13. namespace metaparse
  14. {
  15. namespace v1
  16. {
  17. typedef
  18. accept_when<one_char, util::is_letter<>, error::letter_expected>
  19. letter;
  20. }
  21. }
  22. }
  23. #endif