starter_kit.qbk 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. [/==============================================================================
  2. Copyright (C) 2001-2010 Joel de Guzman
  3. Copyright (C) 2001-2005 Dan Marsden
  4. Copyright (C) 2001-2010 Thomas Heller
  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. [section Starter Kit]
  9. Most "quick starts" only get you a few blocks from where you are. From there,
  10. you are on your own. Yet, typically, you'd want to get to the next city. This
  11. starter kit shall be as minimal as possible, yet packed as much power as
  12. possible.
  13. So you are busy and always on the go. You do not wish to spend a lot of time
  14. studying the library. You wish to be spared the details for later when you need
  15. it. For now, all you need to do is to get up to speed as quickly as possible and
  16. start using the library. If this is the case, this is the right place to start.
  17. This section is by no means a thorough discourse of the library. For more
  18. information on Phoenix, please take some time to read the rest of the
  19. Documentation. Yet, if you just want to use the library quickly, now, this
  20. chapter will probably suffice. Rather than taking you to the details of the
  21. library, we shall try to provide you with annotated examples instead.
  22. Hopefully, this will get you into high gear quickly.
  23. [heading Functors everywhere]
  24. Phoenix is built on function objects (functors). The functor is the main
  25. building block. We compose functors to build more complex functors... to build
  26. more complex functors... and so on. Almost everything is a functor.
  27. [note Functors are so ubiquitous in Phoenix that, in the manual, the
  28. words /"functor"/ and /"function"/ are used interchangeably.]
  29. [/section Primitives]
  30. We start with some core functions that are called *primitives*. You can think of
  31. primitives (such as values, references and arguments) as atoms.
  32. Things start to get interesting when we start /composing/ primitives to form
  33. *expressions*. The expressions can, in turn, be composed to form even more complex
  34. expressions.
  35. [include starter_kit/values.qbk]
  36. [include starter_kit/references.qbk]
  37. [include starter_kit/arguments.qbk]
  38. [/endsect]
  39. [/section Composites]
  40. [include starter_kit/operator.qbk]
  41. [include starter_kit/statement.qbk]
  42. [include starter_kit/object.qbk]
  43. [include starter_kit/function.qbk]
  44. [include starter_kit/more.qbk]
  45. [/endsect]
  46. [endsect]