comparison docs/lexer-algpseudocode.rst @ 284:1683a10eabb2

FIX: Heading levels
author Franz Glasner <fzglas.hg@dom66.de>
date Wed, 20 May 2026 20:32:42 +0200
parents ee512932d603
children afbca50b7dc1
comparison
equal deleted inserted replaced
283:5eba722df93e 284:1683a10eabb2
5 AlgPseudocode and Language Variants 5 AlgPseudocode and Language Variants
6 ************************************* 6 *************************************
7 7
8 .. only:: html 8 .. only:: html
9 9
10 .. contents:: 10 .. contents::
11 11
12 .. only:: html 12 .. only:: html
13 13
14 .. hint:: 14 .. hint::
15 The reST source of this documentation page can be found 15 The reST source of this documentation page can be found
274 274
275 More on escaping rules you can find in :ref:`this chapter <escaping-rules>`. 275 More on escaping rules you can find in :ref:`this chapter <escaping-rules>`.
276 276
277 277
278 Commands With Required Parameters 278 Commands With Required Parameters
279 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 279 ---------------------------------
280 280
281 .. code-block:: algpseudocode 281 .. code-block:: algpseudocode
282 282
283 \TEXT{\PROGRAM {A Program\} or \PROG {A Program\}} \PROGRAM {A Program} 283 \TEXT{\PROGRAM {A Program\} or \PROG {A Program\}} \PROGRAM {A Program}
284 \TEXT{\ALGORITHM{An Algorithm\} or \ALGO{An Algorithm\}} \ALGORITHM{An Algorithm} 284 \TEXT{\ALGORITHM{An Algorithm\} or \ALGO{An Algorithm\}} \ALGORITHM{An Algorithm}
308 308
309 \TEXT{\NAME{an entity name\}} \NAME{an entity name} 309 \TEXT{\NAME{an entity name\}} \NAME{an entity name}
310 310
311 311
312 Commands With Optional Parameters 312 Commands With Optional Parameters
313 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 313 ---------------------------------
314 314
315 Some ``END``-commands have optional parameters: 315 Some ``END``-commands have optional parameters:
316 316
317 .. code-block:: algpseudocode 317 .. code-block:: algpseudocode
318 318
333 .. seealso:: For other syntax variants concerning `END` see also section 333 .. seealso:: For other syntax variants concerning `END` see also section
334 `END-Commands`_. 334 `END-Commands`_.
335 335
336 336
337 Commands Without Parameters 337 Commands Without Parameters
338 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 338 ---------------------------
339 339
340 "Normal" Commands 340 "Normal" Commands
341 ''''''''''''''''' 341 ~~~~~~~~~~~~~~~~~
342 342
343 .. code-block:: algpseudocode 343 .. code-block:: algpseudocode
344 344
345 \TEXT{\IF} \IF 345 \TEXT{\IF} \IF
346 \TEXT{\THEN} \THEN 346 \TEXT{\THEN} \THEN
374 line are taken as comment; curly braces are not needed---in fact: 374 line are taken as comment; curly braces are not needed---in fact:
375 they are interpreted to be part of the comment. 375 they are interpreted to be part of the comment.
376 376
377 377
378 END-Commands 378 END-Commands
379 '''''''''''' 379 ~~~~~~~~~~~~
380 380
381 The separator character can be empty, a run of ASCII spaces, a run of 381 The separator character can be empty, a run of ASCII spaces, a run of
382 TAB characters, a single underscore ``_`` or a single hyphen ``-``. 382 TAB characters, a single underscore ``_`` or a single hyphen ``-``.
383 383
384 All of the following examples are equally valid and result in the 384 All of the following examples are equally valid and result in the