* backtrace.c, debug.c, debug.h, deprecation.c, eq.c, eval.c
[bpt/guile.git] / libguile / read.h
1 /* classes: h_files */
2
3 #ifndef SCM_READ_H
4 #define SCM_READ_H
5
6 /* Copyright (C) 1995,1996,2000, 2006 Free Software Foundation, Inc.
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 \f
24
25 #include "libguile/__scm.h"
26
27 #include "libguile/options.h"
28 \f
29
30 /* SCM_LINE_INCREMENTORS are the characters which cause the line count to
31 * be incremented for the purposes of error reporting. This feature
32 * is only used for scheme code loaded from files.
33 *
34 * SCM_WHITE_SPACES are other characters which should be treated like spaces
35 * in programs.
36 */
37
38 #define SCM_LINE_INCREMENTORS '\n'
39
40 #ifdef MSDOS
41 # define SCM_SINGLE_SPACES ' ':case '\r':case '\f': case 26
42 #else
43 # define SCM_SINGLE_SPACES ' ':case '\r':case '\f'
44 #endif
45
46 #define SCM_WHITE_SPACES SCM_SINGLE_SPACES: case '\t'
47
48
49
50 \f
51
52 SCM_API SCM scm_sym_dot;
53
54 SCM_API SCM scm_read_options (SCM setting);
55 SCM_API SCM scm_read (SCM port);
56 SCM_API char * scm_grow_tok_buf (SCM * tok_buf);
57 SCM_API int scm_flush_ws (SCM port, const char *eoferr);
58 SCM_API int scm_casei_streq (char * s1, char * s2);
59 SCM_API SCM scm_lreadr (SCM * tok_buf, SCM port, SCM *copy);
60 SCM_API size_t scm_read_token (int ic, SCM * tok_buf, SCM port, int weird);
61 SCM_API SCM scm_lreadrecparen (SCM * tok_buf, SCM port, char *name, SCM *copy);
62 SCM_API SCM scm_read_hash_extend (SCM chr, SCM proc);
63
64 SCM_API void scm_i_input_error (const char *func, SCM port,
65 const char *message, SCM arg);
66
67 SCM_API void scm_init_read (void);
68
69 #endif /* SCM_READ_H */
70
71 /*
72 Local Variables:
73 c-file-style: "gnu"
74 End:
75 */