GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
oct-tex-parser.cc File Reference
#include "text-engine.h"
#include "oct-tex-parser.h"
#include <string>
#include <limits.h>
Include dependency graph for oct-tex-parser.cc:

Go to the source code of this file.

Classes

union  octave_tex_alloc
 

Namespaces

 octave
 

Macros

#define BF   258
 
#define CH   270
 
#define COLOR   264
 
#define COLOR_RGB   265
 
#define END   267
 
#define FONTNAME   262
 
#define FONTSIZE   263
 
#define IT   259
 
#define NUM   271
 
#define OCTAVE_TEX_EMPTY   -2
 
#define OCTAVE_TEX_EOF   0
 
#define OCTAVE_TEX_error   256
 
#define OCTAVE_TEX_UNDEF   257
 
#define RM   261
 
#define scanner   parser.get_scanner ()
 
#define SCRIPT   273
 
#define SL   260
 
#define START   266
 
#define STR   274
 
#define SUB   269
 
#define SUPER   268
 
#define SYM   272
 
#define YY_(Msgid)   Msgid
 
#define YY_ACCESSING_SYMBOL(State)   YY_CAST (yysymbol_kind_t, yystos[State])
 Accessing symbol of state STATE. More...
 
#define YY_ASSERT(E)   ((void) (0 && (E)))
 
#define YY_ATTRIBUTE_PURE
 
#define YY_ATTRIBUTE_UNUSED
 
#define YY_CAST(Type, Val)   ((Type) (Val))
 
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
 
#define YY_IGNORE_MAYBE_UNINITIALIZED_END
 
#define YY_IGNORE_USELESS_CAST_BEGIN
 
#define YY_IGNORE_USELESS_CAST_END
 
#define YY_INITIAL_VALUE(Value)   Value
 
#define YY_NULLPTR   ((void*)0)
 
#define YY_OCTAVE_TEX_LIBINTERP_COREFCN_OCT_TEX_PARSER_H_INCLUDED
 
#define YY_REDUCE_PRINT(Rule)
 
#define YY_REINTERPRET_CAST(Type, Val)   ((Type) (Val))
 
#define YY_STACK_PRINT(Bottom, Top)
 
#define YY_SYMBOL_PRINT(Title, Kind, Value, Location)
 
#define YY_USE(E)   ((void) (E))
 
#define YYABORT   goto yyabortlab
 
#define YYACCEPT   goto yyacceptlab
 
#define yyalloc   octave_tex_yyalloc
 
#define YYBACKUP(Token, Value)
 
#define YYBISON   30705
 
#define YYBISON_VERSION   "3.7.5"
 
#define yyclearin   (yychar = OCTAVE_TEX_EMPTY)
 
#define YYCOPY(Dst, Src, Count)
 
#define YYCOPY_NEEDED   1
 
#define yydebug   octave_tex_debug
 
#define YYDEBUG   1
 
#define YYDPRINTF(Args)   ((void) 0)
 
#define YYERRCODE   OCTAVE_TEX_UNDEF
 
#define yyerrok   (yyerrstatus = 0)
 
#define yyerror   octave_tex_error
 
#define YYERROR   goto yyerrorlab
 
#define YYFINAL   43
 
#define YYFREE   free
 
#define YYINITDEPTH   200
 
#define YYLAST   81
 
#define yylex   octave_tex_lex
 
#define YYMALLOC   malloc
 
#define YYMAXDEPTH   10000
 
#define YYMAXUTOK   274
 
#define yynerrs   octave_tex_nerrs
 
#define YYNNTS   14
 
#define YYNRULES   36
 
#define YYNSTATES   55
 
#define YYNTOKENS   20
 
#define YYPACT_NINF   (-4)
 
#define yypact_value_is_default(Yyn)    ((Yyn) == YYPACT_NINF)
 
#define yyparse   octave_tex_parse
 
#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))
 
#define YYPTRDIFF_MAXIMUM   LONG_MAX
 
#define YYPTRDIFF_T   long
 
#define YYPULL   1
 
#define YYPURE   1
 
#define YYPUSH   0
 
#define YYRECOVERING()   (!!yyerrstatus)
 
#define YYSIZE_MAXIMUM
 
#define YYSIZE_T   unsigned
 
#define YYSIZEOF(X)   YY_CAST (YYPTRDIFF_T, sizeof (X))
 
#define YYSKELETON_NAME   "yacc.c"
 
#define YYSTACK_ALLOC   YYMALLOC
 
#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM
 
#define YYSTACK_BYTES(N)
 
#define YYSTACK_FREE   YYFREE
 
#define YYSTACK_GAP_MAXIMUM   (YYSIZEOF (union yyalloc) - 1)
 
#define YYSTACK_RELOCATE(Stack_alloc, Stack)
 
#define YYSTYPE   OCTAVE_TEX_STYPE
 
#define YYTABLE_NINF   (-1)
 
#define yytable_value_is_error(Yyn)    0
 
#define YYTRANSLATE(YYX)
 

Typedefs

typedef int yy_state_fast_t
 
typedef yytype_int8 yy_state_t
 
typedef enum yysymbol_kind_t yysymbol_kind_t
 
typedef short yytype_int16
 
typedef signed char yytype_int8
 
typedef unsigned short yytype_uint16
 
typedef unsigned char yytype_uint8
 

Enumerations

enum  { YYENOMEM = -2 }
 
