1/*  Copyright 1986-2020 David H. D. Warren and Fernando C. N. Pereira
    2
    3    Permission is hereby granted, free of charge, to any person obtaining a
    4    copy of this software and associated documentation files (the
    5    "Software"), to deal in the Software without restriction, including
    6    without limitation the rights to use, copy, modify, merge, publish,
    7    distribute, sublicense, and/or sell copies of the Software, and to
    8    permit persons to whom the Software is furnished to do so, subject to
    9    the following conditions:
   10
   11    The above copyright notice and this permission notice shall be included
   12    in all copies or substantial portions of the Software.
   13
   14    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
   15    OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
   16    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
   17    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
   18    CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
   19    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
   20    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
   21*/
   22
   23/* SWI-Prolog modifications:
   24
   25   - include library Quintus for enhanced compatibility
   26   - put discontiguous between brackets
   27   - rename plus/3 and index/1 to be my_plus; my_index
   28   - remove last/2: system predicate with equivalent definition.
   29*/
   30
   31:- use_module(library(quintus), [no_style_check/1]).   32:- op(1150, fx, [(mode), (public)]).   33
   34:- no_style_check(single_var).   35:- no_style_check((discontiguous)).   36
   37:- consult(chatops).   38
   39:- consult(readin).		% sentence input, ASCII VERSION
   40:- consult(ptree).		% print trees
   41:- consult(xgrun).		% XG runtimes
   42:- consult(newg).		% clone + lex
   43:- consult(clotab).		% attachment tables
   44:- consult(newdic).		% syntactic dictionary
   45:- consult(slots).		% fits arguments into predicates
   46:- consult(scopes).		% quantification and scoping
   47:- consult(templa).		% semantic dictionary
   48:- consult(qplan).		% query planning
   49:- consult(talkr).		% query evaluation
   50:- consult(ndtabl).		% relation info.
   51:- consult(aggreg).		% aggregation operators
   52:- consult(world0).		% geographic data base
   53:- consult(rivers).   54:- consult(cities).   55:- consult(countr).   56:- consult(contai).   57:- consult(border).   58:- consult(chattop).		% top level control
   59
   60save_chat :-
   61   qsave_program(chat, [goal(hi)])