#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. More... | |
void | octave_tex__delete_buffer (YY_BUFFER_STATE b, yyscan_t yyscanner) |
Destroy the buffer. More... | |
void | octave_tex__flush_buffer (YY_BUFFER_STATE b, yyscan_t yyscanner) |
Discard all buffered characters. More... | |
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. More... | |
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. More... | |
YY_BUFFER_STATE | octave_tex__scan_string (const char *yystr, yyscan_t yyscanner) |
Setup the input buffer state to scan a string. More... | |
void | octave_tex__switch_to_buffer (YY_BUFFER_STATE new_buffer, yyscan_t yyscanner) |
Switch to a different input buffer. More... | |
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. More... | |
int | octave_tex_get_debug (yyscan_t yyscanner) |
void * | octave_tex_get_extra (yyscan_t yyscanner) |
Get the user-defined data for this scanner. More... | |
FILE * | octave_tex_get_in (yyscan_t yyscanner) |
Get the input stream. More... | |
int | octave_tex_get_leng (yyscan_t yyscanner) |
Get the length of the current token. More... | |
int | octave_tex_get_lineno (yyscan_t yyscanner) |
Get the current line number. More... | |
OCTAVE_TEX_STYPE * | octave_tex_get_lval (yyscan_t yyscanner) |
FILE * | octave_tex_get_out (yyscan_t yyscanner) |
Get the output stream. More... | |
char * | octave_tex_get_text (yyscan_t yyscanner) |
Get the current token. More... | |
int | octave_tex_lex (OCTAVE_TEX_STYPE *yylval_param, yyscan_t yyscanner) |
The main scanner function which does all the work. More... | |
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. More... | |
void | octave_tex_push_buffer_state (YY_BUFFER_STATE new_buffer, yyscan_t yyscanner) |
Pushes the new state onto the stack. More... | |
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. More... | |
void | octave_tex_set_column (int _column_no, yyscan_t yyscanner) |
Set the current column. More... | |
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. More... | |
void | octave_tex_set_in (FILE *_in_str, yyscan_t yyscanner) |
Set the input stream. More... | |
void | octave_tex_set_lineno (int _line_number, yyscan_t yyscanner) |
Set the current line number. More... | |
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 403 of file oct-tex-lexer.cc.
Definition at line 1139 of file oct-tex-lexer.cc.
#define EOB_ACT_CONTINUE_SCAN 0 |
Definition at line 443 of file oct-tex-lexer.cc.
#define EOB_ACT_END_OF_FILE 1 |
Definition at line 444 of file oct-tex-lexer.cc.
#define EOB_ACT_LAST_MATCH 2 |
Definition at line 445 of file oct-tex-lexer.cc.
#define FLEX_BETA |
Definition at line 60 of file oct-tex-lexer.cc.
#define FLEX_SCANNER |
Definition at line 55 of file oct-tex-lexer.cc.
#define FLEXINT_H |
Definition at line 298 of file oct-tex-lexer.cc.
#define INITIAL 0 |
Definition at line 990 of file oct-tex-lexer.cc.
#define INT16_MAX (32767) |
Definition at line 340 of file oct-tex-lexer.cc.
#define INT16_MIN (-32767-1) |
Definition at line 331 of file oct-tex-lexer.cc.
#define INT32_MAX (2147483647) |
Definition at line 343 of file oct-tex-lexer.cc.
#define INT32_MIN (-2147483647-1) |
Definition at line 334 of file oct-tex-lexer.cc.
#define INT8_MAX (127) |
Definition at line 337 of file oct-tex-lexer.cc.
#define INT8_MIN (-128) |
Definition at line 328 of file oct-tex-lexer.cc.
#define isatty octave_isatty_wrapper |
Definition at line 984 of file oct-tex-lexer.cc.
#define MAYBE_NUM_MODE 2 |
Definition at line 992 of file oct-tex-lexer.cc.
#define NUM_MODE 1 |
Definition at line 991 of file oct-tex-lexer.cc.
#define octave_tex_wrap | ( | yyscanner | ) | (/*CONSTCOND*/1) |
Definition at line 588 of file oct-tex-lexer.cc.
#define register |
Definition at line 46 of file oct-tex-lexer.cc.
#define REJECT reject_used_but_not_detected |
Definition at line 954 of file oct-tex-lexer.cc.
#define SIZE_MAX (~(size_t)0) |
Definition at line 356 of file oct-tex-lexer.cc.
#define UINT16_MAX (65535U) |
Definition at line 349 of file oct-tex-lexer.cc.
#define UINT32_MAX (4294967295U) |
Definition at line 352 of file oct-tex-lexer.cc.
#define UINT8_MAX (255U) |
Definition at line 346 of file oct-tex-lexer.cc.
#define unput | ( | c | ) | yyunput( c, yyg->yytext_ptr , yyscanner ) |
Definition at line 463 of file oct-tex-lexer.cc.
#define YY_AT_BOL | ( | ) | (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
Definition at line 584 of file oct-tex-lexer.cc.
#define YY_BREAK /*LINTED*/break; |
Definition at line 1220 of file oct-tex-lexer.cc.
#define YY_BUF_SIZE 16384 |
Definition at line 425 of file oct-tex-lexer.cc.
#define YY_BUFFER_EOF_PENDING 2 |
Definition at line 525 of file oct-tex-lexer.cc.
#define YY_BUFFER_NEW 0 |
Definition at line 513 of file oct-tex-lexer.cc.
#define YY_BUFFER_NORMAL 1 |
Definition at line 514 of file oct-tex-lexer.cc.
#define yy_create_buffer octave_tex__create_buffer |
Definition at line 66 of file oct-tex-lexer.cc.
#define YY_CURRENT_BUFFER |
Definition at line 536 of file oct-tex-lexer.cc.
#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] |
Definition at line 542 of file oct-tex-lexer.cc.
#define YY_DECL |
Definition at line 1207 of file oct-tex-lexer.cc.
#define YY_DECL_IS_OURS 1 |
Definition at line 1202 of file oct-tex-lexer.cc.
#define yy_delete_buffer octave_tex__delete_buffer |
Definition at line 72 of file oct-tex-lexer.cc.
#define YY_DO_BEFORE_ACTION |
Definition at line 604 of file oct-tex-lexer.cc.
#define YY_END_OF_BUFFER 129 |
Definition at line 611 of file oct-tex-lexer.cc.
#define YY_END_OF_BUFFER_CHAR 0 |
Definition at line 414 of file oct-tex-lexer.cc.
#define YY_EXIT_FAILURE 2 |
Definition at line 2822 of file oct-tex-lexer.cc.
#define YY_EXTRA_TYPE void * |
Definition at line 1003 of file oct-tex-lexer.cc.
#define YY_FATAL_ERROR | ( | msg | ) | yy_fatal_error( msg , yyscanner) |
Definition at line 1193 of file oct-tex-lexer.cc.
#define yy_flex_debug yyg->yy_flex_debug_r |
Definition at line 397 of file oct-tex-lexer.cc.
#define YY_FLEX_MAJOR_VERSION 2 |
Definition at line 56 of file oct-tex-lexer.cc.
#define YY_FLEX_MINOR_VERSION 6 |
Definition at line 57 of file oct-tex-lexer.cc.
#define YY_FLEX_SUBMINOR_VERSION 4 |
Definition at line 58 of file oct-tex-lexer.cc.
#define yy_flush_buffer octave_tex__flush_buffer |
Definition at line 102 of file oct-tex-lexer.cc.
#define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER , yyscanner) |
Definition at line 555 of file oct-tex-lexer.cc.
#define yy_init_buffer octave_tex__init_buffer |
Definition at line 96 of file oct-tex-lexer.cc.
#define YY_INPUT | ( | buf, | |
result, | |||
max_size | |||
) |
Definition at line 1146 of file oct-tex-lexer.cc.
#define YY_INT_ALIGNED short int |
Definition at line 51 of file oct-tex-lexer.cc.
#define YY_LESS_LINENO | ( | n | ) |
Definition at line 447 of file oct-tex-lexer.cc.
#define YY_LINENO_REWIND_TO | ( | ptr | ) |
Definition at line 448 of file oct-tex-lexer.cc.
#define yy_load_buffer_state octave_tex__load_buffer_state |
Definition at line 108 of file oct-tex-lexer.cc.
#define YY_MORE_ADJ 0 |
Definition at line 956 of file oct-tex-lexer.cc.
#define yy_new_buffer yy_create_buffer |
Definition at line 565 of file oct-tex-lexer.cc.
Definition at line 413 of file oct-tex-lexer.cc.
#define YY_NO_UNISTD_H 1 |
Definition at line 983 of file oct-tex-lexer.cc.
#define YY_NULL 0 |
Definition at line 375 of file oct-tex-lexer.cc.
#define YY_NUM_RULES 128 |
Definition at line 610 of file oct-tex-lexer.cc.
#define YY_READ_BUF_SIZE 8192 |
Definition at line 1130 of file oct-tex-lexer.cc.
#define YY_RESTORE_YY_MORE_OFFSET |
Definition at line 957 of file oct-tex-lexer.cc.
#define YY_RULE_SETUP YY_USER_ACTION |
Definition at line 1223 of file oct-tex-lexer.cc.
#define YY_SC_TO_UI | ( | c | ) | ((YY_CHAR) (c)) |
Definition at line 380 of file oct-tex-lexer.cc.
#define yy_scan_buffer octave_tex__scan_buffer |
Definition at line 78 of file oct-tex-lexer.cc.
#define yy_scan_bytes octave_tex__scan_bytes |
Definition at line 90 of file oct-tex-lexer.cc.
#define yy_scan_string octave_tex__scan_string |
Definition at line 84 of file oct-tex-lexer.cc.
#define yy_set_bol | ( | at_bol | ) |
Definition at line 575 of file oct-tex-lexer.cc.
#define yy_set_interactive | ( | is_interactive | ) |
Definition at line 566 of file oct-tex-lexer.cc.
#define YY_SKIP_YYWRAP |
Definition at line 589 of file oct-tex-lexer.cc.
#define YY_START ((yyg->yy_start - 1) / 2) |
Definition at line 408 of file oct-tex-lexer.cc.
#define YY_START_STACK_INCR 25 |
Definition at line 1188 of file oct-tex-lexer.cc.
#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
Definition at line 431 of file oct-tex-lexer.cc.
#define YY_STATE_EOF | ( | state | ) | (YY_END_OF_BUFFER + state + 1) |
Definition at line 411 of file oct-tex-lexer.cc.
#define YY_STRUCT_YY_BUFFER_STATE |
Definition at line 466 of file oct-tex-lexer.cc.
#define yy_switch_to_buffer octave_tex__switch_to_buffer |
Definition at line 114 of file oct-tex-lexer.cc.
#define YY_TYPEDEF_YY_BUFFER_STATE |
Definition at line 434 of file oct-tex-lexer.cc.
#define YY_TYPEDEF_YY_SCANNER_T |
Definition at line 384 of file oct-tex-lexer.cc.
#define YY_TYPEDEF_YY_SIZE_T |
Definition at line 439 of file oct-tex-lexer.cc.
#define YY_USER_ACTION |
Definition at line 1215 of file oct-tex-lexer.cc.
#define yyalloc octave_tex_alloc |
Definition at line 270 of file oct-tex-lexer.cc.
#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column) |
Definition at line 396 of file oct-tex-lexer.cc.
#define yyconst const |
Definition at line 366 of file oct-tex-lexer.cc.
#define yyensure_buffer_stack octave_tex_ensure_buffer_stack |
Definition at line 132 of file oct-tex-lexer.cc.
#define yyextra yyg->yyextra_r |
Definition at line 392 of file oct-tex-lexer.cc.
#define yyfree octave_tex_free |
Definition at line 282 of file oct-tex-lexer.cc.
#define yyget_column octave_tex_get_column |
Definition at line 240 of file oct-tex-lexer.cc.
#define yyget_debug octave_tex_get_debug |
Definition at line 168 of file oct-tex-lexer.cc.
#define yyget_extra octave_tex_get_extra |
Definition at line 180 of file oct-tex-lexer.cc.
#define yyget_in octave_tex_get_in |
Definition at line 192 of file oct-tex-lexer.cc.
#define yyget_leng octave_tex_get_leng |
Definition at line 216 of file oct-tex-lexer.cc.
#define yyget_lineno octave_tex_get_lineno |
Definition at line 228 of file oct-tex-lexer.cc.
#define yyget_lval octave_tex_get_lval |
Definition at line 258 of file oct-tex-lexer.cc.
#define yyget_out octave_tex_get_out |
Definition at line 204 of file oct-tex-lexer.cc.
#define yyget_text octave_tex_get_text |
Definition at line 222 of file oct-tex-lexer.cc.
#define yyguts_t octave_tex_yyguts_t |
Definition at line 985 of file oct-tex-lexer.cc.
#define yyin yyg->yyin_r |
Definition at line 390 of file oct-tex-lexer.cc.
#define yyleng yyg->yyleng_r |
Definition at line 393 of file oct-tex-lexer.cc.
#define yyless | ( | n | ) |
Definition at line 2836 of file oct-tex-lexer.cc.
#define yyless | ( | n | ) |
Definition at line 2836 of file oct-tex-lexer.cc.
#define yylex octave_tex_lex |
Definition at line 138 of file oct-tex-lexer.cc.
#define yylex_destroy octave_tex_lex_destroy |
Definition at line 162 of file oct-tex-lexer.cc.
#define yylex_init octave_tex_lex_init |
Definition at line 150 of file oct-tex-lexer.cc.
#define yylex_init_extra octave_tex_lex_init_extra |
Definition at line 156 of file oct-tex-lexer.cc.
#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno) |
Definition at line 395 of file oct-tex-lexer.cc.
#define yylval yyg->yylval_r |
Definition at line 1046 of file oct-tex-lexer.cc.
#define yymore | ( | ) | yymore_used_but_not_detected |
Definition at line 955 of file oct-tex-lexer.cc.
#define yynoreturn |
Definition at line 371 of file oct-tex-lexer.cc.
#define yyout yyg->yyout_r |
Definition at line 391 of file oct-tex-lexer.cc.
#define yypop_buffer_state octave_tex_pop_buffer_state |
Definition at line 126 of file oct-tex-lexer.cc.
#define yypush_buffer_state octave_tex_push_buffer_state |
Definition at line 120 of file oct-tex-lexer.cc.
#define yyrealloc octave_tex_realloc |
Definition at line 276 of file oct-tex-lexer.cc.
#define yyrestart octave_tex_restart |
Definition at line 144 of file oct-tex-lexer.cc.
#define yyset_column octave_tex_set_column |
Definition at line 246 of file oct-tex-lexer.cc.
#define yyset_debug octave_tex_set_debug |
Definition at line 174 of file oct-tex-lexer.cc.
#define yyset_extra octave_tex_set_extra |
Definition at line 186 of file oct-tex-lexer.cc.
#define yyset_in octave_tex_set_in |
Definition at line 198 of file oct-tex-lexer.cc.
#define yyset_lineno octave_tex_set_lineno |
Definition at line 234 of file oct-tex-lexer.cc.
#define yyset_lval octave_tex_set_lval |
Definition at line 264 of file oct-tex-lexer.cc.
#define yyset_out octave_tex_set_out |
Definition at line 210 of file oct-tex-lexer.cc.
#define YYSTATE YY_START |
Definition at line 409 of file oct-tex-lexer.cc.
#define YYSTYPE OCTAVE_TEX_STYPE |
Definition at line 980 of file oct-tex-lexer.cc.
#define YYTABLES_NAME "yytables" |
Definition at line 3158 of file oct-tex-lexer.cc.
#define yyterminate | ( | ) | return YY_NULL |
Definition at line 1183 of file oct-tex-lexer.cc.
#define yytext yyg->yytext_r |
Definition at line 394 of file oct-tex-lexer.cc.
#define yytext_ptr yytext_r |
Definition at line 594 of file oct-tex-lexer.cc.
#define yywrap octave_tex_wrap |
Definition at line 252 of file oct-tex-lexer.cc.
typedef short int flex_int16_t |
Definition at line 320 of file oct-tex-lexer.cc.
typedef int flex_int32_t |
Definition at line 321 of file oct-tex-lexer.cc.
typedef signed char flex_int8_t |
Definition at line 319 of file oct-tex-lexer.cc.
typedef unsigned short int flex_uint16_t |
Definition at line 323 of file oct-tex-lexer.cc.
typedef unsigned int flex_uint32_t |
Definition at line 324 of file oct-tex-lexer.cc.
typedef unsigned char flex_uint8_t |
Definition at line 322 of file oct-tex-lexer.cc.
typedef struct yy_buffer_state* YY_BUFFER_STATE |
Definition at line 435 of file oct-tex-lexer.cc.
typedef flex_uint8_t YY_CHAR |
Definition at line 590 of file oct-tex-lexer.cc.
typedef size_t yy_size_t |
Definition at line 440 of file oct-tex-lexer.cc.
typedef int yy_state_type |
Definition at line 592 of file oct-tex-lexer.cc.
typedef void* yyscan_t |
Definition at line 385 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 2533 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 2561 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 2610 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 2741 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 2791 of file oct-tex-lexer.cc.
References n, 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 2778 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 2486 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 3169 of file oct-tex-lexer.cc.
References malloc().
void octave_tex_free | ( | void * | ptr, |
yyscan_t | yyscanner | ||
) |
Definition at line 3181 of file oct-tex-lexer.cc.
References free().
int octave_tex_get_column | ( | yyscan_t | yyscanner | ) |
Get the current column number.
yyscanner | The scanner object. |
Definition at line 2877 of file oct-tex-lexer.cc.
References YY_CURRENT_BUFFER, yycolumn, and yyguts_t.
int octave_tex_get_debug | ( | yyscan_t | yyscanner | ) |
Definition at line 2982 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 2855 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 2890 of file oct-tex-lexer.cc.
int octave_tex_get_leng | ( | yyscan_t | yyscanner | ) |
Get the length of the current token.
yyscanner | The scanner object. |
Definition at line 2908 of file oct-tex-lexer.cc.
int octave_tex_get_lineno | ( | yyscan_t | yyscanner | ) |
Get the current line number.
yyscanner | The scanner object. |
Definition at line 2864 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 2996 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 2899 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 2918 of file oct-tex-lexer.cc.
int octave_tex_lex | ( | OCTAVE_TEX_STYPE * | yylval_param, |
yyscan_t | 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.
int octave_tex_lex_destroy | ( | yyscan_t | yyscanner | ) |
Definition at line 3102 of file oct-tex-lexer.cc.
References YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_delete_buffer, yyfree, yyguts_t, and yypop_buffer_state.
int octave_tex_lex_init | ( | yyscan_t * | scanner | ) |
Definition at line 3014 of file oct-tex-lexer.cc.
int octave_tex_lex_init_extra | ( | void * | user_defined, |
yyscan_t * | scanner | ||
) |
Definition at line 3041 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 2671 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 2640 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 3175 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 2468 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.
void octave_tex_set_column | ( | int | _column_no, |
yyscan_t | yyscanner | ||
) |
Set the current column.
_column_no | column number |
yyscanner | The scanner object. |
Definition at line 2953 of file oct-tex-lexer.cc.
References YY_CURRENT_BUFFER, YY_FATAL_ERROR, yycolumn, and yyguts_t.
void octave_tex_set_debug | ( | int | debug_flag, |
yyscan_t | yyscanner | ||
) |
Definition at line 2988 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 2928 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 2970 of file oct-tex-lexer.cc.
void octave_tex_set_lineno | ( | int | _line_number, |
yyscan_t | yyscanner | ||
) |
Set the current line number.
_line_number | line number |
yyscanner | The scanner object. |
Definition at line 2938 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 3002 of file oct-tex-lexer.cc.
void octave_tex_set_out | ( | FILE * | _out_str, |
yyscan_t | yyscanner | ||
) |
Definition at line 2976 of file oct-tex-lexer.cc.