GNU Octave  3.8.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 2.7.12-4996. */
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 /* Enabling traces. */
36 #ifndef YYDEBUG
37 # define YYDEBUG 0
38 #endif
39 #if YYDEBUG
40 extern int octave_tex_debug;
41 #endif
42 /* "%code requires" blocks. */
43 /* Line 2053 of yacc.c */
44 #line 53 "../../libinterp/corefcn/oct-tex-parser.yy"
45 #include <string>
46 
47 /* Line 2053 of yacc.c */
48 #line 49 "corefcn/oct-tex-parser.h"
49 
50 /* Tokens. */
51 #ifndef YYTOKENTYPE
52 # define YYTOKENTYPE
53  /* Put the tokens into the symbol table, so that GDB and other debuggers
54  know about them. */
55  enum yytokentype {
56  BF = 258,
57  IT = 259,
58  SL = 260,
59  RM = 261,
60  FONTNAME = 262,
61  FONTSIZE = 263,
62  COLOR = 264,
63  COLOR_RGB = 265,
64  START = 266,
65  END = 267,
66  SUPER = 268,
67  SUB = 269,
68  CH = 270,
69  NUM = 271,
70  SYM = 272,
71  SCRIPT = 273,
72  STR = 274
73  };
74 #endif
75 /* Tokens. */
76 #define BF 258
77 #define IT 259
78 #define SL 260
79 #define RM 261
80 #define FONTNAME 262
81 #define FONTSIZE 263
82 #define COLOR 264
83 #define COLOR_RGB 265
84 #define START 266
85 #define END 267
86 #define SUPER 268
87 #define SUB 269
88 #define CH 270
89 #define NUM 271
90 #define SYM 272
91 #define SCRIPT 273
92 #define STR 274
93 
94 
95 
96 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
97 typedef union YYSTYPE
98 {
99 /* Line 2053 of yacc.c */
100 #line 55 "../../libinterp/corefcn/oct-tex-parser.yy"
101 
102  /* Leaf symbols produced by the scanner */
103  char ch;
104  double num;
105  int sym;
106 
107  /* Used for string buffering */
108  std::string* str;
109 
110  /* Objects produced by the parser */
113 
114 
115 /* Line 2053 of yacc.c */
116 #line 117 "corefcn/oct-tex-parser.h"
117 } YYSTYPE;
118 # define YYSTYPE_IS_TRIVIAL 1
119 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
120 # define YYSTYPE_IS_DECLARED 1
121 #endif
122 
123 
124 #ifdef YYPARSE_PARAM
125 #if defined __STDC__ || defined __cplusplus
126 int octave_tex_parse (void *YYPARSE_PARAM);
127 #else
128 int octave_tex_parse ();
129 #endif
130 #else /* ! YYPARSE_PARAM */
131 #if defined __STDC__ || defined __cplusplus
133 #else
134 int octave_tex_parse ();
135 #endif
136 #endif /* ! YYPARSE_PARAM */
137 
138 #endif /* !YY_OCTAVE_TEX_COREFCN_OCT_TEX_PARSER_H_INCLUDED */