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 |
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 [] |
#define BF 258 |
Definition at line 188 of file oct-tex-parser.cc.
#define CH 270 |
Definition at line 200 of file oct-tex-parser.cc.
#define COLOR 264 |
Definition at line 194 of file oct-tex-parser.cc.
#define COLOR_RGB 265 |
Definition at line 195 of file oct-tex-parser.cc.
#define END 267 |
Definition at line 197 of file oct-tex-parser.cc.
#define FONTNAME 262 |
Definition at line 192 of file oct-tex-parser.cc.
#define FONTSIZE 263 |
Definition at line 193 of file oct-tex-parser.cc.
#define IT 259 |
Definition at line 189 of file oct-tex-parser.cc.
#define NUM 271 |
Definition at line 201 of file oct-tex-parser.cc.
#define OCTAVE_TEX_EMPTY -2 |
Definition at line 184 of file oct-tex-parser.cc.
#define OCTAVE_TEX_EOF 0 |
Definition at line 185 of file oct-tex-parser.cc.
#define OCTAVE_TEX_error 256 |
Definition at line 186 of file oct-tex-parser.cc.
#define OCTAVE_TEX_UNDEF 257 |
Definition at line 187 of file oct-tex-parser.cc.
#define RM 261 |
Definition at line 191 of file oct-tex-parser.cc.
#define scanner parser.get_scanner () |
Definition at line 93 of file oct-tex-parser.cc.
#define SCRIPT 273 |
Definition at line 203 of file oct-tex-parser.cc.
#define SL 260 |
Definition at line 190 of file oct-tex-parser.cc.
#define START 266 |
Definition at line 196 of file oct-tex-parser.cc.
#define STR 274 |
Definition at line 204 of file oct-tex-parser.cc.
#define SUB 269 |
Definition at line 199 of file oct-tex-parser.cc.
#define SUPER 268 |
Definition at line 198 of file oct-tex-parser.cc.
#define SYM 272 |
Definition at line 202 of file oct-tex-parser.cc.
#define YY_ | ( | Msgid | ) | Msgid |
Definition at line 404 of file oct-tex-parser.cc.
#define YY_ACCESSING_SYMBOL | ( | State | ) | YY_CAST (yysymbol_kind_t, yystos[State]) |
#define YY_ASSERT | ( | E | ) | ((void) (0 && (E))) |
Definition at line 464 of file oct-tex-parser.cc.
#define YY_ATTRIBUTE_PURE |
Definition at line 413 of file oct-tex-parser.cc.
#define YY_ATTRIBUTE_UNUSED |
Definition at line 421 of file oct-tex-parser.cc.
#define YY_CAST | ( | Type, | |
Val | |||
) | ((Type) (Val)) |
Definition at line 113 of file oct-tex-parser.cc.
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
Definition at line 444 of file oct-tex-parser.cc.
#define YY_IGNORE_MAYBE_UNINITIALIZED_END |
Definition at line 445 of file oct-tex-parser.cc.
#define YY_IGNORE_USELESS_CAST_BEGIN |
Definition at line 459 of file oct-tex-parser.cc.
#define YY_IGNORE_USELESS_CAST_END |
Definition at line 460 of file oct-tex-parser.cc.
#define YY_INITIAL_VALUE | ( | Value | ) | Value |
Definition at line 441 of file oct-tex-parser.cc.
#define YY_NULLPTR ((void*)0) |
Definition at line 125 of file oct-tex-parser.cc.
#define YY_OCTAVE_TEX_LIBINTERP_COREFCN_OCT_TEX_PARSER_H_INCLUDED |
Definition at line 132 of file oct-tex-parser.cc.
#define YY_REDUCE_PRINT | ( | Rule | ) |
Definition at line 975 of file oct-tex-parser.cc.
#define YY_REINTERPRET_CAST | ( | Type, | |
Val | |||
) | ((Type) (Val)) |
Definition at line 114 of file oct-tex-parser.cc.
#define YY_STACK_PRINT | ( | Bottom, | |
Top | |||
) |
Definition at line 974 of file oct-tex-parser.cc.
#define YY_SYMBOL_PRINT | ( | Title, | |
Kind, | |||
Value, | |||
Location | |||
) |
Definition at line 973 of file oct-tex-parser.cc.
#define YY_USE | ( | E | ) | ((void) (E)) |
Definition at line 427 of file oct-tex-parser.cc.
#define YYABORT goto yyabortlab |
Definition at line 816 of file oct-tex-parser.cc.
#define YYACCEPT goto yyacceptlab |
Definition at line 815 of file oct-tex-parser.cc.
#define yyalloc octave_tex_yyalloc |
Definition at line 94 of file oct-tex-parser.cc.
#define YYBACKUP | ( | Token, | |
Value | |||
) |
Definition at line 822 of file oct-tex-parser.cc.
#define YYBISON 30705 |
Definition at line 49 of file oct-tex-parser.cc.
#define YYBISON_VERSION "3.7.5" |
Definition at line 52 of file oct-tex-parser.cc.
#define yyclearin (yychar = OCTAVE_TEX_EMPTY) |
Definition at line 813 of file oct-tex-parser.cc.
#define YYCOPY | ( | Dst, | |
Src, | |||
Count | |||
) |
Definition at line 581 of file oct-tex-parser.cc.
#define YYCOPY_NEEDED 1 |
Definition at line 553 of file oct-tex-parser.cc.
#define yydebug octave_tex_debug |
Definition at line 72 of file oct-tex-parser.cc.
#define YYDEBUG 1 |
Definition at line 79 of file oct-tex-parser.cc.
#define YYDPRINTF | ( | Args | ) | ((void) 0) |
Definition at line 972 of file oct-tex-parser.cc.
#define YYERRCODE OCTAVE_TEX_UNDEF |
Definition at line 841 of file oct-tex-parser.cc.
#define yyerrok (yyerrstatus = 0) |
Definition at line 812 of file oct-tex-parser.cc.
#define yyerror octave_tex_error |
Definition at line 71 of file oct-tex-parser.cc.
#define YYERROR goto yyerrorlab |
Definition at line 817 of file oct-tex-parser.cc.
#define YYFINAL 43 |
Definition at line 594 of file oct-tex-parser.cc.
#define YYFREE free |
Definition at line 525 of file oct-tex-parser.cc.
#define YYINITDEPTH 200 |
Definition at line 981 of file oct-tex-parser.cc.
#define YYLAST 81 |
Definition at line 596 of file oct-tex-parser.cc.
#define yylex octave_tex_lex |
Definition at line 70 of file oct-tex-parser.cc.
#define YYMALLOC malloc |
Definition at line 519 of file oct-tex-parser.cc.
#define YYMAXDEPTH 10000 |
Definition at line 992 of file oct-tex-parser.cc.
#define YYMAXUTOK 274 |
Definition at line 608 of file oct-tex-parser.cc.
#define yynerrs octave_tex_nerrs |
Definition at line 73 of file oct-tex-parser.cc.
#define YYNNTS 14 |
Definition at line 601 of file oct-tex-parser.cc.
#define YYNRULES 36 |
Definition at line 603 of file oct-tex-parser.cc.
#define YYNSTATES 55 |
Definition at line 605 of file oct-tex-parser.cc.
#define YYNTOKENS 20 |
Definition at line 599 of file oct-tex-parser.cc.
#define YYPACT_NINF (-4) |
Definition at line 701 of file oct-tex-parser.cc.
#define yypact_value_is_default | ( | Yyn | ) | ((Yyn) == YYPACT_NINF) |
Definition at line 703 of file oct-tex-parser.cc.
#define yyparse octave_tex_parse |
Definition at line 69 of file oct-tex-parser.cc.
#define YYPTRDIFF_MAXIMUM LONG_MAX |
Definition at line 364 of file oct-tex-parser.cc.
#define YYPTRDIFF_T long |
Definition at line 363 of file oct-tex-parser.cc.
#define YYPULL 1 |
Definition at line 64 of file oct-tex-parser.cc.
#define YYPURE 1 |
Definition at line 58 of file oct-tex-parser.cc.
#define YYPUSH 0 |
Definition at line 61 of file oct-tex-parser.cc.
#define YYRECOVERING | ( | ) | (!!yyerrstatus) |
Definition at line 820 of file oct-tex-parser.cc.
#define YYSIZE_MAXIMUM |
Definition at line 381 of file oct-tex-parser.cc.
#define YYSIZE_T unsigned |
Definition at line 377 of file oct-tex-parser.cc.
#define YYSIZEOF | ( | X | ) | YY_CAST (YYPTRDIFF_T, sizeof (X)) |
Definition at line 387 of file oct-tex-parser.cc.
#define YYSKELETON_NAME "yacc.c" |
Definition at line 55 of file oct-tex-parser.cc.
#define YYSTACK_ALLOC YYMALLOC |
Definition at line 505 of file oct-tex-parser.cc.
#define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
Definition at line 508 of file oct-tex-parser.cc.
#define YYSTACK_BYTES | ( | N | ) |
Definition at line 549 of file oct-tex-parser.cc.
#define YYSTACK_FREE YYFREE |
Definition at line 506 of file oct-tex-parser.cc.
Definition at line 545 of file oct-tex-parser.cc.
#define YYSTACK_RELOCATE | ( | Stack_alloc, | |
Stack | |||
) |
Definition at line 560 of file oct-tex-parser.cc.
#define YYSTYPE OCTAVE_TEX_STYPE |
Definition at line 67 of file oct-tex-parser.cc.
#define YYTABLE_NINF (-1) |
Definition at line 706 of file oct-tex-parser.cc.
#define yytable_value_is_error | ( | Yyn | ) | 0 |
Definition at line 708 of file oct-tex-parser.cc.
#define YYTRANSLATE | ( | YYX | ) |
Definition at line 613 of file oct-tex-parser.cc.
typedef int yy_state_fast_t |
Definition at line 394 of file oct-tex-parser.cc.
typedef yytype_int8 yy_state_t |
Definition at line 391 of file oct-tex-parser.cc.
typedef enum yysymbol_kind_t yysymbol_kind_t |
Definition at line 234 of file oct-tex-parser.cc.
typedef short yytype_int16 |
Definition at line 315 of file oct-tex-parser.cc.
typedef signed char yytype_int8 |
Definition at line 307 of file oct-tex-parser.cc.
typedef unsigned short yytype_uint16 |
Definition at line 347 of file oct-tex-parser.cc.
typedef unsigned char yytype_uint8 |
Definition at line 336 of file oct-tex-parser.cc.
anonymous enum |
Enumerator | |
---|---|
YYENOMEM |
Definition at line 810 of file oct-tex-parser.cc.
enum yysymbol_kind_t |
Definition at line 238 of file oct-tex-parser.cc.
void free | ( | void * | ) |
Referenced by octave::regexp::~regexp(), octave::base64_decode(), octave::sys::canonicalize_file_name(), octave::file_editor_tab::check_valid_codec(), octave::sys::env::do_get_user_config_directory(), F__native2unicode__(), F__unicode2native__(), Famd(), Fbase64_encode(), Fcsymamd(), Ffftw(), Fsymamd(), octave::sys::getcwd(), main(), octave_async_system_wrapper(), octave_chdir_wrapper(), octave_destroy_glob_info_struct(), octave_execv_wrapper(), octave_fgets(), octave_free(), octave_free_signal_mask(), octave_getcwd_wrapper(), octave_getopt_long_wrapper(), octave_lstat_wrapper(), octave_mkdir_wrapper(), octave_rmdir_wrapper(), octave_stat_wrapper(), octave_tex_free(), octave_unblock_child(), octave_unlink_wrapper(), octave::popen(), octave::sys::putenv_wrapper(), octave::sys::readlink(), octave::string::u8_from_encoding(), u8_from_wchar(), octave::sys::u8_from_wstring(), octave::string::u8_to_encoding(), u8_to_wchar(), octave::sys::u8_to_wstring(), octave::string::u8_validate(), octave::vasprintf(), and xfree().
void* malloc | ( | unsigned | ) |
Referenced by Famd(), make_option_struct(), mxArray::malloc(), mex::malloc_unmarked(), mxMalloc(), octave_alloc(), octave_alloc_signal_mask(), octave_async_system_wrapper(), octave_block_child(), octave_create_glob_info_struct(), octave_fgets(), octave_tex_alloc(), octave::sys::putenv_wrapper(), u8_from_wchar(), and u8_to_wchar().
|
static |
Definition at line 1771 of file oct-tex-parser.cc.
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 BEGIN, BF, CH, COLOR, COLOR_RGB, ECHO, END, EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, FONTNAME, FONTSIZE, INITIAL, IT, MAYBE_NUM_MODE, NUM, NUM_MODE, RM, SL, START, SUB, SUPER, SYM, yy_accept, yy_base, YY_BREAK, YY_BUF_SIZE, YY_BUFFER_NEW, YY_BUFFER_NORMAL, yyguts_t::yy_c_buf_p, yy_chk, yy_create_buffer, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_def, yyguts_t::yy_did_buffer_switch_on_eof, YY_DO_BEFORE_ACTION, yy_ec, YY_END_OF_BUFFER, YY_FATAL_ERROR, yy_get_next_buffer(), yy_get_previous_state(), yyguts_t::yy_hold_char, yyguts_t::yy_init, yyguts_t::yy_last_accepting_cpos, yyguts_t::yy_last_accepting_state, yy_load_buffer_state, yy_meta, YY_MORE_ADJ, yyguts_t::yy_n_chars, YY_NEW_FILE, yy_nxt, YY_RESTORE_YY_MORE_OFFSET, YY_RULE_SETUP, YY_SC_TO_UI, YY_START, yyguts_t::yy_start, YY_STATE_EOF, yy_try_NUL_trans(), yyensure_buffer_stack, yyin, yyless, yylval, yyout, yyterminate, yytext, and yywrap.
int octave_tex_parse | ( | octave::text_parser_tex & | parser | ) |
Definition at line 1123 of file oct-tex-parser.cc.
References octave::text_element_fontstyle::bold, octave::text_element_fontstyle::italic, octave::text_element_fontstyle::normal, octave::text_element_fontstyle::oblique, OCTAVE_TEX_EMPTY, OCTAVE_TEX_EOF, OCTAVE_TEX_error, OCTAVE_TEX_UNDEF, scanner, octave::text_parser_tex::set_parse_result(), YY_, YY_ACCESSING_SYMBOL, YY_ASSERT, YY_CAST, YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN, YY_IGNORE_MAYBE_UNINITIALIZED_END, YY_IGNORE_USELESS_CAST_BEGIN, YY_IGNORE_USELESS_CAST_END, YY_INITIAL_VALUE, YY_REDUCE_PRINT, YY_STACK_PRINT, YY_SYMBOL_PRINT, YYABORT, YYACCEPT, yyalloc, yycheck, yydefact, yydefgoto, yydestruct(), YYDPRINTF, yyerror, YYERROR, yyerrstatus, YYFINAL, YYINITDEPTH, YYLAST, yylex, yylval, YYMAXDEPTH, yynerrs, YYNSTATES, YYNTOKENS, yypact, yypact_value_is_default, yypgoto, YYPOPSTACK, YYPTRDIFF_T, yyr1, yyr2, YYSIZE_T, YYSIZEOF, yyss, yyssa, yyssp, YYSTACK_ALLOC, YYSTACK_BYTES, YYSTACK_FREE, YYSTACK_RELOCATE, yystacksize, yystate, YYSTYPE, YYSYMBOL_YYEMPTY, YYSYMBOL_YYEOF, YYSYMBOL_YYerror, yytable, yytable_value_is_error, YYTRANSLATE, yyvs, yyvsa, and yyvsp.
Referenced by octave::text_parser_tex::parse().
|
static |
Definition at line 1005 of file oct-tex-parser.cc.
References YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN, YY_IGNORE_MAYBE_UNINITIALIZED_END, YY_SYMBOL_PRINT, YY_USE, YYSYMBOL_CH, YYSYMBOL_color_element, YYSYMBOL_combined_script_element, YYSYMBOL_font_modifier_element, YYSYMBOL_fontname_element, YYSYMBOL_fontsize_element, YYSYMBOL_NUM, YYSYMBOL_scoped_string_element_list, YYSYMBOL_simple_string, YYSYMBOL_string_element, YYSYMBOL_string_element_list, YYSYMBOL_subscript_element, YYSYMBOL_superscript_element, YYSYMBOL_SYM, and YYSYMBOL_symbol_element.
Referenced by octave_tex_parse().
|
static |
Definition at line 766 of file oct-tex-parser.cc.
Referenced by octave_tex_parse().
|
static |
Definition at line 726 of file oct-tex-parser.cc.
Referenced by octave_tex_parse().
|
static |
Definition at line 744 of file oct-tex-parser.cc.
Referenced by octave_tex_parse().
|
static |
Definition at line 713 of file oct-tex-parser.cc.
Referenced by octave_tex_parse().
|
static |
Definition at line 737 of file oct-tex-parser.cc.
Referenced by octave_tex_parse().
|
static |
Definition at line 792 of file oct-tex-parser.cc.
Referenced by octave_tex_parse().
|
static |
Definition at line 801 of file oct-tex-parser.cc.
Referenced by octave_tex_parse().
|
static |
Definition at line 781 of file oct-tex-parser.cc.
|
static |
Definition at line 753 of file oct-tex-parser.cc.
Referenced by octave_tex_parse().
|
static |
Definition at line 620 of file oct-tex-parser.cc.