basics.qbk 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. [/==============================================================================
  2. Copyright (C) 2001-2011 Joel de Guzman
  3. Copyright (C) 2001-2011 Hartmut Kaiser
  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. [section:lex_basics Basics]
  8. [heading Examples]
  9. All sections in the reference present some real world examples. The
  10. examples use a common test harness to keep the example code as minimal
  11. and direct to the point as possible. The test harness is presented
  12. below.
  13. Some includes:
  14. [reference_lex_includes]
  15. Our test functions:
  16. This one tests token definitions.
  17. [reference_lex_test]
  18. [heading Models]
  19. Predefined models include:
  20. * any literal string, e.g. "Hello, World",
  21. * a pointer/reference to a null-terminated array of characters
  22. * a `std::basic_string<Char>`
  23. The namespace `boost::spirit::traits` is open for users to provide their
  24. own specializations.
  25. [endsect]