enum  yysymbol_kind_t {
  YYSYMBOL_YYEMPTY = -2 , YYSYMBOL_YYEOF = 0 , YYSYMBOL_YYerror = 1 , YYSYMBOL_YYUNDEF = 2 ,
  YYSYMBOL_BF = 3 , YYSYMBOL_IT = 4 , YYSYMBOL_SL = 5 , YYSYMBOL_RM = 6 ,
  YYSYMBOL_FONTNAME = 7 , YYSYMBOL_FONTSIZE = 8 , YYSYMBOL_COLOR = 9 , YYSYMBOL_COLOR_RGB = 10 ,
  YYSYMBOL_START = 11 , YYSYMBOL_END = 12 , YYSYMBOL_SUPER = 13 , YYSYMBOL_SUB = 14 ,
  YYSYMBOL_CH = 15 , YYSYMBOL_NUM = 16 , YYSYMBOL_SYM = 17 , YYSYMBOL_SCRIPT = 18 ,
  YYSYMBOL_STR = 19 , YYSYMBOL_YYACCEPT = 20 , YYSYMBOL_simple_string = 21 , YYSYMBOL_symbol_element = 22 ,
  YYSYMBOL_font_modifier_element = 23 , YYSYMBOL_fontsize_element = 24 , YYSYMBOL_fontname_element = 25 , YYSYMBOL_color_element = 26 ,
  YYSYMBOL_string_element = 27 , YYSYMBOL_superscript_element = 28 , YYSYMBOL_subscript_element = 29 , YYSYMBOL_combined_script_element = 30 ,
  YYSYMBOL_string_element_list = 31 , YYSYMBOL_scoped_string_element_list = 32 , YYSYMBOL_string = 33 , YYSYMBOL_YYEMPTY = -2 ,
  YYSYMBOL_YYEOF = 0 , YYSYMBOL_YYerror = 1 , YYSYMBOL_YYUNDEF = 2 , YYSYMBOL_3_ = 3 ,
  YYSYMBOL_4_ = 4 , YYSYMBOL_5_ = 5 , YYSYMBOL_6_ = 6 , YYSYMBOL_7_ = 7 ,
  YYSYMBOL_8_ = 8 , YYSYMBOL_9_ = 9 , YYSYMBOL_10_ = 10 , YYSYMBOL_11_ = 11 ,
  YYSYMBOL_12_ = 12 , YYSYMBOL_13_ = 13 , YYSYMBOL_14_ = 14 , YYSYMBOL_15_ = 15 ,
  YYSYMBOL_16_ = 16 , YYSYMBOL_17_ = 17 , YYSYMBOL_18_ = 18 , YYSYMBOL_19_n_ = 19 ,
  YYSYMBOL_ADD_EQ = 20 , YYSYMBOL_SUB_EQ = 21 , YYSYMBOL_MUL_EQ = 22 , YYSYMBOL_DIV_EQ = 23 ,
  YYSYMBOL_LEFTDIV_EQ = 24 , YYSYMBOL_POW_EQ = 25 , YYSYMBOL_EMUL_EQ = 26 , YYSYMBOL_EDIV_EQ = 27 ,
  YYSYMBOL_ELEFTDIV_EQ = 28 , YYSYMBOL_EPOW_EQ = 29 , YYSYMBOL_AND_EQ = 30 , YYSYMBOL_OR_EQ = 31 ,
  YYSYMBOL_EXPR_AND_AND = 32 , YYSYMBOL_EXPR_OR_OR = 33 , YYSYMBOL_EXPR_AND = 34 , YYSYMBOL_EXPR_OR = 35 ,
  YYSYMBOL_EXPR_NOT = 36 , YYSYMBOL_EXPR_LT = 37 , YYSYMBOL_EXPR_LE = 38 , YYSYMBOL_EXPR_EQ = 39 ,
  YYSYMBOL_EXPR_NE = 40 , YYSYMBOL_EXPR_GE = 41 , YYSYMBOL_EXPR_GT = 42 , YYSYMBOL_LEFTDIV = 43 ,
  YYSYMBOL_EMUL = 44 , YYSYMBOL_EDIV = 45 , YYSYMBOL_ELEFTDIV = 46 , YYSYMBOL_EPLUS = 47 ,
  YYSYMBOL_EMINUS = 48 , YYSYMBOL_HERMITIAN = 49 , YYSYMBOL_TRANSPOSE = 50 , YYSYMBOL_PLUS_PLUS = 51 ,
  YYSYMBOL_MINUS_MINUS = 52 , YYSYMBOL_POW = 53 , YYSYMBOL_EPOW = 54 , YYSYMBOL_NUM = 55 ,
  YYSYMBOL_IMAG_NUM = 56 , YYSYMBOL_STRUCT_ELT = 57 , YYSYMBOL_NAME = 58 , YYSYMBOL_END = 59 ,
  YYSYMBOL_DQ_STRING = 60 , YYSYMBOL_SQ_STRING = 61 , YYSYMBOL_FOR = 62 , YYSYMBOL_PARFOR = 63 ,
  YYSYMBOL_WHILE = 64 , YYSYMBOL_DO = 65 , YYSYMBOL_UNTIL = 66 , YYSYMBOL_IF = 67 ,
  YYSYMBOL_ELSEIF = 68 , YYSYMBOL_ELSE = 69 , YYSYMBOL_SWITCH = 70 , YYSYMBOL_CASE = 71 ,
  YYSYMBOL_OTHERWISE = 72 , YYSYMBOL_BREAK = 73 , YYSYMBOL_CONTINUE = 74 , YYSYMBOL_FUNC_RET = 75 ,
  YYSYMBOL_UNWIND = 76 , YYSYMBOL_CLEANUP = 77 , YYSYMBOL_TRY = 78 , YYSYMBOL_CATCH = 79 ,
  YYSYMBOL_GLOBAL = 80 , YYSYMBOL_PERSISTENT = 81 , YYSYMBOL_FCN_HANDLE = 82 , YYSYMBOL_CLASSDEF = 83 ,
  YYSYMBOL_PROPERTIES = 84 , YYSYMBOL_METHODS = 85 , YYSYMBOL_EVENTS = 86 , YYSYMBOL_ENUMERATION = 87 ,
  YYSYMBOL_METAQUERY = 88 , YYSYMBOL_SUPERCLASSREF = 89 , YYSYMBOL_FQ_IDENT = 90 , YYSYMBOL_GET = 91 ,
  YYSYMBOL_SET = 92 , YYSYMBOL_FCN = 93 , YYSYMBOL_LEXICAL_ERROR = 94 , YYSYMBOL_END_OF_INPUT = 95 ,
  YYSYMBOL_INPUT_FILE = 96 , YYSYMBOL_UNARY = 97 , YYSYMBOL_YYACCEPT = 98 , YYSYMBOL_input = 99 ,
  YYSYMBOL_simple_list = 100 , YYSYMBOL_simple_list1 = 101 , YYSYMBOL_opt_list = 102 , YYSYMBOL_list = 103 ,
  YYSYMBOL_list1 = 104 , YYSYMBOL_opt_fcn_list = 105 , YYSYMBOL_fcn_list = 106 , YYSYMBOL_fcn_list1 = 107 ,
  YYSYMBOL_statement = 108 , YYSYMBOL_word_list_cmd = 109 , YYSYMBOL_word_list = 110 , YYSYMBOL_identifier = 111 ,
  YYSYMBOL_superclass_identifier = 112 , YYSYMBOL_meta_identifier = 113 , YYSYMBOL_string = 114 , YYSYMBOL_constant = 115 ,
  YYSYMBOL_matrix = 116 , YYSYMBOL_matrix_rows = 117 , YYSYMBOL_cell = 118 , YYSYMBOL_cell_rows = 119 ,
  YYSYMBOL_cell_or_matrix_row = 120 , YYSYMBOL_fcn_handle = 121 , YYSYMBOL_anon_fcn_handle = 122 , YYSYMBOL_primary_expr = 123 ,
  YYSYMBOL_magic_colon = 124 , YYSYMBOL_magic_tilde = 125 , YYSYMBOL_arg_list = 126 , YYSYMBOL_indirect_ref_op = 127 ,
  YYSYMBOL_oper_expr = 128 , YYSYMBOL_power_expr = 129 , YYSYMBOL_colon_expr = 130 , YYSYMBOL_simple_expr = 131 ,
  YYSYMBOL_assign_lhs = 132 , YYSYMBOL_assign_expr = 133 , YYSYMBOL_expression = 134 , YYSYMBOL_command = 135 ,
  YYSYMBOL_declaration = 136 , YYSYMBOL_decl1 = 137 , YYSYMBOL_decl_param_init = 138 , YYSYMBOL_decl2 = 139 ,
  YYSYMBOL_select_command = 140 , YYSYMBOL_if_command = 141 , YYSYMBOL_if_cmd_list = 142 , YYSYMBOL_if_cmd_list1 = 143 ,
  YYSYMBOL_elseif_clause = 144 , YYSYMBOL_else_clause = 145 , YYSYMBOL_switch_command = 146 , YYSYMBOL_case_list = 147 ,
  YYSYMBOL_case_list1 = 148 , YYSYMBOL_switch_case = 149 , YYSYMBOL_default_case = 150 , YYSYMBOL_loop_command = 151 ,
  YYSYMBOL_jump_command = 152 , YYSYMBOL_except_command = 153 , YYSYMBOL_push_fcn_symtab = 154 , YYSYMBOL_param_list_beg = 155 ,
  YYSYMBOL_param_list_end = 156 , YYSYMBOL_opt_param_list = 157 , YYSYMBOL_param_list = 158 , YYSYMBOL_param_list1 = 159 ,
  YYSYMBOL_param_list2 = 160 , YYSYMBOL_param_list_elt = 161 , YYSYMBOL_return_list = 162 , YYSYMBOL_return_list1 = 163 ,
  YYSYMBOL_parsing_local_fcns = 164 , YYSYMBOL_push_script_symtab = 165 , YYSYMBOL_begin_file = 166 , YYSYMBOL_file = 167 ,
  YYSYMBOL_function_beg = 168 , YYSYMBOL_fcn_name = 169 , YYSYMBOL_function_end = 170 , YYSYMBOL_function = 171 ,
  YYSYMBOL_classdef_beg = 172 , YYSYMBOL_classdef = 173 , YYSYMBOL_attr_list = 174 , YYSYMBOL_attr_list1 = 175 ,
  YYSYMBOL_attr = 176 , YYSYMBOL_superclass_list = 177 , YYSYMBOL_superclass_list1 = 178 , YYSYMBOL_superclass = 179 ,
  YYSYMBOL_class_body = 180 , YYSYMBOL_class_body1 = 181 , YYSYMBOL_properties_block = 182 , YYSYMBOL_property_list = 183 ,
  YYSYMBOL_property_list1 = 184 , YYSYMBOL_class_property = 185 , YYSYMBOL_methods_block = 186 , YYSYMBOL_method_decl1 = 187 ,
  YYSYMBOL_method_decl = 188 , YYSYMBOL_189_1 = 189 , YYSYMBOL_method = 190 , YYSYMBOL_methods_list = 191 ,
  YYSYMBOL_methods_list1 = 192 , YYSYMBOL_events_block = 193 , YYSYMBOL_events_list = 194 , YYSYMBOL_events_list1 = 195 ,
  YYSYMBOL_class_event = 196 , YYSYMBOL_enum_block = 197 , YYSYMBOL_enum_list = 198 , YYSYMBOL_enum_list1 = 199 ,
  YYSYMBOL_class_enum = 200 , YYSYMBOL_stmt_begin = 201 , YYSYMBOL_anon_fcn_begin = 202 , YYSYMBOL_stash_comment = 203 ,
  YYSYMBOL_parse_error = 204 , YYSYMBOL_sep_no_nl = 205 , YYSYMBOL_opt_sep_no_nl = 206 , YYSYMBOL_opt_nl = 207 ,
  YYSYMBOL_nl = 208 , YYSYMBOL_sep = 209 , YYSYMBOL_opt_sep = 210
}
 

