GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
oct-tex-parser.h
Go to the documentation of this file.
1 /* A Bison parser, made by GNU Bison 3.0.2. */
2 
3 /* Bison interface for Yacc-like parsers in C
4 
5  Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc.
6 
7  This program is free software: you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation, either version 3 of the License, or
10  (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program. If not, see <http://www.gnu.org/licenses/>. */
19 
20 /* As a special exception, you may create a larger work that contains
21  part or all of the Bison parser skeleton and distribute that work
22  under terms of your choice, so long as that work isn't itself a
23  parser generator using the skeleton or a modified version thereof
24  as a parser skeleton. Alternatively, if you modify or redistribute
25  the parser skeleton itself, you may (at your option) remove this
26  special exception, which will cause the skeleton and the resulting
27  Bison output files to be licensed under the GNU General Public
28  License without this special exception.
29 
30  This special exception was added by the Free Software Foundation in
31  version 2.2 of Bison. */
32 
33 #ifndef YY_OCTAVE_TEX_COREFCN_OCT_TEX_PARSER_H_INCLUDED
34 # define YY_OCTAVE_TEX_COREFCN_OCT_TEX_PARSER_H_INCLUDED
35 /* Debug traces. */
36 #ifndef OCTAVE_TEX_DEBUG
37 # if defined YYDEBUG
38 #if YYDEBUG
39 # define OCTAVE_TEX_DEBUG 1
40 # else
41 # define OCTAVE_TEX_DEBUG 0
42 # endif
43 # else /* ! defined YYDEBUG */
44 # define OCTAVE_TEX_DEBUG 0
45 # endif /* ! defined YYDEBUG */
46 #endif /* ! defined OCTAVE_TEX_DEBUG */
47 #if OCTAVE_TEX_DEBUG
48 extern int octave_tex_debug;
49 #endif
50 /* "%code requires" blocks. */
51 #line 54 "corefcn/oct-tex-parser.yy" /* yacc.c:1909 */
52 #include <string>
53 
54 #line 55 "corefcn/oct-tex-parser.h" /* yacc.c:1909 */
55 
56 /* Token type. */
57 #ifndef OCTAVE_TEX_TOKENTYPE
58 # define OCTAVE_TEX_TOKENTYPE
60  {
61  BF = 258,
62  IT = 259,
63  SL = 260,
64  RM = 261,
65  FONTNAME = 262,
66  FONTSIZE = 263,
67  COLOR = 264,
68  COLOR_RGB = 265,
69  START = 266,
70  END = 267,
71  SUPER = 268,
72  SUB = 269,
73  CH = 270,
74  NUM = 271,
75  SYM = 272,
76  SCRIPT = 273,
77  STR = 274
78  };
79 #endif
80 /* Tokens. */
81 #define BF 258
82 #define IT 259
83 #define SL 260
84 #define RM 261
85 #define FONTNAME 262
86 #define FONTSIZE 263
87 #define COLOR 264
88 #define COLOR_RGB 265
89 #define START 266
90 #define END 267
91 #define SUPER 268
92 #define SUB 269
93 #define CH 270
94 #define NUM 271
95 #define SYM 272
96 #define SCRIPT 273
97 #define STR 274
98 
99 /* Value type. */
100 #if ! defined OCTAVE_TEX_STYPE && ! defined OCTAVE_TEX_STYPE_IS_DECLARED
103 {
104 #line 56 "corefcn/oct-tex-parser.yy" /* yacc.c:1909 */
105 
106  /* Leaf symbols produced by the scanner */
107  char ch;
108  double num;
109  int sym;
110 
111  /* Used for string buffering */
112  std::string* str;
113 
114  /* Objects produced by the parser */
117 
118 #line 119 "corefcn/oct-tex-parser.h" /* yacc.c:1909 */
119 };
120 # define OCTAVE_TEX_STYPE_IS_TRIVIAL 1
121 # define OCTAVE_TEX_STYPE_IS_DECLARED 1
122 #endif
123 
124 
125 
127 
128 #endif /* !YY_OCTAVE_TEX_COREFCN_OCT_TEX_PARSER_H_INCLUDED */
std::string * str
#define START
text_element_list * e_list
#define END
#define BF
#define COLOR
#define FONTNAME
#define STR
This class gets nodes and searchs inside of 'info files'.
Definition: parser.h:49
#define FONTSIZE
#define NUM
#define SYM
#define SUPER
#define SL
#define COLOR_RGB
#define RM
#define CH
#define SCRIPT
#define SUB
#define IT
int octave_tex_parse(text_parser_tex &parser)
octave_tex_tokentype
text_element * e_base