1
|
1 // parse.h -*- C++ -*- |
|
2 /* |
|
3 |
1009
|
4 Copyright (C) 1992, 1993, 1994, 1995 John W. Eaton |
1
|
5 |
|
6 This file is part of Octave. |
|
7 |
|
8 Octave is free software; you can redistribute it and/or modify it |
|
9 under the terms of the GNU General Public License as published by the |
|
10 Free Software Foundation; either version 2, or (at your option) any |
|
11 later version. |
|
12 |
|
13 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
16 for more details. |
|
17 |
|
18 You should have received a copy of the GNU General Public License |
|
19 along with Octave; see the file COPYING. If not, write to the Free |
1315
|
20 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
1
|
21 |
|
22 */ |
|
23 |
383
|
24 #if !defined (octave_parse_h) |
|
25 #define octave_parse_h 1 |
1
|
26 |
1755
|
27 #include <string> |
|
28 |
1
|
29 #include "SLStack.h" |
|
30 |
|
31 extern void reset_parser (void); |
|
32 extern int yylex (void); |
|
33 extern int yyparse (void); |
|
34 |
|
35 class tree; |
|
36 class tree_matrix; |
|
37 class tree_identifier; |
|
38 class symbol_table; |
|
39 |
|
40 // Temporary symbol table pointer used to cope with bogus function syntax. |
|
41 extern symbol_table *tmp_local_sym_tab; |
|
42 |
|
43 // Nonzero means print parser debugging info (-d). |
|
44 extern int yydebug; |
|
45 |
|
46 // The current input line number. |
|
47 extern int input_line_number; |
|
48 |
|
49 // The column of the current token. |
|
50 extern int current_input_column; |
|
51 |
338
|
52 // Buffer for help text snagged from function files. |
1755
|
53 extern string help_buf; |
1
|
54 |
|
55 #endif |
|
56 |
|
57 /* |
|
58 ;;; Local Variables: *** |
|
59 ;;; mode: C++ *** |
|
60 ;;; page-delimiter: "^/\\*" *** |
|
61 ;;; End: *** |
|
62 */ |