Functions

void free (void *)
 
void * malloc (unsigned)
 
static void octave_tex_error (octave::text_parser_tex &parser, const char *s)
 
int octave_tex_lex (OCTAVE_TEX_STYPE *, void *)
 The main scanner function which does all the work. More...
 
int octave_tex_parse (octave::text_parser_tex &parser)
 
static void yydestruct (const char *yymsg, yysymbol_kind_t yykind, OCTAVE_TEX_STYPE *yyvaluep, octave::text_parser_tex &parser)
 

Variables

static const yytype_int8 yycheck []
 
static const yytype_int8 yydefact []
 
static const yytype_int8 yydefgoto []
 
static const yytype_int8 yypact []
 
static const yytype_int8 yypgoto []
 
static const yytype_int8 yyr1 []
 
static const yytype_int8 yyr2 []
 
static const yytype_int8 yystos []
 
static const yytype_int8 yytable []
 
static const yytype_int8 yytranslate []
 

Macro Definition Documentation

◆ BF

#define BF   258

Definition at line 188 of file oct-tex-parser.cc.

◆ CH

#define CH   270

Definition at line 200 of file oct-tex-parser.cc.

◆ COLOR

#define COLOR   264

Definition at line 194 of file oct-tex-parser.cc.

◆ COLOR_RGB

