Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 265:e5ea2f955986 | 266:50bd1e91b822 |
|---|---|
| 15 } | 15 } |
| 16 \END-PROC {A Procedure name} | 16 \END-PROC {A Procedure name} |
| 17 | 17 |
| 18 \FUNCTION{A Function with {escaped\} text} \IS | 18 \FUNCTION{A Function with {escaped\} text} \IS |
| 19 (1234567890 != what) or a and b xor (c in d) \rem this is another remark | 19 (1234567890 != what) or a and b xor (c in d) \rem this is another remark |
| 20 \block {foo bar} | 20 \block {foo is not bar} |
| 21 \block {2 + 6 = 1 (mod 7)} | |
| 21 | 22 |
| 22 \IF a is nil \THEN | 23 \IF a is nil \THEN |
| 23 \text{Set something} | 24 \text{Set something} |
| 24 \ELSEIF | 25 \ELSEIF |
| 25 \text{Set some other thing} | 26 \text{Set some other thing} |
| 32 | 33 |
| 33 # This is another one-line comment | 34 # This is another one-line comment |
| 34 | 35 |
| 35 (* Here is a "block" of expressions. | 36 (* Here is a "block" of expressions. |
| 36 A block has a leading symbol. *) | 37 A block has a leading symbol. *) |
| 37 \block {foo | 38 \block {foo ?= bar |
| 38 bar} | 39 Bär >= Maus |
| 40 and Bär != Maus} | |
| 39 \block{a 1.2 {x in X\} c} | 41 \block{a 1.2 {x in X\} c} |
| 40 (* Analogous there is a variant that is in text-mode by default. | 42 (* Analogous there is a variant that is in text-mode by default. |
| 41 It has an other leading symbol. *) | 43 It has an other leading symbol. *) |
| 42 \tstate{We will compute next \expr{a xor b or (\text{set} X is Empty)} \rem without c! | 44 \tstate{We will compute next \expr{a xor b or (\text{set} X is Empty)} \rem without c! |
| 43 or multiply it the other way round} | 45 or multiply it the \ttx-ges/other/ way.} |
| 44 | 46 |
| 45 \tstate{foo bar \rem A remark within a text statement until LF! | 47 \tstate{foo bar \rem A remark within a text statement until LF! |
| 46 nextfoo nextbar | 48 nextfoo nextbar |
| 47 nextnextfoo nextnextbar} | 49 nextnextfoo nextnextbar} |
| 48 \ENDCLASS{A Class} | 50 \ENDCLASS{A Class} |
