-.. raw:: latex
-
- \newpage
-
======================================
Appendix C -- "William Tell" story
======================================
+.. highlight:: transcript
.. only:: html
.. literalinclude:: /examples/Tell.inf
:language: inform6
+.. _compile-as-you-go:
+
Compile-as-you-go
=================
Tell.inf(47): Error: No such constant as "quiver"
Compiled with 3 errors and 3 warnings
-However, by adding these lines to the end of your game file::
+However, by adding these lines to the end of your game file:
+
+.. code-block:: inform
! ===============================================================
! TEMPORARY DEFINITIONS NEEDED TO COMPILE AT THE END OF CHAPTER 6
be reported at run-time.
The best way round this is to extend the definition of our ``Room``
-class, thus::
+class, thus:
+
+.. code-block:: inform
Class Room
with description "UNDER CONSTRUCTION",
have moved on, and we now need a different set of stub objects. For a
test compilation at this point, remove the previous set of stubs, and
instead add these -- ``south_square`` and ``apple`` objects, and a dummy
-action handler to satisfy the ``Talk`` action in Helga’s life property::
+action handler to satisfy the ``Talk`` action in Helga’s life property:
+
+.. code-block:: inform
! ===============================================================
! TEMPORARY DEFINITIONS NEEDED TO COMPILE AT THE END OF CHAPTER 7
[ TalkSub; ];
Similarly, at the end of Chapter 8, replace the previous stubs by these
-if you wish to check that the game compiles::
+if you wish to check that the game compiles:
+
+.. code-block:: inform
! ===============================================================
! TEMPORARY DEFINITIONS NEEDED TO COMPILE AT THE END OF CHAPTER 8