#define COLOR_RGB   265

Definition at line 195 of file oct-tex-parser.cc.

◆ END

#define END   267

Definition at line 197 of file oct-tex-parser.cc.

◆ FONTNAME

#define FONTNAME   262

Definition at line 192 of file oct-tex-parser.cc.

◆ FONTSIZE

#define FONTSIZE   263

Definition at line 193 of file oct-tex-parser.cc.

◆ IT

#define IT   259

Definition at line 189 of file oct-tex-parser.cc.

◆ NUM

#define NUM   271

Definition at line 201 of file oct-tex-parser.cc.

◆ OCTAVE_TEX_EMPTY

#define OCTAVE_TEX_EMPTY   -2

Definition at line 184 of file oct-tex-parser.cc.

◆ OCTAVE_TEX_EOF

#define OCTAVE_TEX_EOF   0

Definition at line 185 of file oct-tex-parser.cc.

◆ OCTAVE_TEX_error

#define OCTAVE_TEX_error   256

Definition at line 186 of file oct-tex-parser.cc.

◆ OCTAVE_TEX_UNDEF

#define OCTAVE_TEX_UNDEF   257

Definition at line 187 of file oct-tex-parser.cc.

◆ RM

#define RM   261

Definition at line 191 of file oct-tex-parser.cc.

◆ scanner

#define scanner   parser.get_scanner ()

Definition at line 93 of file oct-tex-parser.cc.

◆ SCRIPT

#define SCRIPT   273

Definition at line 203 of file oct-tex-parser.cc.

◆ SL

#define SL   260

Definition at line 190 of file oct-tex-parser.cc.

◆ START

#define START   266

Definition at line 196 of file oct-tex-parser.cc.

◆ STR

#define STR   274

Definition at line 204 of file oct-tex-parser.cc.

◆ SUB

#define SUB   269

Definition at line 199 of file oct-tex-parser.cc.

◆ SUPER

#define SUPER   268

Definition at line 198 of file oct-tex-parser.cc.

◆ SYM

#define SYM   272

Definition at line 202 of file oct-tex-parser.cc.

◆ YY_

#define YY_ (   Msgid)    Msgid

Definition at line 404 of file oct-tex-parser.cc.

◆ YY_ACCESSING_SYMBOL

#define YY_ACCESSING_SYMBOL (   State)    YY_CAST (yysymbol_kind_t, yystos[State])

Accessing symbol of state STATE.


Definition at line 664 of file oct-tex-parser.cc.

◆ YY_ASSERT

#define YY_ASSERT (   E)    ((void) (0 && (E)))

Definition at line 464 of file oct-tex-parser.cc.

◆ YY_ATTRIBUTE_PURE

#define YY_ATTRIBUTE_PURE

Definition at line 413 of file oct-tex-parser.cc.

◆ YY_ATTRIBUTE_UNUSED

#define YY_ATTRIBUTE_UNUSED

Definition at line 421 of file oct-tex-parser.cc.

◆ YY_CAST

#define YY_CAST (   Type,
  Val 
)    ((Type) (Val))

Definition at line 113 of file oct-tex-parser.cc.

◆ YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN

#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN

Definition at line 444 of file oct-tex-parser.cc.

◆ YY_IGNORE_MAYBE_UNINITIALIZED_END

#define YY_IGNORE_MAYBE_UNINITIALIZED_END

Definition at line 445 of file oct-tex-parser.cc.

◆ YY_IGNORE_USELESS_CAST_BEGIN

#define YY_IGNORE_USELESS_CAST_BEGIN

Definition at line 459 of file oct-tex-parser.cc.

◆ YY_IGNORE_USELESS_CAST_END

#define YY_IGNORE_USELESS_CAST_END

Definition at line 460 of file oct-tex-parser.cc.

◆ YY_INITIAL_VALUE

#define YY_INITIAL_VALUE (   Value)    Value

Definition at line 441 of file oct-tex-parser.cc.

◆ YY_NULLPTR

#define YY_NULLPTR   ((void*)0)

Definition at line 125 of file oct-tex-parser.cc.

◆ YY_OCTAVE_TEX_LIBINTERP_COREFCN_OCT_TEX_PARSER_H_INCLUDED

#define YY_OCTAVE_TEX_LIBINTERP_COREFCN_OCT_TEX_PARSER_H_INCLUDED

Definition at line 132 of file oct-tex-parser.cc.

◆ YY_REDUCE_PRINT

#define YY_REDUCE_PRINT (   Rule)

Definition at line 975 of file oct-tex-parser.cc.

◆ YY_REINTERPRET_CAST

#define YY_REINTERPRET_CAST (   Type,
  Val 
)    ((Type) (Val))

Definition at line 114 of file oct-tex-parser.cc.

◆ YY_STACK_PRINT

#define YY_STACK_PRINT (   Bottom,
  Top 
)

Definition at line 974 of file oct-tex-parser.cc.

◆ YY_SYMBOL_PRINT

#define YY_SYMBOL_PRINT (   Title,
  Kind,
  Value,
  Location 
)

Definition at line 973 of file oct-tex-parser.cc.

◆ YY_USE

#define YY_USE (   E)    ((void) (E))

Definition at line 427 of file oct-tex-parser.cc.

◆ YYABORT

#define YYABORT   goto yyabortlab

Definition at line 816 of file oct-tex-parser.cc.

◆ YYACCEPT

#define YYACCEPT   goto yyacceptlab

Definition at line 815 of file oct-tex-parser.cc.

◆ yyalloc

#define yyalloc   octave_tex_yyalloc

