Add Statements
[inform-resources.git] / informqr / informqr.md
index 8295e07ee3fb04eba88eea131f847cdbffcebb92..eea256baa78e9c8df3aab8b3c611da1b1405a515 100644 (file)
@@ -259,4 +259,47 @@ To return the adjacent child of an object's parent (or nothing):
 
 To return the number of child objects directly below an object:
 
-    children(object)
\ No newline at end of file
+    children(object)
+
+Message passing
+---------------
+
+To a class:
+
+    class.remaining()
+    class.create()
+    class.destroy(object)
+    class.recreate(object)
+    class.copy(to_object,from_object)
+
+To an object:
+
+    object.property(a1,a2, ... a7)
+
+To a routine:
+
+    routine.call(a1,a2, ... a7)
+
+To a string:
+
+    string.print()
+    string.print_to_array(array)
+
+Statements
+----------
+
+Each *statement* is terminated by a semi-colon ";".
+
+A *statement_block* is a single *statement* or a series of 
+*statements* enclosed in braces {...}.
+
+An exclamation "!" starts a comment - rest of line ignored.
+
+A common statement is the assignment:
+
+    variable = expr ;
+
+There are two forms of multiple assignment:
+
+    variable = variable = ... = expr ;
+    variable = expr, variable = expr, ... ;
\ No newline at end of file