home *** CD-ROM | disk | FTP | other *** search
-
-
- sentence ::- rule | query | command
- rule ::- head '.' | head ':-' tail '.'
- query ::- '?-' tail '.'
- command ::- '@' file_name '.'
- head ::- goal
- tail ::- goal | goal ',' tail
- goal ::- constant | variable | structure
- constant ::- {quoted string} | {token beginning with 'a' .. 'z'}
- variable ::- {token beginning with 'A' .. 'Z' or '_' }
- structure ::- functor '(' component_list ')'
- functor ::- {token beginning with 'a' .. 'z'}
- component_list ::- goal | goal ',' components_list
- file_name ::- {legitimate DOS file name, must be surrounded with
- single quotes if it contains a '.',':' or '\'}
-
-
- Figure 7 - Grammar of rules and queries.