Definition at line 94 of file oct-tex-parser.cc.

◆ YYBACKUP

#define YYBACKUP (   Token,
  Value 
)
Value:
do \
if (yychar == OCTAVE_TEX_EMPTY) \
{ \
yychar = (Token); \
yylval = (Value); \
YYPOPSTACK (yylen); \
yystate = *yyssp; \
goto yybackup; \
} \
else \
{ \
yyerror (parser, YY_("syntax error: cannot back up")); \
YYERROR; \
} \
while (0)
#define yyssp
Definition: oct-parse.cc:3228
#define YY_(Msgid)
#define OCTAVE_TEX_EMPTY

Definition at line 822 of file oct-tex-parser.cc.

◆ YYBISON

#define YYBISON   30705

Definition at line 49 of file oct-tex-parser.cc.

◆ YYBISON_VERSION

#define YYBISON_VERSION   "3.7.5"

Definition at line 52 of file oct-tex-parser.cc.

◆ yyclearin

#define yyclearin   (yychar = OCTAVE_TEX_EMPTY)

Definition at line 813 of file oct-tex-parser.cc.

◆ YYCOPY

#define YYCOPY (   Dst,
  Src,
  Count 
)
Value:
do \
{ \
YYPTRDIFF_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(Dst)[yyi] = (Src)[yyi]; \
} \
while (0)

Definition at line 581 of file oct-tex-parser.cc.

◆ YYCOPY_NEEDED

#define YYCOPY_NEEDED   1

Definition at line 553 of file oct-tex-parser.cc.

◆ yydebug

#define yydebug   octave_tex_debug

Definition at line 72 of file oct-tex-parser.cc.

◆ YYDEBUG

#define YYDEBUG   1

Definition at line 79 of file oct-tex-parser.cc.

◆ YYDPRINTF

#define YYDPRINTF (   Args)    ((void) 0)

Definition at line 972 of file oct-tex-parser.cc.

◆ YYERRCODE

#define YYERRCODE   OCTAVE_TEX_UNDEF

Definition at line 841 of file oct-tex-parser.cc.

◆ yyerrok

#define yyerrok   (yyerrstatus = 0)

Definition at line 812 of file oct-tex-parser.cc.

◆ yyerror

#define yyerror   octave_tex_error

Definition at line 71 of file oct-tex-parser.cc.

◆ YYERROR

#define YYERROR   goto yyerrorlab

Definition at line 817 of file oct-tex-parser.cc.

◆ YYFINAL

#define YYFINAL   43

Definition at line 594 of file oct-tex-parser.cc.

◆ YYFREE

#define YYFREE   free

Definition at line 525 of file oct-tex-parser.cc.

◆ YYINITDEPTH

#define YYINITDEPTH   200

Definition at line 981 of file oct-tex-parser.cc.

◆ YYLAST

#define YYLAST   81

Definition at line 596 of file oct-tex-parser.cc.

◆ yylex

#define yylex   octave_tex_lex

Definition at line 70 of file oct-tex-parser.cc.

◆ YYMALLOC

#define YYMALLOC   malloc

Definition at line 519 of file oct-tex-parser.cc.

◆ YYMAXDEPTH

#define YYMAXDEPTH   10000

Definition at line 992 of file oct-tex-parser.cc.

◆ YYMAXUTOK

#define YYMAXUTOK   274

Definition at line 608 of file oct-tex-parser.cc.

◆ yynerrs

#define yynerrs   octave_tex_nerrs

Definition at line 73 of file oct-tex-parser.cc.

◆ YYNNTS

#define YYNNTS   14

Definition at line 601 of file oct-tex-parser.cc.

◆ YYNRULES

#define YYNRULES   36

Definition at line 603 of file oct-tex-parser.cc.

◆ YYNSTATES

#define YYNSTATES   55

Definition at line 605 of file oct-tex-parser.cc.

◆ YYNTOKENS

#define YYNTOKENS   20

Definition at line 599 of file oct-tex-parser.cc.

◆ YYPACT_NINF

#define YYPACT_NINF   (-4)

Definition at line 701 of file oct-tex-parser.cc.

◆ yypact_value_is_default

#define yypact_value_is_default (   Yyn)     ((Yyn) == YYPACT_NINF)

Definition at line 703 of file oct-tex-parser.cc.

◆ yyparse

#define yyparse   octave_tex_parse

Definition at line 69 of file oct-tex-parser.cc.

◆ YYPOPSTACK

#define YYPOPSTACK (   N)    (yyvsp -= (N), yyssp -= (N))

◆ YYPTRDIFF_MAXIMUM

#define YYPTRDIFF_MAXIMUM   LONG_MAX

Definition at line 364 of file oct-tex-parser.cc.

◆ YYPTRDIFF_T

#define YYPTRDIFF_T   long

Definition at line 363 of file oct-tex-parser.cc.

◆ YYPULL

#define YYPULL   1

Definition at line 64 of file oct-tex-parser.cc.

◆ YYPURE

#define YYPURE   1

Definition at line 58 of file oct-tex-parser.cc.

◆ YYPUSH

#define YYPUSH   0

Definition at line 61 of file oct-tex-parser.cc.

◆ YYRECOVERING

#define YYRECOVERING ( )    (!!yyerrstatus)

Definition at line 820 of file oct-tex-parser.cc.

◆ YYSIZE_MAXIMUM

#define YYSIZE_MAXIMUM
Value:
: YY_CAST (YYSIZE_T, -1)))
#define YYPTRDIFF_MAXIMUM
#define YY_CAST(Type, Val)
#define YYSIZE_T
#define YYPTRDIFF_T

Definition at line 381 of file oct-tex-parser.cc.

◆ YYSIZE_T

#define YYSIZE_T   unsigned

Definition at line 377 of file oct-tex-parser.cc.

◆ YYSIZEOF

#define YYSIZEOF (   X)    YY_CAST (YYPTRDIFF_T, sizeof (X))

Definition at line 387 of file oct-tex-parser.cc.

◆ YYSKELETON_NAME

#define YYSKELETON_NAME   "yacc.c"

