GNU Octave  9.1.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 <limits.h>

Go to the source code of this file.

Macros

#define m_scanner   parser.get_scanner ()
 
#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_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   30802
 
#define YYBISON_VERSION   "3.8.2"
 
#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 YYNOMEM   goto yyexhaustedlab
 
#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_ = 19 ,
  YYSYMBOL_20_ = 20 , YYSYMBOL_21_n_ = 21 , YYSYMBOL_ADD_EQ = 22 , YYSYMBOL_SUB_EQ = 23 ,
  YYSYMBOL_MUL_EQ = 24 , YYSYMBOL_DIV_EQ = 25 , YYSYMBOL_LEFTDIV_EQ = 26 , YYSYMBOL_POW_EQ = 27 ,
  YYSYMBOL_EMUL_EQ = 28 , YYSYMBOL_EDIV_EQ = 29 , YYSYMBOL_ELEFTDIV_EQ = 30 , YYSYMBOL_EPOW_EQ = 31 ,
  YYSYMBOL_AND_EQ = 32 , YYSYMBOL_OR_EQ = 33 , YYSYMBOL_EXPR_AND_AND = 34 , YYSYMBOL_EXPR_OR_OR = 35 ,
  YYSYMBOL_EXPR_AND = 36 , YYSYMBOL_EXPR_OR = 37 , YYSYMBOL_EXPR_LT = 38 , YYSYMBOL_EXPR_LE = 39 ,
  YYSYMBOL_EXPR_EQ = 40 , YYSYMBOL_EXPR_NE = 41 , YYSYMBOL_EXPR_GE = 42 , YYSYMBOL_EXPR_GT = 43 ,
  YYSYMBOL_LEFTDIV = 44 , YYSYMBOL_EMUL = 45 , YYSYMBOL_EDIV = 46 , YYSYMBOL_ELEFTDIV = 47 ,
  YYSYMBOL_HERMITIAN = 48 , YYSYMBOL_TRANSPOSE = 49 , YYSYMBOL_PLUS_PLUS = 50 , YYSYMBOL_MINUS_MINUS = 51 ,
  YYSYMBOL_POW = 52 , YYSYMBOL_EPOW = 53 , YYSYMBOL_NUMBER = 54 , YYSYMBOL_STRUCT_ELT = 55 ,
  YYSYMBOL_NAME = 56 , YYSYMBOL_END = 57 , YYSYMBOL_DQ_STRING = 58 , YYSYMBOL_SQ_STRING = 59 ,
  YYSYMBOL_FOR = 60 , YYSYMBOL_PARFOR = 61 , YYSYMBOL_WHILE = 62 , YYSYMBOL_DO = 63 ,
  YYSYMBOL_UNTIL = 64 , YYSYMBOL_SPMD = 65 , YYSYMBOL_IF = 66 , YYSYMBOL_ELSEIF = 67 ,
  YYSYMBOL_ELSE = 68 , YYSYMBOL_SWITCH = 69 , YYSYMBOL_CASE = 70 , YYSYMBOL_OTHERWISE = 71 ,
  YYSYMBOL_BREAK = 72 , YYSYMBOL_CONTINUE = 73 , YYSYMBOL_FUNC_RET = 74 , YYSYMBOL_UNWIND = 75 ,
  YYSYMBOL_CLEANUP = 76 , YYSYMBOL_TRY = 77 , YYSYMBOL_CATCH = 78 , YYSYMBOL_GLOBAL = 79 ,
  YYSYMBOL_PERSISTENT = 80 , YYSYMBOL_FCN_HANDLE = 81 , YYSYMBOL_CLASSDEF = 82 , YYSYMBOL_PROPERTIES = 83 ,
  YYSYMBOL_METHODS = 84 , YYSYMBOL_EVENTS = 85 , YYSYMBOL_ENUMERATION = 86 , YYSYMBOL_METAQUERY = 87 ,
  YYSYMBOL_SUPERCLASSREF = 88 , YYSYMBOL_FQ_IDENT = 89 , YYSYMBOL_GET = 90 , YYSYMBOL_SET = 91 ,
  YYSYMBOL_FCN = 92 , YYSYMBOL_ARGUMENTS = 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_decl_init_list = 137 , YYSYMBOL_decl_elt = 138 , YYSYMBOL_select_command = 139 ,
  YYSYMBOL_if_command = 140 , YYSYMBOL_if_cmd_list = 141 , YYSYMBOL_if_cmd_list1 = 142 , YYSYMBOL_elseif_clause = 143 ,
  YYSYMBOL_else_clause = 144 , YYSYMBOL_switch_command = 145 , YYSYMBOL_case_list = 146 , YYSYMBOL_case_list1 = 147 ,
  YYSYMBOL_switch_case = 148 , YYSYMBOL_default_case = 149 , YYSYMBOL_loop_command = 150 , YYSYMBOL_jump_command = 151 ,
  YYSYMBOL_spmd_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_function_body = 172 , YYSYMBOL_at_first_executable_stmt = 173 , YYSYMBOL_function_body1 = 174 , YYSYMBOL_arguments_block = 175 ,
  YYSYMBOL_arguments_beg = 176 , YYSYMBOL_args_attr_list = 177 , YYSYMBOL_args_validation_list = 178 , YYSYMBOL_arg_name = 179 ,
  YYSYMBOL_arg_validation = 180 , YYSYMBOL_size_spec = 181 , YYSYMBOL_class_name = 182 , YYSYMBOL_validation_fcns = 183 ,
  YYSYMBOL_default_value = 184 , YYSYMBOL_classdef_beg = 185 , YYSYMBOL_classdef = 186 , YYSYMBOL_attr_list = 187 ,
  YYSYMBOL_attr_list1 = 188 , YYSYMBOL_attr = 189 , YYSYMBOL_superclass_list = 190 , YYSYMBOL_superclass_list1 = 191 ,
  YYSYMBOL_superclass = 192 , YYSYMBOL_class_body = 193 , YYSYMBOL_class_body1 = 194 , YYSYMBOL_properties_block = 195 ,
  YYSYMBOL_properties_beg = 196 , YYSYMBOL_property_list = 197 , YYSYMBOL_property_list1 = 198 , YYSYMBOL_class_property = 199 ,
  YYSYMBOL_methods_block = 200 , YYSYMBOL_methods_beg = 201 , YYSYMBOL_method_decl1 = 202 , YYSYMBOL_method_decl = 203 ,
  YYSYMBOL_204_1 = 204 , YYSYMBOL_method = 205 , YYSYMBOL_methods_list = 206 , YYSYMBOL_methods_list1 = 207 ,
  YYSYMBOL_events_block = 208 , YYSYMBOL_events_beg = 209 , YYSYMBOL_events_list = 210 , YYSYMBOL_events_list1 = 211 ,
  YYSYMBOL_class_event = 212 , YYSYMBOL_enum_block = 213 , YYSYMBOL_enumeration_beg = 214 , YYSYMBOL_enum_list = 215 ,
  YYSYMBOL_enum_list1 = 216 , YYSYMBOL_class_enum = 217 , YYSYMBOL_stmt_begin = 218 , YYSYMBOL_anon_fcn_begin = 219 ,
  YYSYMBOL_stash_comment = 220 , YYSYMBOL_parse_error = 221 , YYSYMBOL_sep_no_nl = 222 , YYSYMBOL_opt_sep_no_nl = 223 ,
  YYSYMBOL_opt_nl = 224 , YYSYMBOL_nl = 225 , YYSYMBOL_sep = 226 , YYSYMBOL_opt_sep = 227
}
 

