diff docs/examples/example-1.pseudocode @ 266:50bd1e91b822

Doc enhancements: style, sub-headings, wording, examples, details
author Franz Glasner <fzglas.hg@dom66.de>
date Tue, 19 May 2026 19:01:27 +0200
parents d6b66d02fb86
children
line wrap: on
line diff
--- a/docs/examples/example-1.pseudocode	Tue May 19 18:50:24 2026 +0200
+++ b/docs/examples/example-1.pseudocode	Tue May 19 19:01:27 2026 +0200
@@ -17,7 +17,8 @@
 
   \FUNCTION{A Function with {escaped\} text} \IS
     (1234567890 != what) or a and b xor (c in d)   \rem this is another remark
-    \block {foo bar}
+    \block {foo is not bar}
+    \block {2 + 6 = 1 (mod 7)}
 
     \IF a is nil \THEN
       \text{Set something}
@@ -34,13 +35,14 @@
 
     (* Here is a "block" of expressions.
        A block has a leading symbol. *)
-    \block {foo
-      bar}
+    \block {foo ?= bar
+      Bär >= Maus
+        and Bär != Maus}
     \block{a 1.2 {x in X\} c}
     (* Analogous there is a variant that is in text-mode by default.
        It has an other leading symbol. *)
     \tstate{We will compute next \expr{a xor b or (\text{set} X is Empty)} \rem without c!
-      or multiply it the other way round}
+      or multiply it the \ttx-ges/other/ way.}
 
     \tstate{foo bar     \rem A remark within a text statement until LF!
       nextfoo nextbar