GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
libinterp
corefcn
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
59
enum
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
101
typedef
union
OCTAVE_TEX_STYPE
OCTAVE_TEX_STYPE
;
102
union
OCTAVE_TEX_STYPE
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 */
115
text_element
*
e_base
;
116
text_element_list
*
e_list
;
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
126
int
octave_tex_parse
(
text_parser_tex
&
parser
);
127
128
#endif
/* !YY_OCTAVE_TEX_COREFCN_OCT_TEX_PARSER_H_INCLUDED */
OCTAVE_TEX_STYPE::str
std::string * str
Definition:
oct-tex-parser.h:112
OCTAVE_TEX_STYPE
Definition:
oct-tex-parser.h:102
START
#define START
Definition:
oct-tex-parser.h:89
OCTAVE_TEX_STYPE::e_list
text_element_list * e_list
Definition:
oct-tex-parser.h:116
OCTAVE_TEX_STYPE::num
double num
Definition:
oct-tex-parser.h:108
END
#define END
Definition:
oct-tex-parser.h:90
text_element
Definition:
txt-eng.h:47
BF
#define BF
Definition:
oct-tex-parser.h:81
OCTAVE_TEX_STYPE::ch
char ch
Definition:
oct-tex-parser.h:107
COLOR
#define COLOR
Definition:
oct-tex-parser.h:87
FONTNAME
#define FONTNAME
Definition:
oct-tex-parser.h:85
STR
#define STR
Definition:
oct-tex-parser.h:97
parser
This class gets nodes and searchs inside of 'info files'.
Definition:
parser.h:49
FONTSIZE
#define FONTSIZE
Definition:
oct-tex-parser.h:86
NUM
#define NUM
Definition:
oct-tex-parser.h:94
SYM
#define SYM
Definition:
oct-tex-parser.h:95
SUPER
#define SUPER
Definition:
oct-tex-parser.h:91
SL
#define SL
Definition:
oct-tex-parser.h:83
COLOR_RGB
#define COLOR_RGB
Definition:
oct-tex-parser.h:88
text_parser_tex
Definition:
txt-eng.h:405
RM
#define RM
Definition:
oct-tex-parser.h:84
CH
#define CH
Definition:
oct-tex-parser.h:93
SCRIPT
#define SCRIPT
Definition:
oct-tex-parser.h:96
SUB
#define SUB
Definition:
oct-tex-parser.h:92
OCTAVE_TEX_STYPE::sym
int sym
Definition:
oct-tex-parser.h:109
IT
#define IT
Definition:
oct-tex-parser.h:82
octave_tex_parse
int octave_tex_parse(text_parser_tex &parser)
Definition:
oct-tex-parser.cc:1182
octave_tex_tokentype
octave_tex_tokentype
Definition:
oct-tex-parser.h:59
text_element_list
Definition:
txt-eng.h:106
OCTAVE_TEX_STYPE::e_base
text_element * e_base
Definition:
oct-tex-parser.h:115
Generated on Thu Jun 4 2015 23:30:15 for GNU Octave by
1.8.8