23 karma · joined August 10, 2019
http://web.archive.org/web/20080211102811/http://www.pcthike...
"Software Development with Z. A practical approach to formal methods in software engineering"
https://archive.org/details/softwaredevelopm0000word/page/n1... .
there are other notations developed later. but its simplicity and easiness even while scribling on paper or word processor gets me back to using it every now and then
digits = '0123456789'
patt = "foo=" SPAN(digits) . num
while line = INPUT
if line ? patt
OUTPUT = num
endif
endend
NOTE1: reading variable INPUT. reads from input. assignment to OUTPUT writes to output. normally assigned to STDIN and SDTOUT, and can be configured.
NOTE2: there is no real while or if. flow is through labels and jumps (considered by some as power but i disagree). above example uses another script to transform while and if into labels and jumps. the point is that patterns composition and success match assignment.
youtube channel of Daniel Kalný https://www.youtube.com/channel/UCVMrX6BlNjIeGfX0QcBobGg
hope you enjoy!