Contents | Index | < Browse | Browse >
9. ADL Sentence Structure
In the following extended BNF description of ADL sen-
tences, terminal symbols are in BOLD UPPERCASE and non-
terminals in lowercase. A CONJ is one of the word "and", a
comma (","), or the word "but"; a SEP is one of a period
("."), the word "then", or a newline. Comment statements
start with "--" and continue to the end of the line.
input-line = ( sentence SEP ) *
sentence = simple-sent -- Verb, Iobj, and Dobj are
-- as you would expect
= noverb-sent -- Verb = NOVERB; Iobj and Dobj
-- are as you would expect
= teller-sent -- Verb = TELLER; Iobj = object;
-- Dobj = STRING
simple-sent = verb-phrase [ dobj-list ] [ prep object ] [ prep ]
= verb-phrase object dobj-list [ prep ]
noverb-sent = [ dobj-list ] [ prep object ] [ prep ]
= object dobj-list [ prep ]
teller-sent = object "," STRING
= object "," VERB REST-OF-STRING
verb-phrase = VERB PREP *
dobj-list = object ( CONJ object ) *
object = [ ARTICLE ] modif NOUN
= [ ARTICLE ] modif
= [ ARTICLE ] NOUN
= [ ARTICLE ] OBJECT
= STRING
modif = VERB
= ADJEC
prep = PREP
= PREP PREP
= PREP object PREP