GNU Octave
8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
oct-tex-parser.h
Go to the documentation of this file.
1
/* A Bison parser, made by GNU Bison 3.8.2. */
2
3
/* Bison interface for Yacc-like parsers in C
4
5
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation,
6
Inc.
7
8
This program is free software: you can redistribute it and/or modify
9
it under the terms of the GNU General Public License as published by
10
the Free Software Foundation, either version 3 of the License, or
11
(at your option) any later version.
12
13
This program 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
16
GNU General Public License for more details.
17
18
You should have received a copy of the GNU General Public License
19
along with this program. If not, see <https://www.gnu.org/licenses/>. */
20
21
/* As a special exception, you may create a larger work that contains
22
part or all of the Bison parser skeleton and distribute that work
23
under terms of your choice, so long as that work isn't itself a
24
parser generator using the skeleton or a modified version thereof
25
as a parser skeleton. Alternatively, if you modify or redistribute
26
the parser skeleton itself, you may (at your option) remove this
27
special exception, which will cause the skeleton and the resulting
28
Bison output files to be licensed under the GNU General Public
29
License without this special exception.
30
31
This special exception was added by the Free Software Foundation in
32
version 2.2 of Bison. */
33
34
/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
35
especially those whose name start with YY_ or yy_. They are
36
private implementation details that can be changed or removed. */
37
38
#ifndef YY_OCTAVE_TEX_LIBINTERP_COREFCN_OCT_TEX_PARSER_H_INCLUDED
39
# define YY_OCTAVE_TEX_LIBINTERP_COREFCN_OCT_TEX_PARSER_H_INCLUDED
40
/* Debug traces. */
41
#ifndef OCTAVE_TEX_DEBUG
42
# if defined YYDEBUG
43
#if YYDEBUG
44
# define OCTAVE_TEX_DEBUG 1
45
# else
46
# define OCTAVE_TEX_DEBUG 0
47
# endif
48
# else
/* ! defined YYDEBUG */
49
# define OCTAVE_TEX_DEBUG 0
50
# endif
/* ! defined YYDEBUG */
51
#endif
/* ! defined OCTAVE_TEX_DEBUG */
52
#if OCTAVE_TEX_DEBUG
53
extern
int
octave_tex_debug;
54
#endif
55
/* "%code requires" blocks. */
56
#line 62 "../libinterp/corefcn/oct-tex-parser.yy"
57
#include <string>
58
59
#line 60 "libinterp/corefcn/oct-tex-parser.h"
60
61
/* Token kinds. */
62
#ifndef OCTAVE_TEX_TOKENTYPE
63
# define OCTAVE_TEX_TOKENTYPE
64
enum
octave_tex_tokentype
65
{
66
OCTAVE_TEX_EMPTY
= -2,
67
OCTAVE_TEX_EOF
= 0,
/* "end of file" */
68
OCTAVE_TEX_error
= 256,
/* error */
69
OCTAVE_TEX_UNDEF
= 257,
/* "invalid token" */
70
BF
= 258,
/* BF */
71
IT
= 259,
/* IT */
72
SL
= 260,
/* SL */
73
RM
= 261,
/* RM */
74
FONTNAME
= 262,
/* FONTNAME */
75
FONTSIZE
= 263,
/* FONTSIZE */
76
COLOR
= 264,
/* COLOR */
77
COLOR_RGB
= 265,
/* COLOR_RGB */
78
START
= 266,
/* START */
79
END
= 267,
/* END */
80
SUPER
= 268,
/* SUPER */
81
SUB
= 269,
/* SUB */
82
CH
= 270,
/* CH */
83
NUM
= 271,
/* NUM */
84
SYM
= 272,
/* SYM */
85
SCRIPT
= 273,
/* SCRIPT */
86
STR
= 274
/* STR */
87
};
88
typedef
enum
octave_tex_tokentype
octave_tex_token_kind_t
;
89
#endif
90
91
/* Value type. */
92
#if ! defined OCTAVE_TEX_STYPE && ! defined OCTAVE_TEX_STYPE_IS_DECLARED
93
union
OCTAVE_TEX_STYPE
94
{
95
#line 65 "../libinterp/corefcn/oct-tex-parser.yy"
96
97
// Leaf symbols produced by the scanner.
98
char
ch
;
99
double
num
;
100
int
sym
;
101
102
// Used for string buffering.
103
std::string *
str
;
104
105
// Objects produced by the parser.
106
octave::text_element *
e_base
;
107
octave::text_element_list *
e_list
;
108
109
#line 110 "libinterp/corefcn/oct-tex-parser.h"
110
111
};
112
typedef
union
OCTAVE_TEX_STYPE
OCTAVE_TEX_STYPE
;
113
# define OCTAVE_TEX_STYPE_IS_TRIVIAL 1
114
# define OCTAVE_TEX_STYPE_IS_DECLARED 1
115
#endif
116
117
118
119
120
int
octave_tex_parse
(octave::text_parser_tex&
parser
);
121
122
123
#endif
/* !YY_OCTAVE_TEX_LIBINTERP_COREFCN_OCT_TEX_PARSER_H_INCLUDED */
parser
Definition:
parse.h:829
octave_tex_tokentype
octave_tex_tokentype
Definition:
oct-tex-parser.h:65
SUB
@ SUB
Definition:
oct-tex-parser.h:81
START
@ START
Definition:
oct-tex-parser.h:78
FONTSIZE
@ FONTSIZE
Definition:
oct-tex-parser.h:75
NUM
@ NUM
Definition:
oct-tex-parser.h:83
CH
@ CH
Definition:
oct-tex-parser.h:82
BF
@ BF
Definition:
oct-tex-parser.h:70
SYM
@ SYM
Definition:
oct-tex-parser.h:84
SCRIPT
@ SCRIPT
Definition:
oct-tex-parser.h:85
COLOR
@ COLOR
Definition:
oct-tex-parser.h:76
OCTAVE_TEX_EMPTY
@ OCTAVE_TEX_EMPTY
Definition:
oct-tex-parser.h:66
RM
@ RM
Definition:
oct-tex-parser.h:73
SL
@ SL
Definition:
oct-tex-parser.h:72
OCTAVE_TEX_error
@ OCTAVE_TEX_error
Definition:
oct-tex-parser.h:68
FONTNAME
@ FONTNAME
Definition:
oct-tex-parser.h:74
END
@ END
Definition:
oct-tex-parser.h:79
COLOR_RGB
@ COLOR_RGB
Definition:
oct-tex-parser.h:77
IT
@ IT
Definition:
oct-tex-parser.h:71
STR
@ STR
Definition:
oct-tex-parser.h:86
OCTAVE_TEX_EOF
@ OCTAVE_TEX_EOF
Definition:
oct-tex-parser.h:67
SUPER
@ SUPER
Definition:
oct-tex-parser.h:80
OCTAVE_TEX_UNDEF
@ OCTAVE_TEX_UNDEF
Definition:
oct-tex-parser.h:69
octave_tex_parse
int octave_tex_parse(octave::text_parser_tex &parser)
Definition:
oct-tex-parser.cc:1006
octave_tex_token_kind_t
enum octave_tex_tokentype octave_tex_token_kind_t
Definition:
oct-tex-parser.h:88
OCTAVE_TEX_STYPE
Definition:
oct-tex-parser.h:94
OCTAVE_TEX_STYPE::e_base
octave::text_element * e_base
Definition:
oct-tex-parser.h:106
OCTAVE_TEX_STYPE::sym
int sym
Definition:
oct-tex-parser.h:100
OCTAVE_TEX_STYPE::str
std::string * str
Definition:
oct-tex-parser.h:103
OCTAVE_TEX_STYPE::ch
char ch
Definition:
oct-tex-parser.h:98
OCTAVE_TEX_STYPE::e_list
octave::text_element_list * e_list
Definition:
oct-tex-parser.h:107
OCTAVE_TEX_STYPE::num
double num
Definition:
oct-tex-parser.h:99
libinterp
corefcn
oct-tex-parser.h
Generated on Sun Mar 12 2023 22:37:16 for GNU Octave by
1.9.1