Definition at line 55 of file oct-tex-parser.cc.

◆ YYSTACK_ALLOC

#define YYSTACK_ALLOC   YYMALLOC

Definition at line 505 of file oct-tex-parser.cc.

◆ YYSTACK_ALLOC_MAXIMUM

#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM

Definition at line 508 of file oct-tex-parser.cc.

◆ YYSTACK_BYTES

#define YYSTACK_BYTES (   N)
Value:
F77_RET_T const F77_INT & N
#define YYSTYPE
#define YYSIZEOF(X)
yytype_int8 yy_state_t
#define YYSTACK_GAP_MAXIMUM

Definition at line 549 of file oct-tex-parser.cc.

◆ YYSTACK_FREE

#define YYSTACK_FREE   YYFREE

Definition at line 506 of file oct-tex-parser.cc.

◆ YYSTACK_GAP_MAXIMUM

#define YYSTACK_GAP_MAXIMUM   (YYSIZEOF (union yyalloc) - 1)

Definition at line 545 of file oct-tex-parser.cc.

◆ YYSTACK_RELOCATE

#define YYSTACK_RELOCATE (   Stack_alloc,
  Stack 
)
Value:
do \
{ \
YYPTRDIFF_T yynewbytes; \
YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
Stack = &yyptr->Stack_alloc; \
yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
yyptr += yynewbytes / YYSIZEOF (*yyptr); \
} \
while (0)
#define yystacksize
Definition: oct-parse.cc:3232

Definition at line 560 of file oct-tex-parser.cc.

◆ YYSTYPE

#define YYSTYPE   OCTAVE_TEX_STYPE

Definition at line 67 of file oct-tex-parser.cc.

◆ YYTABLE_NINF

#define YYTABLE_NINF   (-1)

Definition at line 706 of file oct-tex-parser.cc.

◆ yytable_value_is_error

#define yytable_value_is_error (   Yyn)     0

Definition at line 708 of file oct-tex-parser.cc.

◆ YYTRANSLATE

