# KEHOME/knowledge/theory/KRdesign/engunix.html # 1999/3/7 # new syntax Sep/29/2002

## English & UNIX shell

## The simple sentence structure of KR is English-like

###

subject verb object prepphrase
do command object prepphrase done
subject verb object ?
subject verb ?
subject ? object
? verb object

KR and English grammar details

## The control structure of KR is UNIX-like

###

if sentence then sentence else sentence fi
every sentence { sentence }
set variable = value
m is method with format=[class:1, class:2, ...], meaning={... $1 ... $2 ...}
r is relation with format=[class:1, class:2, ...], meaning={... $1 ... $2 ...}
set . = concept
set .. = next
set ... = next

KR and UNIX shell details
Variables
General References