Functions

void free (void *)
 
void * malloc (unsigned)
 
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)
 

Macro Definition Documentation

◆ m_scanner

#define m_scanner   parser.get_scanner ()

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

◆ YY_

#define YY_ (   Msgid)    Msgid

Definition at line 297 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 563 of file oct-tex-parser.cc.

◆ YY_ASSERT

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

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

◆ YY_ATTRIBUTE_PURE

#define YY_ATTRIBUTE_PURE

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

◆ YY_ATTRIBUTE_UNUSED

#define YY_ATTRIBUTE_UNUSED

Definition at line 314 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 343 of file oct-tex-parser.cc.

◆ YY_IGNORE_MAYBE_UNINITIALIZED_END

#define YY_IGNORE_MAYBE_UNINITIALIZED_END

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

◆ YY_IGNORE_USELESS_CAST_BEGIN

#define YY_IGNORE_USELESS_CAST_BEGIN

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

◆ YY_IGNORE_USELESS_CAST_END

#define YY_IGNORE_USELESS_CAST_END

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

◆ YY_INITIAL_VALUE

#define YY_INITIAL_VALUE (   Value)    Value

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

◆ YY_NULLPTR

#define YY_NULLPTR   ((void*)0)

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

◆ YY_REDUCE_PRINT

#define YY_REDUCE_PRINT (   Rule)

