|
Code 8. Syntax and semantics of sublanguage for contextless version. |
| |
#com give
give me ?the *type_and_size: p4[1],p4[2]
give me ?the *big_little adjustable ?wrench: 5,p4
give me ?the special ?wrench: 6,0
#com take
take away ?the *type_and_size *from: p4[1],p4[2],p5
take away ?the *big_little adjustable ?wrench *from: 5,p4,p7
take away ?the special ?wrench *from: 6,0,p6
#def type and size
open end ?wrench ?size *size: 1,p5
box end ?wrench ?size *size: 2,p5
combination ?wrench ?size *size: 3,p4
*allen ?wrench ?size *sizeallen: 4,p4
#def allen
allen
hex
#def size
ten: 10
twelve: 12
fourteen: 14
seventeen: 17
#def sizeallen
eight: 8
ten: 10
twelve: 12
#def big_little
big: 1
little: 2
#def from
from position ?number *number: p4
in position ?number *number: p4
#def number
one: 1
two: 2
three: 3
four: 4
|