28#if defined (HAVE_CONFIG_H)
32#if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC)
34# pragma GCC diagnostic ignored "-Wunused-function"
39# pragma GCC diagnostic push
40# pragma GCC diagnostic ignored "-Wold-style-cast"
41# pragma GCC diagnostic ignored "-Wsign-compare"
42# pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
47#if ! defined (register)
51#line 52 "libinterp/corefcn/oct-tex-lexer.cc"
53#define YY_INT_ALIGNED short int
58#define YY_FLEX_MAJOR_VERSION 2
59#define YY_FLEX_MINOR_VERSION 6
60#define YY_FLEX_SUBMINOR_VERSION 4
61#if YY_FLEX_SUBMINOR_VERSION > 0
65#ifdef yy_create_buffer
66#define octave_tex__create_buffer_ALREADY_DEFINED
68#define yy_create_buffer octave_tex__create_buffer
71#ifdef yy_delete_buffer
72#define octave_tex__delete_buffer_ALREADY_DEFINED
74#define yy_delete_buffer octave_tex__delete_buffer
78#define octave_tex__scan_buffer_ALREADY_DEFINED
80#define yy_scan_buffer octave_tex__scan_buffer
84#define octave_tex__scan_string_ALREADY_DEFINED
86#define yy_scan_string octave_tex__scan_string
90#define octave_tex__scan_bytes_ALREADY_DEFINED
92#define yy_scan_bytes octave_tex__scan_bytes
96#define octave_tex__init_buffer_ALREADY_DEFINED
98#define yy_init_buffer octave_tex__init_buffer
101#ifdef yy_flush_buffer
102#define octave_tex__flush_buffer_ALREADY_DEFINED
104#define yy_flush_buffer octave_tex__flush_buffer
107#ifdef yy_load_buffer_state
108#define octave_tex__load_buffer_state_ALREADY_DEFINED
110#define yy_load_buffer_state octave_tex__load_buffer_state
113#ifdef yy_switch_to_buffer
114#define octave_tex__switch_to_buffer_ALREADY_DEFINED
116#define yy_switch_to_buffer octave_tex__switch_to_buffer
119#ifdef yypush_buffer_state
120#define octave_tex_push_buffer_state_ALREADY_DEFINED
122#define yypush_buffer_state octave_tex_push_buffer_state
125#ifdef yypop_buffer_state
126#define octave_tex_pop_buffer_state_ALREADY_DEFINED
128#define yypop_buffer_state octave_tex_pop_buffer_state
131#ifdef yyensure_buffer_stack
132#define octave_tex_ensure_buffer_stack_ALREADY_DEFINED
134#define yyensure_buffer_stack octave_tex_ensure_buffer_stack
138#define octave_tex_lex_ALREADY_DEFINED
140#define yylex octave_tex_lex
144#define octave_tex_restart_ALREADY_DEFINED
146#define yyrestart octave_tex_restart
150#define octave_tex_lex_init_ALREADY_DEFINED
152#define yylex_init octave_tex_lex_init
155#ifdef yylex_init_extra
156#define octave_tex_lex_init_extra_ALREADY_DEFINED
158#define yylex_init_extra octave_tex_lex_init_extra
162#define octave_tex_lex_destroy_ALREADY_DEFINED
164#define yylex_destroy octave_tex_lex_destroy
168#define octave_tex_get_debug_ALREADY_DEFINED
170#define yyget_debug octave_tex_get_debug
174#define octave_tex_set_debug_ALREADY_DEFINED
176#define yyset_debug octave_tex_set_debug
180#define octave_tex_get_extra_ALREADY_DEFINED
182#define yyget_extra octave_tex_get_extra
186#define octave_tex_set_extra_ALREADY_DEFINED
188#define yyset_extra octave_tex_set_extra
192#define octave_tex_get_in_ALREADY_DEFINED
194#define yyget_in octave_tex_get_in
198#define octave_tex_set_in_ALREADY_DEFINED
200#define yyset_in octave_tex_set_in
204#define octave_tex_get_out_ALREADY_DEFINED
206#define yyget_out octave_tex_get_out
210#define octave_tex_set_out_ALREADY_DEFINED
212#define yyset_out octave_tex_set_out
216#define octave_tex_get_leng_ALREADY_DEFINED
218#define yyget_leng octave_tex_get_leng
222#define octave_tex_get_text_ALREADY_DEFINED
224#define yyget_text octave_tex_get_text
228#define octave_tex_get_lineno_ALREADY_DEFINED
230#define yyget_lineno octave_tex_get_lineno
234#define octave_tex_set_lineno_ALREADY_DEFINED
236#define yyset_lineno octave_tex_set_lineno
240#define octave_tex_get_column_ALREADY_DEFINED
242#define yyget_column octave_tex_get_column
246#define octave_tex_set_column_ALREADY_DEFINED
248#define yyset_column octave_tex_set_column
252#define octave_tex_wrap_ALREADY_DEFINED
254#define yywrap octave_tex_wrap
258#define octave_tex_get_lval_ALREADY_DEFINED
260#define yyget_lval octave_tex_get_lval
264#define octave_tex_set_lval_ALREADY_DEFINED
266#define yyset_lval octave_tex_set_lval
270#define octave_tex_alloc_ALREADY_DEFINED
272#define yyalloc octave_tex_alloc
276#define octave_tex_realloc_ALREADY_DEFINED
278#define yyrealloc octave_tex_realloc
282#define octave_tex_free_ALREADY_DEFINED
284#define yyfree octave_tex_free
304#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
309#ifndef __STDC_LIMIT_MACROS
310#define __STDC_LIMIT_MACROS 1
330#define INT8_MIN (-128)
333#define INT16_MIN (-32767-1)
336#define INT32_MIN (-2147483647-1)
339#define INT8_MAX (127)
342#define INT16_MAX (32767)
345#define INT32_MAX (2147483647)
348#define UINT8_MAX (255U)
351#define UINT16_MAX (65535U)
354#define UINT32_MAX (4294967295U)
358#define SIZE_MAX (~(size_t)0)
370#if defined(__GNUC__) && __GNUC__ >= 3
371#define yynoreturn __attribute__((__noreturn__))
382#define YY_SC_TO_UI(c) ((YY_CHAR) (c))
385#ifndef YY_TYPEDEF_YY_SCANNER_T
386#define YY_TYPEDEF_YY_SCANNER_T
392#define yyin yyg->yyin_r
393#define yyout yyg->yyout_r
394#define yyextra yyg->yyextra_r
395#define yyleng yyg->yyleng_r
396#define yytext yyg->yytext_r
397#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
398#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
399#define yy_flex_debug yyg->yy_flex_debug_r
405#define BEGIN yyg->yy_start = 1 + 2 *
410#define YY_START ((yyg->yy_start - 1) / 2)
411#define YYSTATE YY_START
413#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
415#define YY_NEW_FILE yyrestart( yyin , yyscanner )
416#define YY_END_OF_BUFFER_CHAR 0
425#define YY_BUF_SIZE 32768
427#define YY_BUF_SIZE 16384
433#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
435#ifndef YY_TYPEDEF_YY_BUFFER_STATE
436#define YY_TYPEDEF_YY_BUFFER_STATE
440#ifndef YY_TYPEDEF_YY_SIZE_T
441#define YY_TYPEDEF_YY_SIZE_T
445#define EOB_ACT_CONTINUE_SCAN 0
446#define EOB_ACT_END_OF_FILE 1
447#define EOB_ACT_LAST_MATCH 2
449 #define YY_LESS_LINENO(n)
450 #define YY_LINENO_REWIND_TO(ptr)
457 int yyless_macro_arg = (n); \
458 YY_LESS_LINENO(yyless_macro_arg);\
459 *yy_cp = yyg->yy_hold_char; \
460 YY_RESTORE_YY_MORE_OFFSET \
461 yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
462 YY_DO_BEFORE_ACTION; \
465#define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner )
467#ifndef YY_STRUCT_YY_BUFFER_STATE
468#define YY_STRUCT_YY_BUFFER_STATE
469struct yy_buffer_state
490 int yy_is_our_buffer;
497 int yy_is_interactive;
513 int yy_buffer_status;
515#define YY_BUFFER_NEW 0
516#define YY_BUFFER_NORMAL 1
527#define YY_BUFFER_EOF_PENDING 2
538#define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \
539 ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
544#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
557#define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER , yyscanner)
567#define yy_new_buffer yy_create_buffer
568#define yy_set_interactive(is_interactive) \
570 if ( ! YY_CURRENT_BUFFER ){ \
571 yyensure_buffer_stack (yyscanner); \
572 YY_CURRENT_BUFFER_LVALUE = \
573 yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); \
575 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
577#define yy_set_bol(at_bol) \
579 if ( ! YY_CURRENT_BUFFER ){\
580 yyensure_buffer_stack (yyscanner); \
581 YY_CURRENT_BUFFER_LVALUE = \
582 yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); \
584 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
586#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
590#define octave_tex_wrap(yyscanner) (1)
591#define YY_SKIP_YYWRAP
596#define yytext_ptr yytext_r
600static int yy_get_next_buffer (
yyscan_t yyscanner );
606#define YY_DO_BEFORE_ACTION \
607 yyg->yytext_ptr = yy_bp; \
608 yyleng = (int) (yy_cp - yy_bp); \
609 yyg->yy_hold_char = *yy_cp; \
611 yyg->yy_c_buf_p = yy_cp;
612#define YY_NUM_RULES 128
613#define YY_END_OF_BUFFER 129
623 0, 0, 0, 0, 0, 0, 129, 127, 126, 127,
624 16, 17, 14, 15, 3, 2, 3, 1, 5, 4,
625 123, 0, 0, 0, 0, 0, 0, 0, 0, 0,
626 0, 0, 22, 20, 21, 0, 0, 0, 0, 0,
627 0, 0, 0, 0, 0, 0, 0, 0, 38, 0,
628 0, 0, 0, 0, 0, 0, 0, 0, 18, 19,
629 2, 1, 1, 1, 0, 0, 64, 0, 0, 0,
630 0, 55, 0, 63, 0, 0, 0, 0, 54, 0,
631 0, 0, 0, 0, 6, 0, 0, 0, 0, 0,
632 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
634 0, 0, 0, 0, 96, 0, 7, 0, 0, 0,
635 0, 0, 0, 0, 35, 0, 0, 100, 36, 0,
636 0, 0, 0, 0, 0, 0, 39, 79, 0, 0,
637 0, 0, 0, 0, 0, 9, 0, 8, 0, 0,
638 0, 0, 0, 0, 0, 0, 0, 62, 37, 0,
639 1, 0, 0, 0, 0, 0, 58, 59, 0, 0,
640 0, 0, 0, 0, 0, 0, 82, 0, 0, 86,
641 0, 47, 0, 0, 0, 0, 0, 87, 125, 0,
642 0, 85, 0, 0, 0, 29, 0, 0, 0, 0,
643 97, 0, 0, 78, 0, 0, 0, 0, 0, 0,
645 0, 93, 0, 101, 0, 73, 121, 0, 0, 0,
646 0, 0, 0, 46, 0, 0, 48, 0, 0, 0,
647 41, 0, 0, 103, 0, 0, 0, 0, 44, 0,
648 0, 0, 0, 0, 88, 0, 0, 0, 0, 0,
649 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
650 24, 0, 80, 83, 0, 0, 105, 0, 0, 0,
651 0, 0, 0, 0, 0, 0, 0, 0, 0, 32,
652 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
653 0, 0, 0, 107, 0, 0, 0, 0, 0, 0,
654 0, 0, 0, 0, 69, 0, 0, 0, 0, 0,
656 0, 0, 0, 28, 51, 50, 0, 0, 60, 0,
657 56, 52, 0, 61, 23, 70, 0, 0, 0, 13,
658 0, 26, 0, 0, 0, 102, 0, 0, 0, 0,
659 25, 0, 66, 33, 0, 0, 117, 122, 0, 0,
660 0, 68, 49, 90, 0, 0, 0, 67, 0, 0,
661 120, 0, 0, 42, 0, 0, 0, 30, 81, 0,
662 0, 40, 0, 0, 89, 53, 0, 0, 0, 104,
663 84, 0, 0, 0, 0, 0, 0, 72, 0, 0,
664 71, 0, 34, 116, 0, 0, 115, 92, 91, 0,
665 106, 119, 118, 0, 0, 94, 98, 0, 0, 0,
667 0, 0, 0, 57, 0, 0, 0, 0, 0, 27,
668 0, 0, 0, 0, 0, 65, 0, 0, 0, 0,
669 113, 45, 0, 0, 0, 0, 74, 0, 0, 0,
670 0, 10, 11, 0, 0, 0, 0, 0, 95, 99,
671 43, 31, 109, 0, 0, 124, 0, 114, 76, 108,
672 0, 0, 77, 111, 12, 0, 0, 110, 75, 0,
676static const YY_CHAR yy_ec[256] =
678 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
679 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
680 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
681 1, 2, 1, 1, 1, 1, 1, 1, 1, 1,
682 1, 1, 1, 2, 1, 4, 1, 5, 6, 6,
683 6, 6, 6, 6, 6, 6, 6, 1, 1, 1,
684 1, 1, 1, 1, 1, 1, 1, 7, 1, 1,
685 8, 1, 9, 1, 1, 10, 1, 1, 11, 12,
686 1, 13, 14, 15, 16, 1, 1, 17, 1, 1,
687 18, 19, 20, 21, 22, 1, 23, 24, 25, 26,
689 27, 28, 29, 30, 31, 1, 32, 33, 34, 35,
690 36, 37, 38, 39, 40, 41, 42, 43, 44, 45,
691 46, 47, 48, 1, 49, 1, 1, 1, 1, 1,
692 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
693 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
694 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
695 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
696 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
697 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
698 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
700 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
701 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
702 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
703 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
704 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
708static const YY_CHAR yy_meta[50] =
710 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
711 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
712 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
713 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
714 1, 1, 1, 1, 1, 1, 1, 1, 1
719 0, 4, 0, 6, 434, 433, 480, 483, 483, 49,
720 483, 483, 483, 483, 483, 477, 8, 11, 483, 483,
721 483, 451, 454, 442, 1, 441, 0, 2, 443, 443,
722 435, 440, 483, 483, 483, 1, 72, 79, 8, 5,
723 434, 24, 442, 72, 445, 97, 64, 103, 95, 110,
724 123, 125, 88, 430, 104, 0, 435, 438, 483, 483,
725 462, 98, 111, 155, 430, 428, 483, 427, 432, 432,
726 427, 483, 426, 483, 427, 426, 427, 413, 483, 18,
727 423, 414, 409, 408, 483, 415, 410, 410, 414, 405,
728 401, 131, 405, 109, 44, 397, 400, 397, 415, 406,
730 104, 402, 397, 411, 124, 392, 483, 395, 135, 404,
731 394, 135, 396, 402, 483, 403, 142, 483, 483, 399,
732 392, 391, 392, 383, 382, 389, 483, 483, 141, 388,
733 383, 390, 383, 379, 385, 483, 145, 483, 390, 151,
734 370, 384, 376, 153, 370, 381, 381, 483, 483, 365,
735 176, 364, 370, 379, 361, 372, 483, 483, 370, 365,
736 357, 366, 359, 365, 361, 354, 483, 369, 358, 483,
737 349, 483, 364, 364, 351, 357, 339, 483, 483, 343,
738 349, 483, 347, 350, 349, 483, 339, 337, 354, 342,
739 483, 336, 333, 483, 350, 335, 347, 341, 338, 327,
741 326, 483, 330, 483, 332, 483, 483, 335, 321, 339,
742 327, 319, 322, 483, 324, 320, 483, 327, 324, 318,
743 483, 323, 318, 483, 325, 310, 309, 322, 483, 306,
744 319, 306, 313, 146, 483, 314, 319, 318, 317, 313,
745 315, 314, 295, 312, 311, 300, 302, 308, 303, 293,
746 483, 301, 483, 483, 287, 287, 483, 286, 301, 287,
747 299, 288, 277, 278, 149, 285, 294, 275, 269, 483,
748 291, 287, 279, 278, 270, 155, 273, 285, 284, 266,
749 265, 277, 272, 483, 275, 260, 267, 266, 262, 256,
750 273, 268, 267, 266, 483, 269, 251, 251, 256, 257,
752 256, 256, 258, 483, 483, 483, 261, 244, 483, 259,
753 483, 483, 245, 483, 483, 483, 235, 238, 236, 259,
754 245, 483, 240, 235, 237, 483, 232, 248, 239, 236,
755 483, 228, 483, 483, 244, 239, 483, 483, 226, 233,
756 224, 483, 483, 483, 232, 221, 237, 483, 223, 231,
757 483, 218, 233, 483, 215, 213, 212, 483, 483, 216,
758 215, 483, 221, 222, 483, 483, 209, 208, 211, 483,
759 483, 214, 205, 214, 216, 202, 205, 483, 205, 191,
760 483, 195, 483, 483, 197, 206, 483, 483, 483, 201,
761 483, 483, 483, 194, 190, 204, 203, 185, 193, 193,
763 185, 189, 185, 483, 182, 193, 191, 180, 183, 483,
764 191, 190, 185, 179, 184, 483, 174, 181, 173, 172,
765 483, 483, 186, 185, 163, 170, 483, 181, 163, 161,
766 158, 483, 483, 160, 156, 158, 162, 156, 483, 483,
767 483, 483, 483, 152, 175, 483, 161, 483, 483, 483,
768 168, 141, 483, 483, 483, 114, 108, 483, 483, 89,
769 65, 25, 483, 483, 17, 8, 0
774 465, 465, 466, 466, 467, 467, 464, 464, 464, 464,
775 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
776 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
777 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
778 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
779 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
780 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
781 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
782 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
783 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
785 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
786 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
787 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
788 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
789 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
790 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
791 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
792 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
793 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
794 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
796 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
797 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
798 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
799 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
800 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
801 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
802 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
803 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
804 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
805 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
807 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
808 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
809 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
810 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
811 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
812 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
813 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
814 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
815 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
816 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
818 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
819 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
820 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
821 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
822 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
823 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
824 464, 464, 464, 0, 464, 464, 464
829 19, 16, 9, 17, 18, 18, 9, 16, 15, 17,
830 18, 18, 62, 62, 63, 64, 64, 8, 10, 464,
831 11, 12, 10, 68, 11, 12, 147, 69, 74, 71,
832 72, 464, 75, 80, 94, 81, 148, 82, 95, 73,
833 83, 97, 98, 96, 163, 99, 102, 13, 14, 100,
834 103, 13, 14, 21, 164, 22, 23, 24, 25, 26,
835 27, 28, 29, 30, 31, 32, 181, 33, 463, 34,
836 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
837 45, 46, 47, 48, 49, 50, 182, 51, 52, 53,
838 54, 55, 56, 57, 114, 58, 59, 60, 84, 85,
840 462, 87, 62, 62, 88, 115, 105, 106, 89, 90,
841 141, 91, 107, 86, 92, 151, 151, 142, 143, 109,
842 93, 110, 111, 112, 113, 116, 145, 461, 120, 117,
843 146, 121, 124, 118, 122, 123, 125, 179, 188, 126,
844 127, 180, 189, 128, 119, 131, 460, 132, 129, 130,
845 133, 193, 134, 135, 459, 137, 136, 138, 63, 64,
846 64, 139, 201, 175, 194, 176, 140, 177, 197, 198,
847 206, 215, 202, 223, 226, 232, 216, 339, 224, 207,
848 151, 151, 300, 328, 458, 301, 302, 227, 329, 228,
849 457, 456, 233, 340, 455, 454, 453, 452, 451, 450,
851 449, 448, 447, 446, 445, 444, 443, 442, 441, 440,
852 439, 438, 437, 436, 435, 434, 433, 432, 431, 430,
853 429, 428, 427, 426, 425, 424, 423, 422, 421, 420,
854 419, 418, 417, 416, 415, 414, 413, 412, 411, 410,
855 409, 408, 407, 406, 405, 404, 403, 402, 401, 400,
856 399, 398, 397, 396, 395, 394, 393, 392, 391, 390,
857 389, 388, 387, 386, 385, 384, 383, 382, 381, 380,
858 379, 378, 377, 376, 375, 374, 373, 372, 371, 370,
859 369, 368, 367, 366, 365, 364, 363, 362, 361, 360,
860 359, 358, 357, 356, 355, 354, 353, 352, 351, 350,
862 349, 348, 347, 346, 345, 344, 343, 342, 341, 338,
863 337, 336, 335, 334, 333, 332, 331, 330, 327, 326,
864 325, 324, 323, 322, 321, 320, 319, 318, 317, 316,
865 315, 314, 313, 312, 311, 310, 309, 308, 307, 306,
866 305, 304, 303, 299, 298, 297, 296, 295, 294, 293,
867 292, 291, 290, 289, 288, 287, 286, 285, 284, 283,
868 282, 281, 280, 279, 278, 277, 276, 275, 274, 273,
869 272, 271, 270, 269, 268, 267, 266, 265, 264, 263,
870 262, 261, 260, 259, 258, 257, 256, 255, 254, 253,
871 252, 251, 250, 249, 248, 247, 246, 245, 244, 243,
873 242, 241, 240, 239, 238, 237, 236, 235, 234, 231,
874 230, 229, 225, 222, 221, 220, 219, 218, 217, 214,
875 213, 212, 211, 210, 209, 208, 205, 204, 203, 200,
876 199, 196, 195, 192, 191, 190, 187, 186, 185, 184,
877 183, 178, 174, 173, 172, 171, 170, 169, 168, 167,
878 166, 165, 162, 161, 160, 159, 158, 157, 156, 155,
879 154, 153, 152, 61, 150, 149, 144, 108, 104, 101,
880 79, 78, 77, 76, 70, 67, 66, 65, 61, 464,
881 20, 20, 7, 464, 464, 464, 464, 464, 464, 464,
882 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
884 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
885 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
886 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
892 467, 3, 1, 3, 3, 3, 2, 4, 466, 4,
893 4, 4, 17, 17, 18, 18, 18, 465, 1, 0,
894 1, 1, 2, 25, 2, 2, 56, 25, 28, 27,
895 27, 0, 28, 36, 39, 36, 56, 36, 39, 27,
896 36, 40, 40, 39, 80, 40, 42, 1, 1, 40,
897 42, 2, 2, 10, 80, 10, 10, 10, 10, 10,
898 10, 10, 10, 10, 10, 10, 95, 10, 462, 10,
899 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,
900 10, 10, 10, 10, 10, 10, 95, 10, 10, 10,
901 10, 10, 10, 10, 47, 10, 10, 10, 37, 37,
903 461, 38, 62, 62, 38, 47, 44, 44, 38, 38,
904 53, 38, 44, 37, 38, 63, 63, 53, 53, 46,
905 38, 46, 46, 46, 46, 48, 55, 460, 49, 48,
906 55, 49, 50, 48, 49, 49, 50, 94, 101, 50,
907 50, 94, 101, 50, 48, 51, 457, 51, 50, 50,
908 51, 105, 51, 51, 456, 52, 51, 52, 64, 64,
909 64, 52, 112, 92, 105, 92, 52, 92, 109, 109,
910 117, 129, 112, 137, 140, 144, 129, 276, 137, 117,
911 151, 151, 234, 265, 452, 234, 234, 140, 265, 140,
912 451, 447, 144, 276, 445, 444, 438, 437, 436, 435,
914 434, 431, 430, 429, 428, 426, 425, 424, 423, 420,
915 419, 418, 417, 415, 414, 413, 412, 411, 409, 408,
916 407, 406, 405, 403, 402, 401, 400, 399, 398, 397,
917 396, 395, 394, 390, 386, 385, 382, 380, 379, 377,
918 376, 375, 374, 373, 372, 369, 368, 367, 364, 363,
919 361, 360, 357, 356, 355, 353, 352, 350, 349, 347,
920 346, 345, 341, 340, 339, 336, 335, 332, 330, 329,
921 328, 327, 325, 324, 323, 321, 320, 319, 318, 317,
922 313, 310, 308, 307, 303, 302, 301, 300, 299, 298,
923 297, 296, 294, 293, 292, 291, 290, 289, 288, 287,
925 286, 285, 283, 282, 281, 280, 279, 278, 277, 275,
926 274, 273, 272, 271, 269, 268, 267, 266, 264, 263,
927 262, 261, 260, 259, 258, 256, 255, 252, 250, 249,
928 248, 247, 246, 245, 244, 243, 242, 241, 240, 239,
929 238, 237, 236, 233, 232, 231, 230, 228, 227, 226,
930 225, 223, 222, 220, 219, 218, 216, 215, 213, 212,
931 211, 210, 209, 208, 205, 203, 201, 200, 199, 198,
932 197, 196, 195, 193, 192, 190, 189, 188, 187, 185,
933 184, 183, 181, 180, 177, 176, 175, 174, 173, 171,
934 169, 168, 166, 165, 164, 163, 162, 161, 160, 159,
936 156, 155, 154, 153, 152, 150, 147, 146, 145, 143,
937 142, 141, 139, 135, 134, 133, 132, 131, 130, 126,
938 125, 124, 123, 122, 121, 120, 116, 114, 113, 111,
939 110, 108, 106, 104, 103, 102, 100, 99, 98, 97,
940 96, 93, 91, 90, 89, 88, 87, 86, 84, 83,
941 82, 81, 78, 77, 76, 75, 73, 71, 70, 69,
942 68, 66, 65, 61, 58, 57, 54, 45, 43, 41,
943 32, 31, 30, 29, 26, 24, 23, 22, 16, 7,
944 6, 5, 464, 464, 464, 464, 464, 464, 464, 464,
945 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
947 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
948 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
949 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
956#define REJECT reject_used_but_not_detected
957#define yymore() yymore_used_but_not_detected
959#define YY_RESTORE_YY_MORE_OFFSET
960#line 1 "libinterp/corefcn/oct-tex-lexer.ll"
965#line 68 "libinterp/corefcn/oct-tex-lexer.ll"
980#if defined (OCTAVE_TEX_STYPE_IS_DECLARED) && ! defined YYSTYPE
981# define YYSTYPE OCTAVE_TEX_STYPE
984#define YY_NO_UNISTD_H 1
985#define isatty octave_isatty_wrapper
986#define yyguts_t octave_tex_yyguts_t
988#line 989 "libinterp/corefcn/oct-tex-lexer.cc"
989#line 990 "libinterp/corefcn/oct-tex-lexer.cc"
993#define MAYBE_NUM_MODE 2
995#ifndef YY_NO_UNISTD_H
1003#ifndef YY_EXTRA_TYPE
1004#define YY_EXTRA_TYPE void *
1015 FILE *yyin_r, *yyout_r;
1016 size_t yy_buffer_stack_top;
1017 size_t yy_buffer_stack_max;
1025 int yy_did_buffer_switch_on_eof;
1026 int yy_start_stack_ptr;
1027 int yy_start_stack_depth;
1028 int *yy_start_stack;
1030 char* yy_last_accepting_cpos;
1033 int yy_flex_debug_r;
1043static int yy_init_globals (
yyscan_t yyscanner );
1047 # define yylval yyg->yylval_r
1094#ifndef YY_SKIP_YYWRAP
1104 static void yyunput (
int c,
char *buf_ptr ,
yyscan_t yyscanner);
1109static void yy_flex_strncpy (
char *,
const char *,
int ,
yyscan_t yyscanner);
1112#ifdef YY_NEED_STRLEN
1113static int yy_flex_strlen (
const char * ,
yyscan_t yyscanner);
1118static int yyinput (
yyscan_t yyscanner );
1120static int input (
yyscan_t yyscanner );
1126#ifndef YY_READ_BUF_SIZE
1129#define YY_READ_BUF_SIZE 16384
1131#define YY_READ_BUF_SIZE 8192
1140#define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
1147#define YY_INPUT(buf,result,max_size) \
1148 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
1152 for ( n = 0; n < max_size && \
1153 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
1154 buf[n] = (char) c; \
1156 buf[n++] = (char) c; \
1157 if ( c == EOF && ferror( yyin ) ) \
1158 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1164 while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
1166 if( errno != EINTR) \
1168 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1184#define yyterminate() return YY_NULL
1188#ifndef YY_START_STACK_INCR
1189#define YY_START_STACK_INCR 25
1193#ifndef YY_FATAL_ERROR
1194#define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner)
1203#define YY_DECL_IS_OURS 1
1208#define YY_DECL int yylex \
1209 (YYSTYPE * yylval_param , yyscan_t yyscanner)
1215#ifndef YY_USER_ACTION
1216#define YY_USER_ACTION
1221#define YY_BREAK break;
1224#define YY_RULE_SETUP \
1232 char *yy_cp, *yy_bp;
1238 if ( !yyg->yy_init )
1246 if ( ! yyg->yy_start )
1265#line 95 "libinterp/corefcn/oct-tex-lexer.ll"
1269#line 99 "libinterp/corefcn/oct-tex-lexer.ll"
1273#line 1274 "libinterp/corefcn/oct-tex-lexer.cc"
1277 yy_cp = yyg->yy_c_buf_p;
1280 *yy_cp = yyg->yy_hold_char;
1287 yy_current_state = yyg->yy_start;
1292 if ( yy_accept[yy_current_state] )
1294 yyg->yy_last_accepting_state = yy_current_state;
1295 yyg->yy_last_accepting_cpos = yy_cp;
1297 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1299 yy_current_state = (
int) yy_def[yy_current_state];
1300 if ( yy_current_state >= 465 )
1301 yy_c = yy_meta[yy_c];
1303 yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1306 while ( yy_base[yy_current_state] != 483 );
1309 yy_act = yy_accept[yy_current_state];
1312 yy_cp = yyg->yy_last_accepting_cpos;
1313 yy_current_state = yyg->yy_last_accepting_state;
1314 yy_act = yy_accept[yy_current_state];
1325 *yy_cp = yyg->yy_hold_char;
1326 yy_cp = yyg->yy_last_accepting_cpos;
1327 yy_current_state = yyg->yy_last_accepting_state;
1328 goto yy_find_action;
1332#line 102 "libinterp/corefcn/oct-tex-lexer.ll"
1342#line 109 "libinterp/corefcn/oct-tex-lexer.ll"
1348#line 111 "libinterp/corefcn/oct-tex-lexer.ll"
1356#line 116 "libinterp/corefcn/oct-tex-lexer.ll"
1365#line 121 "libinterp/corefcn/oct-tex-lexer.ll"
1376#line 130 "libinterp/corefcn/oct-tex-lexer.ll"
1381#line 131 "libinterp/corefcn/oct-tex-lexer.ll"
1386#line 132 "libinterp/corefcn/oct-tex-lexer.ll"
1391#line 133 "libinterp/corefcn/oct-tex-lexer.ll"
1399#line 139 "libinterp/corefcn/oct-tex-lexer.ll"
1404#line 141 "libinterp/corefcn/oct-tex-lexer.ll"
1412#line 146 "libinterp/corefcn/oct-tex-lexer.ll"
1420#line 151 "libinterp/corefcn/oct-tex-lexer.ll"
1428#line 157 "libinterp/corefcn/oct-tex-lexer.ll"
1433#line 158 "libinterp/corefcn/oct-tex-lexer.ll"
1438#line 159 "libinterp/corefcn/oct-tex-lexer.ll"
1443#line 160 "libinterp/corefcn/oct-tex-lexer.ll"
1447#line 163 "libinterp/corefcn/oct-tex-lexer.ll"
1449#line 164 "libinterp/corefcn/oct-tex-lexer.ll"
1451#line 165 "libinterp/corefcn/oct-tex-lexer.ll"
1453#line 166 "libinterp/corefcn/oct-tex-lexer.ll"
1456#line 166 "libinterp/corefcn/oct-tex-lexer.ll"
1467#line 175 "libinterp/corefcn/oct-tex-lexer.ll"
1472#line 176 "libinterp/corefcn/oct-tex-lexer.ll"
1477#line 177 "libinterp/corefcn/oct-tex-lexer.ll"
1482#line 178 "libinterp/corefcn/oct-tex-lexer.ll"
1487#line 179 "libinterp/corefcn/oct-tex-lexer.ll"
1492#line 180 "libinterp/corefcn/oct-tex-lexer.ll"
1497#line 181 "libinterp/corefcn/oct-tex-lexer.ll"
1502#line 182 "libinterp/corefcn/oct-tex-lexer.ll"
1507#line 183 "libinterp/corefcn/oct-tex-lexer.ll"
1512#line 184 "libinterp/corefcn/oct-tex-lexer.ll"
1517#line 185 "libinterp/corefcn/oct-tex-lexer.ll"
1522#line 186 "libinterp/corefcn/oct-tex-lexer.ll"
1527#line 187 "libinterp/corefcn/oct-tex-lexer.ll"
1532#line 188 "libinterp/corefcn/oct-tex-lexer.ll"
1537#line 189 "libinterp/corefcn/oct-tex-lexer.ll"
1542#line 190 "libinterp/corefcn/oct-tex-lexer.ll"
1547#line 191 "libinterp/corefcn/oct-tex-lexer.ll"
1552#line 192 "libinterp/corefcn/oct-tex-lexer.ll"
1557#line 193 "libinterp/corefcn/oct-tex-lexer.ll"
1562#line 194 "libinterp/corefcn/oct-tex-lexer.ll"
1567#line 195 "libinterp/corefcn/oct-tex-lexer.ll"
1572#line 196 "libinterp/corefcn/oct-tex-lexer.ll"
1577#line 197 "libinterp/corefcn/oct-tex-lexer.ll"
1582#line 198 "libinterp/corefcn/oct-tex-lexer.ll"
1587#line 199 "libinterp/corefcn/oct-tex-lexer.ll"
1592#line 200 "libinterp/corefcn/oct-tex-lexer.ll"
1597#line 201 "libinterp/corefcn/oct-tex-lexer.ll"
1602#line 202 "libinterp/corefcn/oct-tex-lexer.ll"
1607#line 203 "libinterp/corefcn/oct-tex-lexer.ll"
1612#line 204 "libinterp/corefcn/oct-tex-lexer.ll"
1617#line 205 "libinterp/corefcn/oct-tex-lexer.ll"
1622#line 206 "libinterp/corefcn/oct-tex-lexer.ll"
1627#line 207 "libinterp/corefcn/oct-tex-lexer.ll"
1632#line 208 "libinterp/corefcn/oct-tex-lexer.ll"
1637#line 209 "libinterp/corefcn/oct-tex-lexer.ll"
1642#line 210 "libinterp/corefcn/oct-tex-lexer.ll"
1647#line 211 "libinterp/corefcn/oct-tex-lexer.ll"
1652#line 212 "libinterp/corefcn/oct-tex-lexer.ll"
1657#line 213 "libinterp/corefcn/oct-tex-lexer.ll"
1662#line 214 "libinterp/corefcn/oct-tex-lexer.ll"
1667#line 215 "libinterp/corefcn/oct-tex-lexer.ll"
1672#line 216 "libinterp/corefcn/oct-tex-lexer.ll"
1677#line 217 "libinterp/corefcn/oct-tex-lexer.ll"
1682#line 218 "libinterp/corefcn/oct-tex-lexer.ll"
1687#line 219 "libinterp/corefcn/oct-tex-lexer.ll"
1692#line 220 "libinterp/corefcn/oct-tex-lexer.ll"
1697#line 221 "libinterp/corefcn/oct-tex-lexer.ll"
1702#line 222 "libinterp/corefcn/oct-tex-lexer.ll"
1707#line 223 "libinterp/corefcn/oct-tex-lexer.ll"
1712#line 224 "libinterp/corefcn/oct-tex-lexer.ll"
1717#line 225 "libinterp/corefcn/oct-tex-lexer.ll"
1722#line 226 "libinterp/corefcn/oct-tex-lexer.ll"
1727#line 227 "libinterp/corefcn/oct-tex-lexer.ll"
1732#line 228 "libinterp/corefcn/oct-tex-lexer.ll"
1737#line 229 "libinterp/corefcn/oct-tex-lexer.ll"
1742#line 230 "libinterp/corefcn/oct-tex-lexer.ll"
1747#line 231 "libinterp/corefcn/oct-tex-lexer.ll"
1752#line 232 "libinterp/corefcn/oct-tex-lexer.ll"
1757#line 233 "libinterp/corefcn/oct-tex-lexer.ll"
1762#line 234 "libinterp/corefcn/oct-tex-lexer.ll"
1767#line 235 "libinterp/corefcn/oct-tex-lexer.ll"
1772#line 236 "libinterp/corefcn/oct-tex-lexer.ll"
1777#line 237 "libinterp/corefcn/oct-tex-lexer.ll"
1782#line 238 "libinterp/corefcn/oct-tex-lexer.ll"
1787#line 239 "libinterp/corefcn/oct-tex-lexer.ll"
1792#line 240 "libinterp/corefcn/oct-tex-lexer.ll"
1797#line 241 "libinterp/corefcn/oct-tex-lexer.ll"
1802#line 242 "libinterp/corefcn/oct-tex-lexer.ll"
1807#line 243 "libinterp/corefcn/oct-tex-lexer.ll"
1812#line 244 "libinterp/corefcn/oct-tex-lexer.ll"
1817#line 245 "libinterp/corefcn/oct-tex-lexer.ll"
1822#line 246 "libinterp/corefcn/oct-tex-lexer.ll"
1827#line 247 "libinterp/corefcn/oct-tex-lexer.ll"
1832#line 248 "libinterp/corefcn/oct-tex-lexer.ll"
1837#line 249 "libinterp/corefcn/oct-tex-lexer.ll"
1842#line 250 "libinterp/corefcn/oct-tex-lexer.ll"
1847#line 251 "libinterp/corefcn/oct-tex-lexer.ll"
1852#line 252 "libinterp/corefcn/oct-tex-lexer.ll"
1857#line 253 "libinterp/corefcn/oct-tex-lexer.ll"
1862#line 254 "libinterp/corefcn/oct-tex-lexer.ll"
1867#line 255 "libinterp/corefcn/oct-tex-lexer.ll"
1872#line 256 "libinterp/corefcn/oct-tex-lexer.ll"
1877#line 257 "libinterp/corefcn/oct-tex-lexer.ll"
1882#line 258 "libinterp/corefcn/oct-tex-lexer.ll"
1887#line 259 "libinterp/corefcn/oct-tex-lexer.ll"
1892#line 260 "libinterp/corefcn/oct-tex-lexer.ll"
1897#line 261 "libinterp/corefcn/oct-tex-lexer.ll"
1902#line 262 "libinterp/corefcn/oct-tex-lexer.ll"
1907#line 263 "libinterp/corefcn/oct-tex-lexer.ll"
1912#line 264 "libinterp/corefcn/oct-tex-lexer.ll"
1917#line 265 "libinterp/corefcn/oct-tex-lexer.ll"
1922#line 266 "libinterp/corefcn/oct-tex-lexer.ll"
1927#line 267 "libinterp/corefcn/oct-tex-lexer.ll"
1932#line 268 "libinterp/corefcn/oct-tex-lexer.ll"
1937#line 269 "libinterp/corefcn/oct-tex-lexer.ll"
1942#line 270 "libinterp/corefcn/oct-tex-lexer.ll"
1947#line 271 "libinterp/corefcn/oct-tex-lexer.ll"
1952#line 272 "libinterp/corefcn/oct-tex-lexer.ll"
1957#line 273 "libinterp/corefcn/oct-tex-lexer.ll"
1962#line 274 "libinterp/corefcn/oct-tex-lexer.ll"
1967#line 275 "libinterp/corefcn/oct-tex-lexer.ll"
1972#line 276 "libinterp/corefcn/oct-tex-lexer.ll"
1977#line 277 "libinterp/corefcn/oct-tex-lexer.ll"
1985#line 284 "libinterp/corefcn/oct-tex-lexer.ll"
1989#line 284 "libinterp/corefcn/oct-tex-lexer.ll"
1996#if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC)
1999# pragma GCC diagnostic ignored "-Wunused-parameter"
2004#line 297 "libinterp/corefcn/oct-tex-lexer.ll"
2007#line 2008 "libinterp/corefcn/oct-tex-lexer.cc"
2016 int yy_amount_of_matched_text = (
int) (yy_cp - yyg->yytext_ptr) - 1;
2019 *yy_cp = yyg->yy_hold_char;
2049 yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text;
2051 yy_current_state = yy_get_previous_state( yyscanner );
2062 yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner);
2066 if ( yy_next_state )
2069 yy_cp = ++yyg->yy_c_buf_p;
2070 yy_current_state = yy_next_state;
2076 yy_cp = yyg->yy_c_buf_p;
2077 goto yy_find_action;
2081 else switch ( yy_get_next_buffer( yyscanner ) )
2085 yyg->yy_did_buffer_switch_on_eof = 0;
2087 if (
yywrap( yyscanner ) )
2106 if ( ! yyg->yy_did_buffer_switch_on_eof )
2114 yyg->yytext_ptr + yy_amount_of_matched_text;
2116 yy_current_state = yy_get_previous_state( yyscanner );
2118 yy_cp = yyg->yy_c_buf_p;
2126 yy_current_state = yy_get_previous_state( yyscanner );
2128 yy_cp = yyg->yy_c_buf_p;
2130 goto yy_find_action;
2137 "fatal flex scanner internal error--no action found" );
2150static int yy_get_next_buffer (
yyscan_t yyscanner)
2154 char *source = yyg->yytext_ptr;
2155 int number_to_move, i;
2160 "fatal flex scanner internal error--end of buffer missed" );
2164 if ( yyg->yy_c_buf_p - yyg->yytext_ptr -
YY_MORE_ADJ == 1 )
2184 number_to_move = (
int) (yyg->yy_c_buf_p - yyg->yytext_ptr - 1);
2186 for ( i = 0; i < number_to_move; ++i )
2187 *(dest++) = *(source++);
2200 while ( num_to_read <= 0 )
2206 int yy_c_buf_p_offset =
2207 (
int) (yyg->yy_c_buf_p - b->yy_ch_buf);
2209 if ( b->yy_is_our_buffer )
2211 int new_size = b->yy_buf_size * 2;
2213 if ( new_size <= 0 )
2214 b->yy_buf_size += b->yy_buf_size / 8;
2216 b->yy_buf_size *= 2;
2218 b->yy_ch_buf = (
char *)
2221 (
yy_size_t) (b->yy_buf_size + 2) , yyscanner );
2225 b->yy_ch_buf = NULL;
2227 if ( ! b->yy_ch_buf )
2229 "fatal error - scanner input buffer overflow" );
2231 yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
2243 yyg->yy_n_chars, num_to_read );
2248 if ( yyg->yy_n_chars == 0 )
2269 int new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1);
2273 YY_FATAL_ERROR(
"out of dynamic memory in yy_get_next_buffer()" );
2278 yyg->yy_n_chars += number_to_move;
2295 yy_current_state = yyg->yy_start;
2297 for ( yy_cp = yyg->yytext_ptr +
YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
2300 if ( yy_accept[yy_current_state] )
2302 yyg->yy_last_accepting_state = yy_current_state;
2303 yyg->yy_last_accepting_cpos = yy_cp;
2305 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2307 yy_current_state = (
int) yy_def[yy_current_state];
2308 if ( yy_current_state >= 465 )
2309 yy_c = yy_meta[yy_c];
2311 yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
2314 return yy_current_state;
2326 char *yy_cp = yyg->yy_c_buf_p;
2329 if ( yy_accept[yy_current_state] )
2331 yyg->yy_last_accepting_state = yy_current_state;
2332 yyg->yy_last_accepting_cpos = yy_cp;
2334 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2336 yy_current_state = (
int) yy_def[yy_current_state];
2337 if ( yy_current_state >= 465 )
2338 yy_c = yy_meta[yy_c];
2340 yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
2341 yy_is_jam = (yy_current_state == 464);
2344 return yy_is_jam ? 0 : yy_current_state;
2349 static void yyunput (
int c,
char * yy_bp ,
yyscan_t yyscanner)
2354 yy_cp = yyg->yy_c_buf_p;
2357 *yy_cp = yyg->yy_hold_char;
2359 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
2362 int number_to_move = yyg->yy_n_chars + 2;
2369 *--dest = *--source;
2371 yy_cp += (
int) (dest - source);
2372 yy_bp += (
int) (dest - source);
2376 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
2380 *--yy_cp = (char) c;
2382 yyg->yytext_ptr = yy_bp;
2383 yyg->yy_hold_char = *yy_cp;
2384 yyg->yy_c_buf_p = yy_cp;
2391 static int yyinput (
yyscan_t yyscanner)
2393 static int input (
yyscan_t yyscanner)
2400 *yyg->yy_c_buf_p = yyg->yy_hold_char;
2410 *yyg->yy_c_buf_p =
'\0';
2414 int offset = (
int) (yyg->yy_c_buf_p - yyg->yytext_ptr);
2417 switch ( yy_get_next_buffer( yyscanner ) )
2437 if (
yywrap( yyscanner ) )
2440 if ( ! yyg->yy_did_buffer_switch_on_eof )
2443 return yyinput(yyscanner);
2445 return input(yyscanner);
2450 yyg->yy_c_buf_p = yyg->yytext_ptr + offset;
2456 c = *(
unsigned char *) yyg->yy_c_buf_p;
2457 *yyg->yy_c_buf_p =
'\0';
2458 yyg->yy_hold_char = *++yyg->yy_c_buf_p;
2503 *yyg->yy_c_buf_p = yyg->yy_hold_char;
2516 yyg->yy_did_buffer_switch_on_eof = 1;
2525 yyg->yy_hold_char = *yyg->yy_c_buf_p;
2542 b->yy_buf_size = size;
2547 b->yy_ch_buf = (
char *)
yyalloc( (
yy_size_t) (b->yy_buf_size + 2) , yyscanner );
2548 if ( ! b->yy_ch_buf )
2551 b->yy_is_our_buffer = 1;
2572 if ( b->yy_is_our_buffer )
2573 yyfree( (
void *) b->yy_ch_buf , yyscanner );
2575 yyfree( (
void *) b , yyscanner );
2590 b->yy_input_file = file;
2591 b->yy_fill_buffer = 1;
2598 b->yy_bs_lineno = 1;
2599 b->yy_bs_column = 0;
2602 b->yy_is_interactive = file ? (
isatty( fileno(file) ) > 0) : 0;
2626 b->yy_buf_pos = &b->yy_ch_buf[0];
2644 if (new_buffer == NULL)
2653 *yyg->yy_c_buf_p = yyg->yy_hold_char;
2660 yyg->yy_buffer_stack_top++;
2665 yyg->yy_did_buffer_switch_on_eof = 1;
2680 if (yyg->yy_buffer_stack_top > 0)
2681 --yyg->yy_buffer_stack_top;
2685 yyg->yy_did_buffer_switch_on_eof = 1;
2697 if (!yyg->yy_buffer_stack) {
2704 yyg->yy_buffer_stack = (
struct yy_buffer_state**)
yyalloc
2705 (num_to_alloc *
sizeof(
struct yy_buffer_state*)
2707 if ( ! yyg->yy_buffer_stack )
2708 YY_FATAL_ERROR(
"out of dynamic memory in yyensure_buffer_stack()" );
2710 memset(yyg->yy_buffer_stack, 0, num_to_alloc *
sizeof(
struct yy_buffer_state*));
2712 yyg->yy_buffer_stack_max = num_to_alloc;
2713 yyg->yy_buffer_stack_top = 0;
2717 if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1){
2722 num_to_alloc = yyg->yy_buffer_stack_max + grow_size;
2723 yyg->yy_buffer_stack = (
struct yy_buffer_state**)
yyrealloc
2724 (yyg->yy_buffer_stack,
2725 num_to_alloc *
sizeof(
struct yy_buffer_state*)
2727 if ( ! yyg->yy_buffer_stack )
2728 YY_FATAL_ERROR(
"out of dynamic memory in yyensure_buffer_stack()" );
2731 memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size *
sizeof(
struct yy_buffer_state*));
2732 yyg->yy_buffer_stack_max = num_to_alloc;
2756 b->yy_buf_size = (
int) (size - 2);
2757 b->yy_buf_pos = b->yy_ch_buf = base;
2758 b->yy_is_our_buffer = 0;
2759 b->yy_input_file = NULL;
2760 b->yy_n_chars = b->yy_buf_size;
2761 b->yy_is_interactive = 0;
2763 b->yy_fill_buffer = 0;
2801 buf = (
char *)
yyalloc( n , yyscanner );
2805 for ( i = 0; i < _yybytes_len; ++i )
2806 buf[i] = yybytes[i];
2817 b->yy_is_our_buffer = 1;
2822#ifndef YY_EXIT_FAILURE
2823#define YY_EXIT_FAILURE 2
2830 fprintf( stderr,
"%s\n", msg );
2841 int yyless_macro_arg = (n); \
2842 YY_LESS_LINENO(yyless_macro_arg);\
2843 yytext[yyleng] = yyg->yy_hold_char; \
2844 yyg->yy_c_buf_p = yytext + yyless_macro_arg; \
2845 yyg->yy_hold_char = *yyg->yy_c_buf_p; \
2846 *yyg->yy_c_buf_p = '\0'; \
2847 yyleng = yyless_macro_arg; \
3017 if (ptr_yy_globals == NULL){
3024 if (*ptr_yy_globals == NULL){
3030 memset(*ptr_yy_globals,0x00,
sizeof(
struct yyguts_t));
3032 return yy_init_globals ( *ptr_yy_globals );
3048 if (ptr_yy_globals == NULL){
3055 if (*ptr_yy_globals == NULL){
3062 memset(*ptr_yy_globals,0x00,
sizeof(
struct yyguts_t));
3066 return yy_init_globals ( *ptr_yy_globals );
3069static int yy_init_globals (
yyscan_t yyscanner)
3076 yyg->yy_buffer_stack = NULL;
3077 yyg->yy_buffer_stack_top = 0;
3078 yyg->yy_buffer_stack_max = 0;
3079 yyg->yy_c_buf_p = NULL;
3083 yyg->yy_start_stack_ptr = 0;
3084 yyg->yy_start_stack_depth = 0;
3085 yyg->yy_start_stack = NULL;
3115 yyfree(yyg->yy_buffer_stack , yyscanner);
3116 yyg->yy_buffer_stack = NULL;
3119 yyfree( yyg->yy_start_stack , yyscanner );
3120 yyg->yy_start_stack = NULL;
3124 yy_init_globals( yyscanner);
3127 yyfree ( yyscanner , yyscanner );
3137static void yy_flex_strncpy (
char* s1,
const char * s2,
int n ,
yyscan_t yyscanner)
3143 for ( i = 0; i < n; ++i )
3148#ifdef YY_NEED_STRLEN
3149static int yy_flex_strlen (
const char * s ,
yyscan_t yyscanner)
3152 for ( n = 0; s[n]; ++n )
3159#define YYTABLES_NAME "yytables"
3161#line 297 "libinterp/corefcn/oct-tex-lexer.ll"
3164#if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC)
3166# pragma GCC diagnostic pop
3178return realloc (ptr, size);
3189bool text_parser_tex::init_lexer (
const std::string& s)
3200 m_buffer_state =
nullptr;
3210void text_parser_tex::destroy_lexer ()
3216 m_buffer_state =
nullptr;
3226OCTAVE_END_NAMESPACE(octave)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
T::size_type strlen(const typename T::value_type *str)
#define yy_load_buffer_state
unsigned char flex_uint8_t
void octave_tex__delete_buffer(YY_BUFFER_STATE b, yyscan_t yyscanner)
Destroy the buffer.
unsigned int flex_uint32_t
void * octave_tex_realloc(void *, yy_size_t, yyscan_t yyscanner)
int octave_tex_lex_init(yyscan_t *scanner)
#define yypush_buffer_state
struct yy_buffer_state * YY_BUFFER_STATE
#define YY_RESTORE_YY_MORE_OFFSET
void * octave_tex_alloc(yy_size_t, yyscan_t yyscanner)
#define yyensure_buffer_stack
int octave_tex_lex_destroy(yyscan_t yyscanner)
#define EOB_ACT_END_OF_FILE
#define yypop_buffer_state
#define YY_CURRENT_BUFFER_LVALUE
#define yy_switch_to_buffer
#define YY_CURRENT_BUFFER
#define YY_INPUT(buf, result, max_size)
#define YY_STATE_EOF(state)
#define YY_END_OF_BUFFER_CHAR
#define YY_FATAL_ERROR(msg)
unsigned short int flex_uint16_t
#define YY_DO_BEFORE_ACTION
#define EOB_ACT_LAST_MATCH
#define YY_BUFFER_EOF_PENDING
void octave_tex_free(void *, yyscan_t yyscanner)
#define EOB_ACT_CONTINUE_SCAN
YY_BUFFER_STATE octave_tex__scan_bytes(const char *bytes, int len, yyscan_t yyscanner)
Setup the input buffer state to scan the given bytes.