Definition at line 858 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 857 of file oct-tex-parser.cc.

◆ YY_SYMBOL_PRINT

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

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

◆ YY_USE

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

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

◆ YYABORT

#define YYABORT   goto yyabortlab

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

◆ YYACCEPT

#define YYACCEPT   goto yyacceptlab

Definition at line 704 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)
Definition: parse.h:822
#define yyssp
Definition: oct-parse.cc:3063
#define YY_(Msgid)
@ OCTAVE_TEX_EMPTY

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

◆ YYBISON

#define YYBISON   30802

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

◆ YYBISON_VERSION

#define YYBISON_VERSION   "3.8.2"

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

◆ yyclearin

#define yyclearin   (yychar = OCTAVE_TEX_EMPTY)

Definition at line 702 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 480 of file oct-tex-parser.cc.

◆ YYCOPY_NEEDED

#define YYCOPY_NEEDED   1

Definition at line 452 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 855 of file oct-tex-parser.cc.

◆ YYERRCODE

#define YYERRCODE   OCTAVE_TEX_UNDEF

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

◆ yyerrok

#define yyerrok   (yyerrstatus = 0)

Definition at line 701 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 706 of file oct-tex-parser.cc.

◆ YYFINAL

#define YYFINAL   43

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

◆ YYFREE

#define YYFREE   free

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

◆ YYINITDEPTH

#define YYINITDEPTH   200

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

◆ YYLAST

#define YYLAST   81

Definition at line 495 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 418 of file oct-tex-parser.cc.

◆ YYMAXDEPTH

#define YYMAXDEPTH   10000

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

◆ YYMAXUTOK

#define YYMAXUTOK   274

Definition at line 507 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 500 of file oct-tex-parser.cc.

◆ YYNOMEM

#define YYNOMEM   goto yyexhaustedlab

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

◆ YYNRULES

#define YYNRULES   36

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

◆ YYNSTATES

#define YYNSTATES   55

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

◆ YYNTOKENS

#define YYNTOKENS   20

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

◆ YYPACT_NINF

#define YYPACT_NINF   (-4)

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

◆ yypact_value_is_default

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

Definition at line 592 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 257 of file oct-tex-parser.cc.

◆ YYPTRDIFF_T

#define YYPTRDIFF_T   long

Definition at line 256 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 710 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 274 of file oct-tex-parser.cc.

◆ YYSIZE_T

#define YYSIZE_T   unsigned

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

◆ YYSIZEOF

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

Definition at line 280 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 404 of file oct-tex-parser.cc.

◆ YYSTACK_ALLOC_MAXIMUM

#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM

