~ubuntu-branches/ubuntu/vivid/inform/vivid

« back to all changes in this revision

Viewing changes to html/sectionA2.html

  • Committer: Bazaar Package Importer
  • Author(s): Jan Christoph Nordholz
  • Date: 2008-05-26 22:09:44 UTC
  • mfrom: (2.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080526220944-ba7phz0d1k4vo7wx
Tags: 6.31.1+dfsg-1
* Remove a considerable number of files from the package
  due to unacceptable licensing terms.
* Repair library symlinks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<HTML><HEAD><TITLE>Section A2: Inform statements</TITLE></HEAD>
2
 
<BODY BGCOLOR="#FFFFFF">
3
 
<TABLE><P>
4
 
<TR><TD Valign="top"><A HREF="contents.html">Contents</A><BR><A HREF="sectionA1.html">Back</A><BR><A HREF="sectionA3.html">Forward</A><TD bgcolor="#F5DEB3"><BLOCKQUOTE><H3>A2. Inform statements</H3></BLOCKQUOTE><TR><TD><TD>
5
 
<BLOCKQUOTE>
6
 
<TT>box</TT> <I><B>&#60;line-1&#62;</B></I> <I><B>&#60;line-2&#62;</B></I> ... <I><B>&#60;line-n&#62;</B></I><BR>
7
 
<TT>break</TT><BR>
8
 
<TT>continue</TT><BR>
9
 
<TT>do</TT> <I><B>&#60;code block&#62;</B></I> <TT>until</TT> <I><B>&#60;condition&#62;</B></I><BR>
10
 
<TT>font</TT> <TT>on</TT> <I> or</I> <TT>off</TT><BR>
11
 
<TT>for (</TT><I><B>&#60;initial code&#62;</B></I><TT>:</TT><I><B>&#60;condition to carry on&#62;</B></I><TT>:</TT><I><B>&#60;update code&#62;</B></I><TT>)</TT> <I><B>&#60;code block&#62;</B></I><BR>
12
 
<TT>give</TT> <I><B>&#60;object&#62;</B></I> <I><B>&#60;attribute-1&#62;</B></I> ... <I><B>&#60;attribute-n&#62;</B></I><BR>
13
 
<TT>if</TT> <I><B>&#60;condition&#62;</B></I> <I><B>&#60;code block&#62;</B></I><BR>
14
 
<TT>if</TT> <I><B>&#60;condition&#62;</B></I> <I><B>&#60;code block&#62;</B></I> <TT>else</TT> <I><B>&#60;code-block&#62;</B></I><BR>
15
 
<TT>inversion</TT><BR>
16
 
<TT>jump</TT> <I><B>&#60;label&#62;</B></I><BR>
17
 
<TT>move</TT> <I><B>&#60;object&#62;</B></I> <TT>to</TT> <I><B>&#60;destination&#62;</B></I><BR>
18
 
<TT>new_line</TT><BR>
19
 
<TT>objectloop</TT> <I><B>&#60;condition choosing objects&#62;</B></I> <I><B>&#60;code block&#62;</B></I><BR>
20
 
<TT>print</TT> <I><B>&#60;list of printing specifications&#62;</B></I><BR>
21
 
<TT>print_ret</TT> <I><B>&#60;list of printing specifications&#62;</B></I><BR>
22
 
<TT>quit</TT><BR>
23
 
<TT>read</TT> <I><B>&#60;text-buffer&#62;</B></I> <I><B>&#60;parsing-buffer&#62;</B></I><BR>
24
 
<TT>remove</TT> <I><B>&#60;object&#62;</B></I><BR>
25
 
<TT>restore</TT> <I><B>&#60;label&#62;</B></I><BR>
26
 
<TT>return</TT> <I><B>&#60;optional value&#62;</B></I><BR>
27
 
<TT>rfalse</TT><BR>
28
 
<TT>rtrue</TT><BR>
29
 
<TT>save</TT> <I><B>&#60;label&#62;</B></I><BR>
30
 
<TT>spaces</TT> <I><B>&#60;number of spaces to print&#62;</B></I><BR>
31
 
<TT>string</TT> <I><B>&#60;number&#62;</B></I> <I><B>&#60;text&#62;</B></I><BR>
32
 
<TT>style</TT> <TT>roman</TT> <I> or</I> <TT>bold</TT> <I> or</I> <TT>underline</TT> <I> or</I> <TT>reverse</TT> <I> or</I> <TT>fixed</TT><BR>
33
 
<TT>switch (</TT><I><B>&#60;value&#62;</B></I><TT>)</TT> <I><B>&#60;block of cases&#62;</B></I><BR>
34
 
<TT>while</TT> <I><B>&#60;condition&#62;</B></I> <I><B>&#60;code-block&#62;</B></I><BR>
35
 
</BLOCKQUOTE>
36
 
 
37
 
 Statements must be given in lower case.  Code blocks consist of
38
 
either a single statement or a group of statements enclosed in braces
39
 
<TT>{</TT> and <TT>}</TT>.  Print specifications are given as a list of one or more
40
 
items, separated by commas:
41
 
<BLOCKQUOTE>
42
 
<TT>"</TT><I><B>&#60;some literal text to print&#62;</B></I><TT>"</TT><BR>
43
 
<I><B>&#60;numerical quantity&#62;</B></I><BR>
44
 
<TT>(char)</TT> <I><B>&#60;a character code&#62;</B></I><BR>
45
 
<TT>(string)</TT> <I><B>&#60;a string address&#62;</B></I><BR>
46
 
<TT>(address)</TT> <I><B>&#60;text held at this byte address&#62;</B></I><BR>
47
 
<TT>(name)</TT> <I><B>&#60;object&#62;</B></I><BR>
48
 
<TT>(a)</TT> <I><B>&#60;object&#62;</B></I><BR>
49
 
<TT>(an)</TT> <I><B>&#60;object&#62;</B></I><BR>
50
 
<TT>(the)</TT> <I><B>&#60;object&#62;</B></I><BR>
51
 
<TT>(The)</TT> <I><B>&#60;object&#62;</B></I><BR>
52
 
<TT>(property)</TT> <I><B>&#60;name of a property&#62;</B></I><BR>
53
 
<TT>(object)</TT> <I><B>&#60;internal "hardware'' object short name&#62;</B></I><BR>
54
 
</BLOCKQUOTE>
55
 
 
56
 
</TABLE>
57
 
<HR><A HREF="contents.html">Contents</A> / <A HREF="sectionA1.html">Back</A> / <A HREF="sectionA3.html">Forward</A> <BR>
58
 
<A HREF="chapter1.html">Chapter I</A> / <A HREF="chapter2.html">Chapter II</A> / <A HREF="chapter3.html">Chapter III</A> / <A HREF="chapter4.html">Chapter IV</A> / <A HREF="chapter5.html">Chapter V</A> / <A HREF="chapter6.html">Chapter VI</A> / <A HREF="chapterA.html">Appendix</A><HR><SMALL><I>Mechanically translated to HTML from third edition as revised 16 May 1997. Copyright &#169; Graham Nelson 1993, 1994, 1995, 1996, 1997: all rights reserved.</I></SMALL></BODY></HTML>