-
Notifications
You must be signed in to change notification settings - Fork 315
/
Parse.h
53 lines (44 loc) · 1.84 KB
/
Parse.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* R : A Computer Language for Statistical Data Analysis
* Copyright (C) 1998-2005 R Development Core Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef R_PARSE_H
#define R_PARSE_H
#include <R_ext/Parse.h>
#include <IOStuff.h>
/* Public interface */
/* SEXP R_ParseVector(SEXP, int, ParseStatus *, SEXP); in R_ext/Parse.h */
/* Private interface */
SEXP R_Parse1Buffer(IoBuffer*, int, ParseStatus *); /* in ReplIteration,
R_ReplDLLdo1 */
SEXP R_ParseBuffer(IoBuffer*, int, ParseStatus *, SEXP, SEXP); /* in source.c */
SEXP R_Parse1File(FILE*, int, ParseStatus *); /* in R_ReplFile */
SEXP R_ParseFile(FILE*, int, ParseStatus *, SEXP); /* in edit.c */
/* Unused */
#ifdef PARSE_UNUSED
SEXP R_Parse1General(int (*)(), int (*)(), int, ParseStatus *);
SEXP R_ParseGeneral(int (*)(), int (*)(), int, ParseStatus *, SEXP);
SEXP R_Parse1Vector(TextBuffer*, int, ParseStatus *);
#endif
#ifndef HAVE_RCONNECTION_TYPEDEF
typedef struct Rconn *Rconnection;
#define HAVE_RCONNECTION_TYPEDEF
#endif
SEXP R_ParseConn(Rconnection con, int n, ParseStatus *status, SEXP srcfile);
/* Report a parse error */
void parseError(SEXP call, int linenum);
#endif /* not R_PARSE_H */