Definition at line 407 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 448 of file oct-tex-parser.cc.

◆ YYSTACK_FREE

#define YYSTACK_FREE   YYFREE

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

◆ YYSTACK_GAP_MAXIMUM

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

Definition at line 444 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:3067

Definition at line 459 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 595 of file oct-tex-parser.cc.

◆ yytable_value_is_error

#define yytable_value_is_error (   Yyn)     0

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

◆ YYTRANSLATE

#define YYTRANSLATE (   YYX)
Value:
(0 <= (YYX) && (YYX) <= YYMAXUTOK \
? YY_CAST (yysymbol_kind_t, yytranslate[YYX]) \
yysymbol_kind_t
@ YYSYMBOL_YYUNDEF
#define YYMAXUTOK

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

Typedef Documentation

◆ yy_state_fast_t

typedef int yy_state_fast_t

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

◆ yy_state_t

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

◆ yysymbol_kind_t

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

◆ yytype_int16

typedef short yytype_int16

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

◆ yytype_int8

typedef signed char yytype_int8

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

◆ yytype_uint16

typedef unsigned short yytype_uint16

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

◆ yytype_uint8

typedef unsigned char yytype_uint8

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

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
YYENOMEM 

Definition at line 699 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_ 
YYSYMBOL_20_ 
YYSYMBOL_21_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_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_HERMITIAN 
YYSYMBOL_TRANSPOSE 
YYSYMBOL_PLUS_PLUS 
YYSYMBOL_MINUS_MINUS 
YYSYMBOL_POW 
YYSYMBOL_EPOW 
YYSYMBOL_NUMBER 
YYSYMBOL_STRUCT_ELT 
YYSYMBOL_NAME 
YYSYMBOL_END 
YYSYMBOL_DQ_STRING 
YYSYMBOL_SQ_STRING 
YYSYMBOL_FOR 
YYSYMBOL_PARFOR 
YYSYMBOL_WHILE 
YYSYMBOL_DO 
YYSYMBOL_UNTIL 
YYSYMBOL_SPMD 
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_ARGUMENTS 
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_decl_init_list 
YYSYMBOL_decl_elt 
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_spmd_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_function_body 
YYSYMBOL_at_first_executable_stmt 
YYSYMBOL_function_body1 
YYSYMBOL_arguments_block 
YYSYMBOL_arguments_beg 
YYSYMBOL_args_attr_list 
YYSYMBOL_args_validation_list 
YYSYMBOL_arg_name 
YYSYMBOL_arg_validation 
YYSYMBOL_size_spec 
YYSYMBOL_class_name 
YYSYMBOL_validation_fcns 
YYSYMBOL_default_value 
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_properties_beg 
YYSYMBOL_property_list 
YYSYMBOL_property_list1 
YYSYMBOL_class_property 
YYSYMBOL_methods_block 
YYSYMBOL_methods_beg 
YYSYMBOL_method_decl1 
YYSYMBOL_method_decl 
YYSYMBOL_204_1 
YYSYMBOL_method 
YYSYMBOL_methods_list 
YYSYMBOL_methods_list1 
YYSYMBOL_events_block 
YYSYMBOL_events_beg 
YYSYMBOL_events_list 
YYSYMBOL_events_list1 
YYSYMBOL_class_event 
YYSYMBOL_enum_block 
YYSYMBOL_enumeration_beg 
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 131 of file oct-tex-parser.cc.

Function Documentation

◆ free()

◆ malloc()

◆ octave_tex_lex()

int octave_tex_lex ( OCTAVE_TEX_STYPE yylval_param,
void *  yyscanner 
)

The main scanner function which does all the work.

Definition at line 1228 of file oct-tex-lexer.cc.

References YY_BUF_SIZE, yy_create_buffer, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_load_buffer_state, yyensure_buffer_stack, yyguts_t, yyin, yylval, and yyout.

◆ octave_tex_parse()