projects
/
inform-resources.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean up formatting
[inform-resources.git]
/
informqr
/
informqr.md
diff --git
a/informqr/informqr.md
b/informqr/informqr.md
index e595a3681f232747f574e62ca9b55a47a4541e09..4001497135bb5251e849ae38243a985bcd5f42b3 100644
(file)
--- a/
informqr/informqr.md
+++ b/
informqr/informqr.md
@@
-33,13
+33,13
@@
thirty-two bits). A **byte** literal is always eight bits.
can include special values including:
------------- ------------------------------------
can include special values including:
------------- ------------------------------------
-
\^
newline
-
\~
quote (")
+
^
newline
+
~
quote (")
@@64 at sign "@"
@@92 backslash ""
@@64 at sign "@"
@@92 backslash ""
- @@94 circumflex "
\
^"
- @@126 tilde "
\
~"
- @
\`a
a with a grave accent "`à`", et al
+ @@94 circumflex "^"
+ @@126 tilde "~"
+ @
`a
a with a grave accent "`à`", et al
@LL pound sign "£", et al
@00 ... @31 low string 0..31
------------- ------------------------------------
@LL pound sign "£", et al
@00 ... @31 low string 0..31
------------- ------------------------------------
@@
-61,7
+61,7
@@
Arithmetic/logical expressions support these operators:
---------- ---------------------------------------------
*p + q* addition
*p - q* subtraction
---------- ---------------------------------------------
*p + q* addition
*p - q* subtraction
- *p * q
\*
multiplication
+ *p * q
*
multiplication
*p / q* integer division
*p % q* remainder
*p++* increments *p*, evaluates to original value
*p / q* integer division
*p % q* remainder
*p++* increments *p*, evaluates to original value
@@
-70,7
+70,7
@@
Arithmetic/logical expressions support these operators:
*--p* decrements *p*, evaluates to new value
*p & q* bitwise AND
*p | q* bitwise OR
*--p* decrements *p*, evaluates to new value
*p & q* bitwise AND
*p | q* bitwise OR
- *
\~p*
bitwise NOT (inversion)
+ *
~p*
bitwise NOT (inversion)
---------- ---------------------------------------------
Conditional expressions return `true` (1) or `false` (0); *q* may be a
---------- ---------------------------------------------
Conditional expressions return `true` (1) or `false` (0); *q* may be a
@@
-78,7
+78,7
@@
list of alternatives *q1* `or` *q2* `or` ... *qN*:
---------------- ----------------------------------------
*p == q* *p* is equal to *q*
---------------- ----------------------------------------
*p == q* *p* is equal to *q*
- *p
\~= q*
*p* isn't equal to *q*
+ *p
~= q*
*p* isn't equal to *q*
*p* > *q* *p* is greater than *q*
*p < q* *p* is less than *q*
*p >= q* *p* is greater than or equal to *q*
*p* > *q* *p* is greater than *q*
*p < q* *p* is less than *q*
*p >= q* *p* is greater than or equal to *q*
@@
-96,7
+96,7
@@
Boolean expressions return `true` (1) or `false` (0):
-------- ----------------------------------
p && q both p and q are true (non-zero)
p || q either p or q is true (non-zero)
-------- ----------------------------------
p && q both p and q are true (non-zero)
p || q either p or q is true (non-zero)
-
\~\~p
p is false (zero)
+
~~p
p is false (zero)
-------- ----------------------------------
To return -1, 0 or 1 based on unsigned comparison:
-------- ----------------------------------
To return -1, 0 or 1 based on unsigned comparison:
@@
-175,7
+175,8
@@
unpacked to the individual word/byte elements of the array. See also
Objects (for **property** variables) and Routines (for **local**
variables).
Objects (for **property** variables) and Routines (for **local**
variables).
-## Classes and Objects
+Classes and Objects
+-------------------
To declare a *class* - a template for a family of objects -
where the optional (*N*) limits instances created at run-time:
To declare a *class* - a template for a family of objects -
where the optional (*N*) limits instances created at run-time:
@@
-234,4
+235,4
@@
array, the entries can be accessed using
A property variable inherited from an object's class is
addressed by *object.class::property*; this gives the
A property variable inherited from an object's class is
addressed by *object.class::property*; this gives the
-original value prior to any changes within the object.
\ No newline at end of file
+original value prior to any changes within the object.