#define YYTRANSLATE (   YYX)
Value:
(0 <= (YYX) && (YYX) <= YYMAXUTOK \
static const yytype_int8 yytranslate[]
yysymbol_kind_t
@ YYSYMBOL_YYUNDEF
#define YYMAXUTOK

Definition at line 613 of file oct-tex-parser.cc.

Typedef Documentation

◆ yy_state_fast_t

typedef int yy_state_fast_t

Definition at line 394 of file oct-tex-parser.cc.

◆ yy_state_t

Definition at line 391 of file oct-tex-parser.cc.

◆ yysymbol_kind_t

Definition at line 234 of file oct-tex-parser.cc.

◆ yytype_int16

typedef short yytype_int16

Definition at line 315 of file oct-tex-parser.cc.

◆ yytype_int8

typedef signed char yytype_int8

Definition at line 307 of file oct-tex-parser.cc.

◆ yytype_uint16

typedef unsigned short yytype_uint16

Definition at line 347 of file oct-tex-parser.cc.

◆ yytype_uint8

typedef unsigned char yytype_uint8

Definition at line 336 of file oct-tex-parser.cc.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
YYENOMEM 

Definition at line 810 of file oct-tex-parser.cc.

◆ yysymbol_kind_t

Enumerator
YYSYMBOL_YYEMPTY 
YYSYMBOL_YYEOF 
YYSYMBOL_YYerror 
YYSYMBOL_YYUNDEF 
YYSYMBOL_BF 
YYSYMBOL_IT 
YYSYMBOL_SL 
YYSYMBOL_RM 
YYSYMBOL_FONTNAME 
YYSYMBOL_FONTSIZE 
YYSYMBOL_COLOR 
YYSYMBOL_COLOR_RGB 
YYSYMBOL_START 
YYSYMBOL_END 
YYSYMBOL_SUPER 
YYSYMBOL_SUB 
YYSYMBOL_CH 
YYSYMBOL_NUM 
YYSYMBOL_SYM 
YYSYMBOL_SCRIPT 
YYSYMBOL_STR 
YYSYMBOL_YYACCEPT 
YYSYMBOL_simple_string 
YYSYMBOL_symbol_element 
YYSYMBOL_font_modifier_element 
YYSYMBOL_fontsize_element 
YYSYMBOL_fontname_element 
YYSYMBOL_color_element 
YYSYMBOL_string_element 
YYSYMBOL_superscript_element 
YYSYMBOL_subscript_element 
YYSYMBOL_combined_script_element 
YYSYMBOL_string_element_list 
YYSYMBOL_scoped_string_element_list 
YYSYMBOL_string 
YYSYMBOL_YYEMPTY 
YYSYMBOL_YYEOF 
YYSYMBOL_YYerror 
YYSYMBOL_YYUNDEF 
YYSYMBOL_3_ 
YYSYMBOL_4_ 
YYSYMBOL_5_ 
YYSYMBOL_6_ 
YYSYMBOL_7_ 
YYSYMBOL_8_ 
YYSYMBOL_9_ 
YYSYMBOL_10_ 
YYSYMBOL_11_ 
YYSYMBOL_12_ 
YYSYMBOL_13_ 
YYSYMBOL_14_ 
YYSYMBOL_15_ 
YYSYMBOL_16_ 
YYSYMBOL_17_ 
YYSYMBOL_18_ 
YYSYMBOL_19_n_ 
YYSYMBOL_ADD_EQ 
YYSYMBOL_SUB_EQ 
YYSYMBOL_MUL_EQ 
YYSYMBOL_DIV_EQ 
YYSYMBOL_LEFTDIV_EQ 
YYSYMBOL_POW_EQ 
YYSYMBOL_EMUL_EQ 
YYSYMBOL_EDIV_EQ 
YYSYMBOL_ELEFTDIV_EQ 
YYSYMBOL_EPOW_EQ 
YYSYMBOL_AND_EQ 
YYSYMBOL_OR_EQ 
YYSYMBOL_EXPR_AND_AND 
YYSYMBOL_EXPR_OR_OR 
YYSYMBOL_EXPR_AND 
YYSYMBOL_EXPR_OR 
YYSYMBOL_EXPR_NOT 
YYSYMBOL_EXPR_LT 
YYSYMBOL_EXPR_LE 
YYSYMBOL_EXPR_EQ 
YYSYMBOL_EXPR_NE 
YYSYMBOL_EXPR_GE 
YYSYMBOL_EXPR_GT 
YYSYMBOL_LEFTDIV 
YYSYMBOL_EMUL 
YYSYMBOL_EDIV 
YYSYMBOL_ELEFTDIV 
YYSYMBOL_EPLUS 
YYSYMBOL_EMINUS 
YYSYMBOL_HERMITIAN 
YYSYMBOL_TRANSPOSE 
YYSYMBOL_PLUS_PLUS 
YYSYMBOL_MINUS_MINUS 
YYSYMBOL_POW 
YYSYMBOL_EPOW 
YYSYMBOL_NUM 
YYSYMBOL_IMAG_NUM 
YYSYMBOL_STRUCT_ELT 
YYSYMBOL_NAME 
YYSYMBOL_END 
YYSYMBOL_DQ_STRING 
YYSYMBOL_SQ_STRING 
YYSYMBOL_FOR 
YYSYMBOL_PARFOR 
YYSYMBOL_WHILE 
YYSYMBOL_DO 
YYSYMBOL_UNTIL 
YYSYMBOL_IF 
YYSYMBOL_ELSEIF 
YYSYMBOL_ELSE 
YYSYMBOL_SWITCH 
YYSYMBOL_CASE 
YYSYMBOL_OTHERWISE 
YYSYMBOL_BREAK 
YYSYMBOL_CONTINUE 
YYSYMBOL_FUNC_RET 
YYSYMBOL_UNWIND 
YYSYMBOL_CLEANUP 
YYSYMBOL_TRY 
YYSYMBOL_CATCH 
YYSYMBOL_GLOBAL 
YYSYMBOL_PERSISTENT 
YYSYMBOL_FCN_HANDLE 
YYSYMBOL_CLASSDEF 
YYSYMBOL_PROPERTIES 
YYSYMBOL_METHODS 
YYSYMBOL_EVENTS 
YYSYMBOL_ENUMERATION 
YYSYMBOL_METAQUERY 
YYSYMBOL_SUPERCLASSREF 
YYSYMBOL_FQ_IDENT 
YYSYMBOL_GET 
YYSYMBOL_SET 
YYSYMBOL_FCN 
YYSYMBOL_LEXICAL_ERROR 
YYSYMBOL_END_OF_INPUT 
YYSYMBOL_INPUT_FILE 
YYSYMBOL_UNARY 
YYSYMBOL_YYACCEPT 
YYSYMBOL_input 
YYSYMBOL_simple_list 
YYSYMBOL_simple_list1 
YYSYMBOL_opt_list 
YYSYMBOL_list 
YYSYMBOL_list1 
YYSYMBOL_opt_fcn_list 
YYSYMBOL_fcn_list 
YYSYMBOL_fcn_list1 
YYSYMBOL_statement 
YYSYMBOL_word_list_cmd 
YYSYMBOL_word_list 
YYSYMBOL_identifier 
YYSYMBOL_superclass_identifier 
YYSYMBOL_meta_identifier 
YYSYMBOL_string 
YYSYMBOL_constant 
YYSYMBOL_matrix 
YYSYMBOL_matrix_rows 
YYSYMBOL_cell 
YYSYMBOL_cell_rows 
YYSYMBOL_cell_or_matrix_row 
YYSYMBOL_fcn_handle 
YYSYMBOL_anon_fcn_handle 
YYSYMBOL_primary_expr 
YYSYMBOL_magic_colon 
YYSYMBOL_magic_tilde 
YYSYMBOL_arg_list 
YYSYMBOL_indirect_ref_op 
YYSYMBOL_oper_expr 
YYSYMBOL_power_expr 
YYSYMBOL_colon_expr 
YYSYMBOL_simple_expr 
YYSYMBOL_assign_lhs 
YYSYMBOL_assign_expr 
YYSYMBOL_expression 
YYSYMBOL_command 
YYSYMBOL_declaration 
YYSYMBOL_decl1 
YYSYMBOL_decl_param_init 
YYSYMBOL_decl2 
YYSYMBOL_select_command 
YYSYMBOL_if_command 
YYSYMBOL_if_cmd_list 
YYSYMBOL_if_cmd_list1 
YYSYMBOL_elseif_clause 
YYSYMBOL_else_clause 
YYSYMBOL_switch_command 
YYSYMBOL_case_list 
YYSYMBOL_case_list1 
YYSYMBOL_switch_case 
YYSYMBOL_default_case 
YYSYMBOL_loop_command 
YYSYMBOL_jump_command 
YYSYMBOL_except_command 
YYSYMBOL_push_fcn_symtab 
YYSYMBOL_param_list_beg 
YYSYMBOL_param_list_end 
YYSYMBOL_opt_param_list 
YYSYMBOL_param_list 
YYSYMBOL_param_list1 
YYSYMBOL_param_list2 
YYSYMBOL_param_list_elt 
YYSYMBOL_return_list 
YYSYMBOL_return_list1 
YYSYMBOL_parsing_local_fcns 
YYSYMBOL_push_script_symtab 
YYSYMBOL_begin_file 
YYSYMBOL_file 
YYSYMBOL_function_beg 
YYSYMBOL_fcn_name 
YYSYMBOL_function_end 
YYSYMBOL_function 
YYSYMBOL_classdef_beg 
YYSYMBOL_classdef 
YYSYMBOL_attr_list 
YYSYMBOL_attr_list1 
YYSYMBOL_attr 
YYSYMBOL_superclass_list 
YYSYMBOL_superclass_list1 
YYSYMBOL_superclass 
YYSYMBOL_class_body 
YYSYMBOL_class_body1 
YYSYMBOL_properties_block 
YYSYMBOL_property_list 
YYSYMBOL_property_list1 
YYSYMBOL_class_property 
YYSYMBOL_methods_block 
YYSYMBOL_method_decl1 
YYSYMBOL_method_decl 
YYSYMBOL_189_1 
YYSYMBOL_method 
YYSYMBOL_methods_list 
YYSYMBOL_methods_list1 
YYSYMBOL_events_block 
YYSYMBOL_events_list 
YYSYMBOL_events_list1 
YYSYMBOL_class_event 
YYSYMBOL_enum_block 
YYSYMBOL_enum_list 
YYSYMBOL_enum_list1 
YYSYMBOL_class_enum 
YYSYMBOL_stmt_begin 
YYSYMBOL_anon_fcn_begin 
YYSYMBOL_stash_comment 
YYSYMBOL_parse_error 
YYSYMBOL_sep_no_nl 
YYSYMBOL_opt_sep_no_nl 
YYSYMBOL_opt_nl 
YYSYMBOL_nl 
YYSYMBOL_sep 
YYSYMBOL_opt_sep 

Definition at line 238 of file oct-tex-parser.cc.

Function Documentation

◆ free()

◆ malloc()

◆ octave_tex_error()

static void octave_tex_error ( octave::text_parser_tex parser,
const char *  s 
)
static

Definition at line 1771 of file oct-tex-parser.cc.

◆ octave_tex_lex()

◆ octave_tex_parse()

◆ yydestruct()

Variable Documentation

◆ yycheck

const yytype_int8 yycheck[]
static
Initial value:
=
{
3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
13, 14, 15, 11, 17, 3, 4, 5, 6, 7,
8, 9, 10, 11, 12, 13, 14, 15, 11, 17,
3, 4, 5, 6, 7, 8, 9, 10, 11, 24,
13, 14, 15, 11, 17, 11, 11, 32, 11, 15,
15, 17, 17, 12, 12, 15, 15, 15, 27, 14,
29, 10, 11, 10, 11, 13, 0, -1, 22, 15,
12, 16, 16, 16, 12, 16, 9, -1, -1, -1,
-1, 21
}

Definition at line 766 of file oct-tex-parser.cc.

Referenced by octave_tex_parse().

◆ yydefact

const yytype_int8 yydefact[]
static
Initial value:
=
{
35, 5, 6, 7, 8, 0, 0, 0, 0, 0,
0, 0, 2, 4, 13, 15, 16, 17, 18, 19,
31, 20, 21, 22, 36, 14, 0, 0, 0, 0,
0, 34, 0, 23, 25, 24, 26, 28, 27, 3,
30, 29, 32, 1, 0, 0, 0, 0, 33, 10,
9, 11, 0, 0, 12
}

Definition at line 726 of file oct-tex-parser.cc.

Referenced by octave_tex_parse().

◆ yydefgoto

const yytype_int8 yydefgoto[]
static
Initial value:
=
{
0, 14, 15, 16, 17, 18, 19, 20, 21, 22,
23, 24, 25, 26
}

Definition at line 744 of file oct-tex-parser.cc.

Referenced by octave_tex_parse().

◆ yypact

const yytype_int8 yypact[]
static
Initial value:
=
{
27, -4, -4, -4, -4, 2, 17, 32, 37, -3,
34, 35, -4, -4, 40, -4, -4, -4, -4, -4,
-4, 45, 52, -4, 27, -4, 66, 54, 55, 54,
56, -4, 12, -4, -4, -4, -4, -4, -4, -4,
-4, -4, -4, -4, 41, 58, 42, 57, -4, -4,
-4, -4, 59, 62, -4
}

Definition at line 713 of file oct-tex-parser.cc.

Referenced by octave_tex_parse().

◆ yypgoto

const yytype_int8 yypgoto[]
static
Initial value:
=
{
-4, 31, 51, -4, -4, -4, -4, 15, 46, 60,
-4, 67, 53, -4
}

Definition at line 737 of file oct-tex-parser.cc.

Referenced by octave_tex_parse().

◆ yyr1

const yytype_int8 yyr1[]
static
Initial value:
=
{
0, 20, 21, 21, 22, 23, 23, 23, 23, 24,
25, 26, 26, 27, 27, 27, 27, 27, 27, 27,
27, 27, 27, 28, 28, 28, 29, 29, 29, 30,
30, 31, 31, 32, 32, 33, 33
}

Definition at line 792 of file oct-tex-parser.cc.

Referenced by octave_tex_parse().

◆ yyr2

const yytype_int8 yyr2[]
static
Initial value:
=
{
0, 2, 1, 2, 1, 1, 1, 1, 1, 4,
4, 4, 6, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 2, 2, 2, 2, 2, 2, 2,
2, 1, 2, 3, 2, 0, 1
}

Definition at line 801 of file oct-tex-parser.cc.

Referenced by octave_tex_parse().

◆ yystos

const yytype_int8 yystos[]
static
Initial value:
=
{
0, 3, 4, 5, 6, 7, 8, 9, 10, 11,
13, 14, 15, 17, 21, 22, 23, 24, 25, 26,
27, 28, 29, 30, 31, 32, 33, 11, 11, 11,
11, 12, 31, 15, 22, 32, 15, 22, 32, 15,
29, 28, 27, 0, 21, 16, 21, 16, 12, 12,
12, 12, 16, 16, 12
}

Definition at line 781 of file oct-tex-parser.cc.

◆ yytable

const yytype_int8 yytable[]
static
Initial value:
=
{
1, 2, 3, 4, 5, 6, 7, 8, 9, 31,
10, 11, 12, 27, 13, 1, 2, 3, 4, 5,
6, 7, 8, 9, 48, 10, 11, 12, 28, 13,
1, 2, 3, 4, 5, 6, 7, 8, 9, 42,
10, 11, 12, 29, 13, 9, 9, 42, 30, 33,
36, 13, 13, 49, 51, 39, 39, 39, 44, 11,
46, 34, 37, 35, 38, 10, 43, 0, 41, 12,
50, 45, 47, 52, 54, 53, 32, 0, 0, 0,
0, 40
}

Definition at line 753 of file oct-tex-parser.cc.

Referenced by octave_tex_parse().

◆ yytranslate

const yytype_int8 yytranslate[]
static

Definition at line 620 of file oct-tex-parser.cc.