User Tools

Site Tools


en:pfw:pseudocode

Pseudo Code

Pseudo Code descirbes an algorithm using some invented syntax that does not need to be a concrete syntaxx of an existing system. All that matters is to explain the algorthmic idea.

We tend to use pseudocode like this:

Use pseudo code following this style:

  Function: «name» ( input parameters -- results )
  «prose text descripting operations in this function»
 
  Set «variable» to «description of value»
  «imperative subject object ...»
  
  IF: «condition»:
     ...
  ELSE:
     ...
  
  WHILE: «condition»:
     ...''

For defining words use:

   Function:  
	Define: ( u -- )
		Reserve RAM space 
		allocate ROM space 
	Action: ( -- a )
		Leave start address of this 
en/pfw/pseudocode.txt · Last modified: 2023-09-04 18:17 by uho