#include <stdio.h>#include <string.h>#include <errno.h>#include <stdlib.h>#include "unistd-wrappers.h"#include "text-engine.h"#include "oct-tex-parser.h"Go to the source code of this file.
Typedefs | |
| typedef short int | flex_int16_t |
| typedef int | flex_int32_t |
| typedef signed char | flex_int8_t |
| typedef unsigned short int | flex_uint16_t |
| typedef unsigned int | flex_uint32_t |
| typedef unsigned char | flex_uint8_t |
| typedef struct yy_buffer_state * | YY_BUFFER_STATE |
| typedef flex_uint8_t | YY_CHAR |
| typedef size_t | yy_size_t |
| typedef int | yy_state_type |
| typedef void * | yyscan_t |
Functions | |
| YY_BUFFER_STATE | octave_tex__create_buffer (FILE *file, int size, yyscan_t yyscanner) |
| Allocate and initialize an input buffer state. | |
| void | octave_tex__delete_buffer (YY_BUFFER_STATE b, yyscan_t yyscanner) |
| Destroy the buffer. | |
| void | octave_tex__flush_buffer (YY_BUFFER_STATE b, yyscan_t yyscanner) |
| Discard all buffered characters. | |
| YY_BUFFER_STATE | octave_tex__scan_buffer (char *base, yy_size_t size, yyscan_t yyscanner) |
| Setup the input buffer state to scan directly from a user-specified character buffer. | |
| YY_BUFFER_STATE | octave_tex__scan_bytes (const char *yybytes, int _yybytes_len, yyscan_t yyscanner) |
| Setup the input buffer state to scan the given bytes. | |
| YY_BUFFER_STATE | octave_tex__scan_string (const char *yystr, yyscan_t yyscanner) |
| Setup the input buffer state to scan a string. | |
| void | octave_tex__switch_to_buffer (YY_BUFFER_STATE new_buffer, yyscan_t yyscanner) |
| Switch to a different input buffer. | |
| void * | octave_tex_alloc (yy_size_t, yyscan_t yyscanner) |
| void | octave_tex_free (void *, yyscan_t yyscanner) |
| int | octave_tex_get_column (yyscan_t yyscanner) |
| Get the current column number. | |
| int | octave_tex_get_debug (yyscan_t yyscanner) |
| void * | octave_tex_get_extra (yyscan_t yyscanner) |
| Get the user-defined data for this scanner. | |
| FILE * | octave_tex_get_in (yyscan_t yyscanner) |
| Get the input stream. | |
| int | octave_tex_get_leng (yyscan_t yyscanner) |
| Get the length of the current token. | |
| int | octave_tex_get_lineno (yyscan_t yyscanner) |
| Get the current line number. | |
| OCTAVE_TEX_STYPE * | octave_tex_get_lval (yyscan_t yyscanner) |
| FILE * | octave_tex_get_out (yyscan_t yyscanner) |
| Get the output stream. | |
| char * | octave_tex_get_text (yyscan_t yyscanner) |
| Get the current token. | |
| int | octave_tex_lex (OCTAVE_TEX_STYPE *yylval_param, yyscan_t yyscanner) |
| The main scanner function which does all the work. | |
| int | octave_tex_lex_destroy (yyscan_t yyscanner) |
| int | octave_tex_lex_init (yyscan_t *scanner) |
| int | octave_tex_lex_init_extra (void *user_defined, yyscan_t *scanner) |
| void | octave_tex_pop_buffer_state (yyscan_t yyscanner) |
| Removes and deletes the top of the stack, if present. | |
| void | octave_tex_push_buffer_state (YY_BUFFER_STATE new_buffer, yyscan_t yyscanner) |
| Pushes the new state onto the stack. | |
| void * | octave_tex_realloc (void *, yy_size_t, yyscan_t yyscanner) |
| void | octave_tex_restart (FILE *input_file, yyscan_t yyscanner) |
| Immediately switch to a different input stream. | |
| void | octave_tex_set_column (int _column_no, yyscan_t yyscanner) |
| Set the current column. | |
| void | octave_tex_set_debug (int debug_flag, yyscan_t yyscanner) |
| void | octave_tex_set_extra (void *user_defined, yyscan_t yyscanner) |
| Set the user-defined data. | |
| void | octave_tex_set_in (FILE *_in_str, yyscan_t yyscanner) |
| Set the input stream. | |
| void | octave_tex_set_lineno (int _line_number, yyscan_t yyscanner) |
| Set the current line number. | |
| void | octave_tex_set_lval (OCTAVE_TEX_STYPE *yylval_param, yyscan_t yyscanner) |
| void | octave_tex_set_out (FILE *_out_str, yyscan_t yyscanner) |
| #define BEGIN yyg->yy_start = 1 + 2 * |
Definition at line 405 of file oct-tex-lexer.cc.
Definition at line 1140 of file oct-tex-lexer.cc.
| #define EOB_ACT_CONTINUE_SCAN 0 |
Definition at line 445 of file oct-tex-lexer.cc.
| #define EOB_ACT_END_OF_FILE 1 |
Definition at line 446 of file oct-tex-lexer.cc.
| #define EOB_ACT_LAST_MATCH 2 |
Definition at line 447 of file oct-tex-lexer.cc.
| #define FLEX_BETA |
Definition at line 62 of file oct-tex-lexer.cc.
| #define FLEX_SCANNER |
Definition at line 57 of file oct-tex-lexer.cc.
| #define FLEXINT_H |
Definition at line 300 of file oct-tex-lexer.cc.
| #define INITIAL 0 |
Definition at line 991 of file oct-tex-lexer.cc.
| #define INT16_MAX (32767) |
Definition at line 342 of file oct-tex-lexer.cc.
| #define INT16_MIN (-32767-1) |
Definition at line 333 of file oct-tex-lexer.cc.
| #define INT32_MAX (2147483647) |
Definition at line 345 of file oct-tex-lexer.cc.
| #define INT32_MIN (-2147483647-1) |
Definition at line 336 of file oct-tex-lexer.cc.
| #define INT8_MAX (127) |
Definition at line 339 of file oct-tex-lexer.cc.
| #define INT8_MIN (-128) |
Definition at line 330 of file oct-tex-lexer.cc.
| #define isatty octave_isatty_wrapper |
Definition at line 985 of file oct-tex-lexer.cc.
| #define MAYBE_NUM_MODE 2 |
Definition at line 993 of file oct-tex-lexer.cc.
| #define NUM_MODE 1 |
Definition at line 992 of file oct-tex-lexer.cc.
| #define octave_tex_wrap | ( | yyscanner | ) | (/*CONSTCOND*/1) |
Definition at line 590 of file oct-tex-lexer.cc.
| #define register |
Definition at line 48 of file oct-tex-lexer.cc.
| #define REJECT reject_used_but_not_detected |
Definition at line 956 of file oct-tex-lexer.cc.
| #define SIZE_MAX (~(size_t)0) |
Definition at line 358 of file oct-tex-lexer.cc.
| #define UINT16_MAX (65535U) |
Definition at line 351 of file oct-tex-lexer.cc.
| #define UINT32_MAX (4294967295U) |
Definition at line 354 of file oct-tex-lexer.cc.
| #define UINT8_MAX (255U) |
Definition at line 348 of file oct-tex-lexer.cc.
| #define unput | ( | c | ) | yyunput( c, yyg->yytext_ptr , yyscanner ) |
Definition at line 465 of file oct-tex-lexer.cc.
| #define YY_AT_BOL | ( | ) | (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
Definition at line 586 of file oct-tex-lexer.cc.
| #define YY_BREAK /*LINTED*/break; |
Definition at line 1221 of file oct-tex-lexer.cc.
| #define YY_BUF_SIZE 16384 |
Definition at line 427 of file oct-tex-lexer.cc.
| #define YY_BUFFER_EOF_PENDING 2 |
Definition at line 527 of file oct-tex-lexer.cc.
| #define YY_BUFFER_NEW 0 |
Definition at line 515 of file oct-tex-lexer.cc.
| #define YY_BUFFER_NORMAL 1 |
Definition at line 516 of file oct-tex-lexer.cc.
| #define yy_create_buffer octave_tex__create_buffer |
Definition at line 68 of file oct-tex-lexer.cc.
| #define YY_CURRENT_BUFFER |
Definition at line 538 of file oct-tex-lexer.cc.
| #define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] |
Definition at line 544 of file oct-tex-lexer.cc.
| #define YY_DECL |
Definition at line 1208 of file oct-tex-lexer.cc.
| #define YY_DECL_IS_OURS 1 |
Definition at line 1203 of file oct-tex-lexer.cc.
| #define yy_delete_buffer octave_tex__delete_buffer |
Definition at line 74 of file oct-tex-lexer.cc.
| #define YY_DO_BEFORE_ACTION |
Definition at line 606 of file oct-tex-lexer.cc.
| #define YY_END_OF_BUFFER 129 |
Definition at line 613 of file oct-tex-lexer.cc.
| #define YY_END_OF_BUFFER_CHAR 0 |
Definition at line 416 of file oct-tex-lexer.cc.
| #define YY_EXIT_FAILURE 2 |
Definition at line 2823 of file oct-tex-lexer.cc.
| #define YY_EXTRA_TYPE void * |
Definition at line 1004 of file oct-tex-lexer.cc.
| #define YY_FATAL_ERROR | ( | msg | ) | yy_fatal_error( msg , yyscanner) |
Definition at line 1194 of file oct-tex-lexer.cc.
| #define yy_flex_debug yyg->yy_flex_debug_r |
Definition at line 399 of file oct-tex-lexer.cc.
| #define YY_FLEX_MAJOR_VERSION 2 |
Definition at line 58 of file oct-tex-lexer.cc.
| #define YY_FLEX_MINOR_VERSION 6 |
Definition at line 59 of file oct-tex-lexer.cc.
| #define YY_FLEX_SUBMINOR_VERSION 4 |
Definition at line 60 of file oct-tex-lexer.cc.
| #define yy_flush_buffer octave_tex__flush_buffer |
Definition at line 104 of file oct-tex-lexer.cc.
| #define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER , yyscanner) |
Definition at line 557 of file oct-tex-lexer.cc.
| #define yy_init_buffer octave_tex__init_buffer |
Definition at line 98 of file oct-tex-lexer.cc.
| #define YY_INPUT | ( | buf, | |
| result, | |||
| max_size | |||
| ) |
Definition at line 1147 of file oct-tex-lexer.cc.
| #define YY_INT_ALIGNED short int |
Definition at line 53 of file oct-tex-lexer.cc.
| #define YY_LESS_LINENO | ( | n | ) |
Definition at line 449 of file oct-tex-lexer.cc.
| #define YY_LINENO_REWIND_TO | ( | ptr | ) |
Definition at line 450 of file oct-tex-lexer.cc.
| #define yy_load_buffer_state octave_tex__load_buffer_state |
Definition at line 110 of file oct-tex-lexer.cc.
| #define YY_MORE_ADJ 0 |
Definition at line 958 of file oct-tex-lexer.cc.
| #define yy_new_buffer yy_create_buffer |
Definition at line 567 of file oct-tex-lexer.cc.
Definition at line 415 of file oct-tex-lexer.cc.
| #define YY_NO_UNISTD_H 1 |
Definition at line 984 of file oct-tex-lexer.cc.
| #define YY_NULL 0 |
Definition at line 377 of file oct-tex-lexer.cc.
| #define YY_NUM_RULES 128 |
Definition at line 612 of file oct-tex-lexer.cc.
| #define YY_READ_BUF_SIZE 8192 |
Definition at line 1131 of file oct-tex-lexer.cc.
| #define YY_RESTORE_YY_MORE_OFFSET |
Definition at line 959 of file oct-tex-lexer.cc.
| #define YY_RULE_SETUP YY_USER_ACTION |
Definition at line 1224 of file oct-tex-lexer.cc.
| #define YY_SC_TO_UI | ( | c | ) | ((YY_CHAR) (c)) |
Definition at line 382 of file oct-tex-lexer.cc.
| #define yy_scan_buffer octave_tex__scan_buffer |
Definition at line 80 of file oct-tex-lexer.cc.
| #define yy_scan_bytes octave_tex__scan_bytes |
Definition at line 92 of file oct-tex-lexer.cc.
| #define yy_scan_string octave_tex__scan_string |
Definition at line 86 of file oct-tex-lexer.cc.
| #define yy_set_bol | ( | at_bol | ) |
Definition at line 577 of file oct-tex-lexer.cc.
| #define yy_set_interactive | ( | is_interactive | ) |
Definition at line 568 of file oct-tex-lexer.cc.
| #define YY_SKIP_YYWRAP |
Definition at line 591 of file oct-tex-lexer.cc.
| #define YY_START ((yyg->yy_start - 1) / 2) |
Definition at line 410 of file oct-tex-lexer.cc.
| #define YY_START_STACK_INCR 25 |
Definition at line 1189 of file oct-tex-lexer.cc.
| #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
Definition at line 433 of file oct-tex-lexer.cc.
| #define YY_STATE_EOF | ( | state | ) | (YY_END_OF_BUFFER + state + 1) |
Definition at line 413 of file oct-tex-lexer.cc.
| #define YY_STRUCT_YY_BUFFER_STATE |
Definition at line 468 of file oct-tex-lexer.cc.
| #define yy_switch_to_buffer octave_tex__switch_to_buffer |
Definition at line 116 of file oct-tex-lexer.cc.
| #define YY_TYPEDEF_YY_BUFFER_STATE |
Definition at line 436 of file oct-tex-lexer.cc.
| #define YY_TYPEDEF_YY_SCANNER_T |
Definition at line 386 of file oct-tex-lexer.cc.
| #define YY_TYPEDEF_YY_SIZE_T |
Definition at line 441 of file oct-tex-lexer.cc.
| #define YY_USER_ACTION |
Definition at line 1216 of file oct-tex-lexer.cc.
| #define yyalloc octave_tex_alloc |
Definition at line 272 of file oct-tex-lexer.cc.
| #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column) |
Definition at line 398 of file oct-tex-lexer.cc.
| #define yyconst const |
Definition at line 368 of file oct-tex-lexer.cc.
| #define yyensure_buffer_stack octave_tex_ensure_buffer_stack |
Definition at line 134 of file oct-tex-lexer.cc.
| #define yyextra yyg->yyextra_r |
Definition at line 394 of file oct-tex-lexer.cc.
| #define yyfree octave_tex_free |
Definition at line 284 of file oct-tex-lexer.cc.
| #define yyget_column octave_tex_get_column |
Definition at line 242 of file oct-tex-lexer.cc.
| #define yyget_debug octave_tex_get_debug |
Definition at line 170 of file oct-tex-lexer.cc.
| #define yyget_extra octave_tex_get_extra |
Definition at line 182 of file oct-tex-lexer.cc.
| #define yyget_in octave_tex_get_in |
Definition at line 194 of file oct-tex-lexer.cc.
| #define yyget_leng octave_tex_get_leng |
Definition at line 218 of file oct-tex-lexer.cc.
| #define yyget_lineno octave_tex_get_lineno |
Definition at line 230 of file oct-tex-lexer.cc.
| #define yyget_lval octave_tex_get_lval |
Definition at line 260 of file oct-tex-lexer.cc.
| #define yyget_out octave_tex_get_out |
Definition at line 206 of file oct-tex-lexer.cc.
| #define yyget_text octave_tex_get_text |
Definition at line 224 of file oct-tex-lexer.cc.
| #define yyguts_t octave_tex_yyguts_t |
Definition at line 986 of file oct-tex-lexer.cc.
| #define yyin yyg->yyin_r |
Definition at line 392 of file oct-tex-lexer.cc.
| #define yyleng yyg->yyleng_r |
Definition at line 395 of file oct-tex-lexer.cc.
| #define yyless | ( | n | ) |
Definition at line 453 of file oct-tex-lexer.cc.
| #define yyless | ( | n | ) |
Definition at line 453 of file oct-tex-lexer.cc.
| #define yylex octave_tex_lex |
Definition at line 140 of file oct-tex-lexer.cc.
| #define yylex_destroy octave_tex_lex_destroy |
Definition at line 164 of file oct-tex-lexer.cc.
| #define yylex_init octave_tex_lex_init |
Definition at line 152 of file oct-tex-lexer.cc.
| #define yylex_init_extra octave_tex_lex_init_extra |
Definition at line 158 of file oct-tex-lexer.cc.
| #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno) |
Definition at line 397 of file oct-tex-lexer.cc.
| #define yylval yyg->yylval_r |
Definition at line 1047 of file oct-tex-lexer.cc.
| #define yymore | ( | ) | yymore_used_but_not_detected |
Definition at line 957 of file oct-tex-lexer.cc.
| #define yynoreturn |
Definition at line 373 of file oct-tex-lexer.cc.
| #define yyout yyg->yyout_r |
Definition at line 393 of file oct-tex-lexer.cc.
| #define yypop_buffer_state octave_tex_pop_buffer_state |
Definition at line 128 of file oct-tex-lexer.cc.
| #define yypush_buffer_state octave_tex_push_buffer_state |
Definition at line 122 of file oct-tex-lexer.cc.
| #define yyrealloc octave_tex_realloc |
Definition at line 278 of file oct-tex-lexer.cc.
| #define yyrestart octave_tex_restart |
Definition at line 146 of file oct-tex-lexer.cc.
| #define yyset_column octave_tex_set_column |
Definition at line 248 of file oct-tex-lexer.cc.
| #define yyset_debug octave_tex_set_debug |
Definition at line 176 of file oct-tex-lexer.cc.
| #define yyset_extra octave_tex_set_extra |
Definition at line 188 of file oct-tex-lexer.cc.
| #define yyset_in octave_tex_set_in |
Definition at line 200 of file oct-tex-lexer.cc.
| #define yyset_lineno octave_tex_set_lineno |
Definition at line 236 of file oct-tex-lexer.cc.
| #define yyset_lval octave_tex_set_lval |
Definition at line 266 of file oct-tex-lexer.cc.
| #define yyset_out octave_tex_set_out |
Definition at line 212 of file oct-tex-lexer.cc.
| #define YYSTATE YY_START |
Definition at line 411 of file oct-tex-lexer.cc.
| #define YYSTYPE OCTAVE_TEX_STYPE |
Definition at line 981 of file oct-tex-lexer.cc.
| #define YYTABLES_NAME "yytables" |
Definition at line 3159 of file oct-tex-lexer.cc.
| #define yyterminate | ( | ) | return YY_NULL |
Definition at line 1184 of file oct-tex-lexer.cc.
| #define yytext yyg->yytext_r |
Definition at line 396 of file oct-tex-lexer.cc.
| #define yytext_ptr yytext_r |
Definition at line 596 of file oct-tex-lexer.cc.
| #define yywrap octave_tex_wrap |
Definition at line 254 of file oct-tex-lexer.cc.
| typedef short int flex_int16_t |
Definition at line 322 of file oct-tex-lexer.cc.
| typedef int flex_int32_t |
Definition at line 323 of file oct-tex-lexer.cc.
| typedef signed char flex_int8_t |
Definition at line 321 of file oct-tex-lexer.cc.
| typedef unsigned short int flex_uint16_t |
Definition at line 325 of file oct-tex-lexer.cc.
| typedef unsigned int flex_uint32_t |
Definition at line 326 of file oct-tex-lexer.cc.
| typedef unsigned char flex_uint8_t |
Definition at line 324 of file oct-tex-lexer.cc.
| typedef struct yy_buffer_state* YY_BUFFER_STATE |
Definition at line 437 of file oct-tex-lexer.cc.
| typedef flex_uint8_t YY_CHAR |
Definition at line 592 of file oct-tex-lexer.cc.
| typedef size_t yy_size_t |
Definition at line 442 of file oct-tex-lexer.cc.
| typedef int yy_state_type |
Definition at line 594 of file oct-tex-lexer.cc.
| typedef void* yyscan_t |
Definition at line 387 of file oct-tex-lexer.cc.
| YY_BUFFER_STATE octave_tex__create_buffer | ( | FILE * | file, |
| int | size, | ||
| yyscan_t | yyscanner | ||
| ) |
Allocate and initialize an input buffer state.
| file | A readable stream. |
| size | The character buffer size in bytes. When in doubt, use YY_BUF_SIZE. |
| yyscanner | The scanner object. |
Definition at line 2534 of file oct-tex-lexer.cc.
References YY_FATAL_ERROR, yy_init_buffer, and yyalloc.
| void octave_tex__delete_buffer | ( | YY_BUFFER_STATE | b, |
| yyscan_t | yyscanner | ||
| ) |
Destroy the buffer.
| b | a buffer created with yy_create_buffer() |
| yyscanner | The scanner object. |
Definition at line 2562 of file oct-tex-lexer.cc.
References YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yyfree, and yyguts_t.
| void octave_tex__flush_buffer | ( | YY_BUFFER_STATE | b, |
| yyscan_t | yyscanner | ||
| ) |
Discard all buffered characters.
On the next scan, YY_INPUT will be called.
| b | the buffer state to be flushed, usually YY_CURRENT_BUFFER. |
| yyscanner | The scanner object. |
Definition at line 2611 of file oct-tex-lexer.cc.
References YY_BUFFER_NEW, YY_CURRENT_BUFFER, YY_END_OF_BUFFER_CHAR, yy_load_buffer_state, and yyguts_t.
| YY_BUFFER_STATE octave_tex__scan_buffer | ( | char * | base, |
| yy_size_t | size, | ||
| yyscan_t | yyscanner | ||
| ) |
Setup the input buffer state to scan directly from a user-specified character buffer.
| base | the character buffer |
| size | the size in bytes of the character buffer |
| yyscanner | The scanner object. |
Definition at line 2742 of file oct-tex-lexer.cc.
References YY_BUFFER_NEW, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, yy_switch_to_buffer, and yyalloc.
| YY_BUFFER_STATE octave_tex__scan_bytes | ( | const char * | yybytes, |
| int | _yybytes_len, | ||
| yyscan_t | yyscanner | ||
| ) |
Setup the input buffer state to scan the given bytes.
The next call to yylex() will scan from a copy of bytes.
| yybytes | the byte buffer to scan |
| _yybytes_len | the number of bytes in the buffer pointed to by bytes. |
| yyscanner | The scanner object. |
Definition at line 2792 of file oct-tex-lexer.cc.
References YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, yy_scan_buffer, and yyalloc.
| YY_BUFFER_STATE octave_tex__scan_string | ( | const char * | yystr, |
| yyscan_t | yyscanner | ||
| ) |
Setup the input buffer state to scan a string.
The next call to yylex() will scan from a copy of str.
| yystr | a NUL-terminated string to scan |
| yyscanner | The scanner object. |
Definition at line 2779 of file oct-tex-lexer.cc.
References strlen(), and yy_scan_bytes.
| void octave_tex__switch_to_buffer | ( | YY_BUFFER_STATE | new_buffer, |
| yyscan_t | yyscanner | ||
| ) |
Switch to a different input buffer.
| new_buffer | The new input buffer. |
| yyscanner | The scanner object. |
Definition at line 2487 of file oct-tex-lexer.cc.
References YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_load_buffer_state, yyensure_buffer_stack, and yyguts_t.
Definition at line 3170 of file oct-tex-lexer.cc.
References malloc(), and octave_tex_alloc().
Referenced by octave_tex_alloc().
| void octave_tex_free | ( | void * | ptr, |
| yyscan_t | yyscanner | ||
| ) |
Definition at line 3182 of file oct-tex-lexer.cc.
References free().
Get the current column number.
| yyscanner | The scanner object. |
Definition at line 2878 of file oct-tex-lexer.cc.
References YY_CURRENT_BUFFER, yycolumn, and yyguts_t.
Definition at line 2983 of file oct-tex-lexer.cc.
References yy_flex_debug, and yyguts_t.
| void * octave_tex_get_extra | ( | yyscan_t | yyscanner | ) |
Get the user-defined data for this scanner.
| yyscanner | The scanner object. |
Definition at line 2856 of file oct-tex-lexer.cc.
| FILE * octave_tex_get_in | ( | yyscan_t | yyscanner | ) |
Get the input stream.
| yyscanner | The scanner object. |
Definition at line 2891 of file oct-tex-lexer.cc.
Get the length of the current token.
| yyscanner | The scanner object. |
Definition at line 2909 of file oct-tex-lexer.cc.
Get the current line number.
| yyscanner | The scanner object. |
Definition at line 2865 of file oct-tex-lexer.cc.
References YY_CURRENT_BUFFER, yyguts_t, and yylineno.
| OCTAVE_TEX_STYPE * octave_tex_get_lval | ( | yyscan_t | yyscanner | ) |
Definition at line 2997 of file oct-tex-lexer.cc.
| FILE * octave_tex_get_out | ( | yyscan_t | yyscanner | ) |
Get the output stream.
| yyscanner | The scanner object. |
Definition at line 2900 of file oct-tex-lexer.cc.
| char * octave_tex_get_text | ( | yyscan_t | yyscanner | ) |
Get the current token.
| yyscanner | The scanner object. |
Definition at line 2919 of file oct-tex-lexer.cc.
|
extern |
The main scanner function which does all the work.
Definition at line 1229 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_BREAK, YY_BUF_SIZE, YY_BUFFER_NEW, YY_BUFFER_NORMAL, yy_create_buffer, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, YY_DO_BEFORE_ACTION, YY_END_OF_BUFFER, YY_FATAL_ERROR, yy_load_buffer_state, YY_MORE_ADJ, YY_NEW_FILE, YY_RESTORE_YY_MORE_OFFSET, YY_RULE_SETUP, YY_SC_TO_UI, YY_START, YY_STATE_EOF, yyensure_buffer_stack, yyguts_t, yyin, yyless, yylval, yyout, yyterminate, yytext, and yywrap.
Definition at line 3103 of file oct-tex-lexer.cc.
References YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_delete_buffer, yyfree, yyguts_t, and yypop_buffer_state.
Definition at line 3015 of file oct-tex-lexer.cc.
Definition at line 3042 of file oct-tex-lexer.cc.
References yyalloc, yyguts_t, and yyset_extra.
| void octave_tex_pop_buffer_state | ( | yyscan_t | yyscanner | ) |
Removes and deletes the top of the stack, if present.
The next element becomes the new top.
| yyscanner | The scanner object. |
Definition at line 2672 of file oct-tex-lexer.cc.
References YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_delete_buffer, yy_load_buffer_state, and yyguts_t.
| void octave_tex_push_buffer_state | ( | YY_BUFFER_STATE | new_buffer, |
| yyscan_t | yyscanner | ||
| ) |
Pushes the new state onto the stack.
The new state becomes the current state. This function will allocate the stack if necessary.
| new_buffer | The new state. |
| yyscanner | The scanner object. |
Definition at line 2641 of file oct-tex-lexer.cc.
References YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_load_buffer_state, yyensure_buffer_stack, and yyguts_t.
Definition at line 3176 of file oct-tex-lexer.cc.
| void octave_tex_restart | ( | FILE * | input_file, |
| yyscan_t | yyscanner | ||
| ) |
Immediately switch to a different input stream.
| input_file | A readable stream. |
| yyscanner | The scanner object. |
INITIAL . Definition at line 2469 of file oct-tex-lexer.cc.
References YY_BUF_SIZE, yy_create_buffer, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_init_buffer, yy_load_buffer_state, yyensure_buffer_stack, yyguts_t, and yyin.
Set the current column.
| _column_no | column number |
| yyscanner | The scanner object. |
Definition at line 2954 of file oct-tex-lexer.cc.
References YY_CURRENT_BUFFER, YY_FATAL_ERROR, yycolumn, and yyguts_t.
Definition at line 2989 of file oct-tex-lexer.cc.
References yy_flex_debug, and yyguts_t.
| void octave_tex_set_extra | ( | void * | user_defined, |
| yyscan_t | yyscanner | ||
| ) |
Set the user-defined data.
This data is never touched by the scanner.
| user_defined | The data to be associated with this scanner. |
| yyscanner | The scanner object. |
Definition at line 2929 of file oct-tex-lexer.cc.
| void octave_tex_set_in | ( | FILE * | _in_str, |
| yyscan_t | yyscanner | ||
| ) |
Set the input stream.
This does not discard the current input buffer.
| _in_str | A readable stream. |
| yyscanner | The scanner object. |
Definition at line 2971 of file oct-tex-lexer.cc.
Set the current line number.
| _line_number | line number |
| yyscanner | The scanner object. |
Definition at line 2939 of file oct-tex-lexer.cc.
References YY_CURRENT_BUFFER, YY_FATAL_ERROR, yyguts_t, and yylineno.
| void octave_tex_set_lval | ( | OCTAVE_TEX_STYPE * | yylval_param, |
| yyscan_t | yyscanner | ||
| ) |
Definition at line 3003 of file oct-tex-lexer.cc.
| void octave_tex_set_out | ( | FILE * | _out_str, |
| yyscan_t | yyscanner | ||
| ) |
Definition at line 2977 of file oct-tex-lexer.cc.