00001 /* File: typecheck.H -- XL typechecker 00002 ** Author(s): VN Venkatakrishnan 00003 ** Contact: lmc@cs.sunysb.edu 00004 ** 00005 ** Copyright (C) SUNY at Stony Brook, 1998-2000 00006 ** 00007 ** XMC is free software; you can redistribute it and/or modify it under the 00008 ** terms of the GNU Library General Public License as published by the Free 00009 ** Software Foundation; either version 2 of the License, or (at your option) 00010 ** any later version. 00011 ** 00012 ** XMC is distributed in the hope that it will be useful, but WITHOUT ANY 00013 ** WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00014 ** FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for 00015 ** more details. 00016 ** 00017 ** You should have received a copy of the GNU Library General Public License 00018 ** along with XMC; if not, write to the Free Software Foundation, 00019 ** Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00020 ** 00021 ** $Id: typecheck.H,v 1.2 2001/07/01 21:52:54 gmkp Exp $ 00022 ** 00023 */ 00024 00025 :- op(1100, fx, datatype). 00026 00027 :- export typecheck/1. 00028 :- export type/2. 00029 00030 %:- import apply/2, apply/4 from usermod. 00031 :- import append/3 from basics. 00032 00033 :- import pdef/3 from usermod. 00034 %:- import qpdef/3 from usermod. 00035 %:- import tc_error/4 from usermod. 00036 00037 %:- import get_returns/3, delete_return/2 from tables. 00038 %:- import variant/2 from subsumes. 00039 00040 :- import atype/2 from usermod. 00041 00042 :- import reverse/2, ground/1 from basics.