CONTEXT FREE GRAMMAR FOR THE SYNTEX OF THE NATURAL LANGUAGE INSTRUCTIONS

 
vp    :V
        |V_NP np
        |V_PP pp
        |V_NP_OR_PP np
        |V_NP_OR_PP pp
        ;

np   :dp nom
        |nom
        ;

dp   :D
        ;

nom     :N
               | nom pp
               | A nom
                ;

pp           :P np
                ;
 

sent      : np vp
              | vp
              | np
              ;

comp_sent :sent
        | sent CONJ sent
        ;
 
 

// NOTE :
 
//  vp stands for Verb Phrase
//  np for noun phrase
//  pp for prepositional phrase
// sent for a simple sentence
// comp_sent for a compound sentence
// all lower case identifiers are non-terminals and in upper case are terminals