1
/* Copyright (C) 2006, 2007 William McCune
3
This file is part of the LADR Deduction Library.
5
The LADR Deduction Library is free software; you can redistribute it
6
and/or modify it under the terms of the GNU General Public License,
9
The LADR Deduction Library is distributed in the hope that it will be
10
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
14
You should have received a copy of the GNU General Public License
15
along with the LADR Deduction Library; if not, write to the Free Software
16
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
23
#include "fastparse.h"
30
/* Public definitions */
37
CL_FORM_IVY}; /* clause print format */
39
/* End of public definitions */
41
/* Public function prototypes from ioutil.c */
43
void fwrite_formula(FILE *fp, Formula f);
45
Topform read_clause(FILE *fin, FILE *fout);
47
Topform parse_clause_from_string(char *s);
49
BOOL end_of_list_clause(Topform c);
51
Clist read_clause_clist(FILE *fin, FILE *fout, char *name, BOOL assign_id);
53
Plist read_clause_list(FILE *fin, FILE *fout, BOOL assign_id);
55
void sb_write_clause_jmap(String_buf sb, Topform c,
59
void sb_write_clause(String_buf sb, Topform c, int format);
61
void sb_xml_write_clause_jmap(String_buf sb, Topform c, I3list map);
63
void sb_tagged_write_clause_jmap(String_buf sb, Topform c, I3list map);
65
void fwrite_clause_jmap(FILE *fp, Topform c, int format, I3list map);
68
void fwrite_clause(FILE *fp, Topform c, int format);
70
void f_clause(Topform c);
72
void fwrite_clause_clist(FILE *fp, Clist lst, int format);
74
void fwrite_demod_clist(FILE *fp, Clist lst, int format);
76
void fwrite_clause_list(FILE *fp, Plist lst, char *name, int format);
78
void f_clauses(Plist p);
80
Formula read_formula(FILE *fin, FILE *fout);
82
BOOL end_of_list_formula(Formula f);
84
Plist read_formula_list(FILE *fin, FILE *fout);
86
void fwrite_formula_list(FILE *fp, Plist lst, char *name);
88
void zap_formula_list(Plist lst);
90
BOOL end_of_list_term(Term t);
92
BOOL end_of_commands_term(Term t);
94
Plist read_term_list(FILE *fin, FILE *fout);
96
void fwrite_term_list(FILE *fp, Plist lst, char *name);
98
Term term_reader(BOOL fast);
100
void term_writer(Term t, BOOL fast);
102
Topform clause_reader(BOOL fast);
104
void clause_writer(Topform c, BOOL fast);
106
Topform term_to_topform2(Term t);
108
Topform read_clause_or_formula(FILE *fin, FILE *fout);
110
Plist read_clause_or_formula_list(FILE *fin, FILE *fout);
112
#endif /* conditional compilation of whole file */