SCR CODE

To show neat code on blog pages, you can use the chapter style: “preformatted”.

This is PseudoCode : “It uses the structural conventions of a normal programming language, but is intended for human reading rather than machine reading.” — Wikipedia

#!/bin/scr
#
# Program definition ver. 1.0 , 7th April 2016 , Jouni Sakari
# 
! ! = " If there is a bug search for 'f(P)' "
! CMD = "scr-#"
! scr-# 
 ( 
 ! empty = '' ;
 ! until f(P)  
 ! P = "Program" 
     ( 
     !  P(f) = "Function" 
           (
           ! f(t) = "Title" ;
           ! f(b) = "Break" ;
           ! f(r) = "Report" ;
           ! f(#) = "Symbol" ;
           ! f(p) = "Process" : ( 
                                !  p(s) = "Situation" , 
                                !  p(g) = "Goal" , 
                                !  p(P) = "Practice" 
                                ) ;
            ! f(s) = "First" : ( 
                               ! s(b) = " 15 minutes 'f(b)' " ,
                               ! s(o) = "Orientation" ,
                               ! s(d) = "Deduction" ,
                               ! s(m) = "Motivation" ,
                               ! s(r) = " 'f(s)' 'f(r)' "
                               ) ;
            ! f(g) = "Second" : ( 
                                ! g(b) = " 15 minutes 'f(b)' " ,
                                ! g(X) = "Valuation" ,
                                ! g(c) = "Creation" ,
                                ! g(t) = "Target" ,
                                ! g(r) = " 'f(g)' 'f(r)' "
                                ) ;
            ! f(P) = "Third" : ( 
                               ! P(b) = " 15 minutes 'f(b)' " ,
                               ! P(f) = "Focus" ,
                               ! P(a) = "Activity" , 
                               ! P(i) = "Integration" 
                               ! P(r) = " 'f(P)' 'f(r)' "
                               ) ;
            ! f(e) = "End" : ( 
                              ! e(b) = " 1 day 'f(b)' " ,
                              ! e(r) = " 'f(e)' 'f(r)' " 
                              )
            ! f(P) = "Solution" : 
                              ( 
                              ! if [ "$f(#)" != "$empty" ] ; then
                                    ( 
                                       ! echo " 'f(#)' = $f(#) "
                                       ! f(P) = TRUE
                                     ) 
                              )
                            
            )
      )
  )

{
! CMD
}

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s