GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include "txt-eng.h"
#include "oct-tex-parser.h"
Go to the source code of this file.
Classes | |
struct | yy_buffer_state |
struct | yy_trans_info |
struct | yyguts_t |
Macros | |
#define | BEGIN yyg->yy_start = 1 + 2 * |
#define | ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0) |
#define | EOB_ACT_CONTINUE_SCAN 0 |
#define | EOB_ACT_END_OF_FILE 1 |
#define | EOB_ACT_LAST_MATCH 2 |
#define | FLEX_BETA |
#define | FLEX_SCANNER |
#define | FLEXINT_H |
#define | INITIAL 0 |
#define | INT16_MAX (32767) |
#define | INT16_MIN (-32767-1) |
#define | INT32_MAX (2147483647) |
#define | INT32_MIN (-2147483647-1) |
#define | INT8_MAX (127) |
#define | INT8_MIN (-128) |
#define | MAYBE_NUM_MODE 2 |
#define | NUM_MODE 1 |
#define | octave_tex_wrap(n) 1 |
#define | REJECT reject_used_but_not_detected |
#define | UINT16_MAX (65535U) |
#define | UINT32_MAX (4294967295U) |
#define | UINT8_MAX (255U) |
#define | unput(c) yyunput( c, yyg->yytext_ptr , yyscanner ) |
#define | YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
#define | YY_BREAK break; |
#define | YY_BUF_SIZE 16384 |
#define | YY_BUFFER_EOF_PENDING 2 |
#define | YY_BUFFER_NEW 0 |
#define | YY_BUFFER_NORMAL 1 |
#define | YY_CURRENT_BUFFER |
#define | YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] |
#define | YY_DECL |
#define | YY_DECL_IS_OURS 1 |
#define | YY_DO_BEFORE_ACTION |
#define | YY_END_OF_BUFFER 129 |
#define | YY_END_OF_BUFFER_CHAR 0 |
#define | YY_EXIT_FAILURE 2 |
#define | YY_EXTRA_TYPE void * |
#define | YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner) |
#define | yy_flex_debug yyg->yy_flex_debug_r |
#define | YY_FLEX_MAJOR_VERSION 2 |
#define | YY_FLEX_MINOR_VERSION 5 |
#define | YY_FLEX_SUBMINOR_VERSION 35 |
#define | YY_FLUSH_BUFFER octave_tex__flush_buffer(YY_CURRENT_BUFFER ,yyscanner) |
#define | YY_INPUT(buf, result, max_size) |
#define | YY_INT_ALIGNED short int |
#define | YY_LESS_LINENO(n) |
#define | YY_MORE_ADJ 0 |
#define | yy_new_buffer octave_tex__create_buffer |
#define | YY_NEW_FILE octave_tex_restart(yyin ,yyscanner ) |
#define | YY_NULL 0 |
#define | YY_NUM_RULES 128 |
#define | YY_READ_BUF_SIZE 8192 |
#define | YY_RESTORE_YY_MORE_OFFSET |
#define | YY_RULE_SETUP YY_USER_ACTION |
#define | YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) |
#define | yy_set_bol(at_bol) |
#define | yy_set_interactive(is_interactive) |
#define | YY_SKIP_YYWRAP |
#define | YY_START ((yyg->yy_start - 1) / 2) |
#define | YY_START_STACK_INCR 25 |
#define | YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
#define | YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) |
#define | YY_STRUCT_YY_BUFFER_STATE |
#define | YY_TYPEDEF_YY_BUFFER_STATE |
#define | YY_TYPEDEF_YY_SCANNER_T |
#define | YY_TYPEDEF_YY_SIZE_T |
#define | YY_USER_ACTION |
#define | yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column) |
#define | yyconst |
#define | yyextra yyg->yyextra_r |
#define | yyin yyg->yyin_r |
#define | yyleng yyg->yyleng_r |
#define | yyless(n) |
#define | yyless(n) |
#define | yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno) |
#define | yylval yyg->yylval_r |
#define | yymore() yymore_used_but_not_detected |
#define | yyout yyg->yyout_r |
#define | YYSTATE YY_START |
#define | YYTABLES_NAME "yytables" |
#define | yyterminate() return YY_NULL |
#define | yytext yyg->yytext_r |
#define | yytext_ptr yytext_r |
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 unsigned char | YY_CHAR |
typedef size_t | yy_size_t |
typedef int | yy_state_type |
typedef void * | yyscan_t |
Functions | |
static int | input (yyscan_t yyscanner) |
int | isatty (int) |
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. | |
static void | octave_tex__init_buffer (YY_BUFFER_STATE b, FILE *file, yyscan_t yyscanner) |
static void | octave_tex__load_buffer_state (yyscan_t yyscanner) |
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 (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 (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) |
static void | octave_tex_ensure_buffer_stack (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. | |
YYSTYPE * | 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 (YYSTYPE *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 (YYSTYPE *yylval_param, yyscan_t yyscanner) |
void | octave_tex_set_out (FILE *out_str, yyscan_t yyscanner) |
static void | yy_fatal_error (char msg[], yyscan_t yyscanner) |
static void | yy_fatal_error (char *msg, yyscan_t yyscanner) |
static int | yy_get_next_buffer (yyscan_t yyscanner) |
static yy_state_type | yy_get_previous_state (yyscan_t yyscanner) |
static int | yy_init_globals (yyscan_t yyscanner) |
static yy_state_type | yy_try_NUL_trans (yy_state_type current_state, yyscan_t yyscanner) |
static void | yyunput (int c, char *buf_ptr, yyscan_t yyscanner) |
static void | yyunput (int c, register char *yy_bp, yyscan_t yyscanner) |
Variables | |
static flex_int16_t | yy_accept [465] |
static flex_int16_t | yy_base [468] |
static flex_int16_t | yy_chk [533] |
static flex_int16_t | yy_def [468] |
static flex_int32_t | yy_ec [256] |
static flex_int32_t | yy_meta [50] |
static flex_int16_t | yy_nxt [533] |
#define BEGIN yyg->yy_start = 1 + 2 * |
Definition at line 149 of file oct-tex-lexer.cc.
Referenced by octave_tex_lex().
Definition at line 914 of file oct-tex-lexer.cc.
Referenced by octave_tex_lex(), raw_mode(), and KPty::setEcho().
#define EOB_ACT_CONTINUE_SCAN 0 |
Definition at line 188 of file oct-tex-lexer.cc.
Referenced by input(), octave_tex_lex(), and yy_get_next_buffer().
#define EOB_ACT_END_OF_FILE 1 |
Definition at line 189 of file oct-tex-lexer.cc.
Referenced by input(), octave_tex_lex(), and yy_get_next_buffer().
#define EOB_ACT_LAST_MATCH 2 |
Definition at line 190 of file oct-tex-lexer.cc.
Referenced by input(), octave_tex_lex(), and yy_get_next_buffer().
#define FLEX_BETA |
Definition at line 20 of file oct-tex-lexer.cc.
#define FLEX_SCANNER |
Definition at line 15 of file oct-tex-lexer.cc.
#define FLEXINT_H |
Definition at line 36 of file oct-tex-lexer.cc.
#define INITIAL 0 |
Definition at line 768 of file oct-tex-lexer.cc.
Referenced by octave_tex_lex().
#define INT16_MAX (32767) |
Definition at line 78 of file oct-tex-lexer.cc.
#define INT16_MIN (-32767-1) |
Definition at line 69 of file oct-tex-lexer.cc.
#define INT32_MAX (2147483647) |
Definition at line 81 of file oct-tex-lexer.cc.
#define INT32_MIN (-2147483647-1) |
Definition at line 72 of file oct-tex-lexer.cc.
#define INT8_MAX (127) |
Definition at line 75 of file oct-tex-lexer.cc.
#define INT8_MIN (-128) |
Definition at line 66 of file oct-tex-lexer.cc.
#define MAYBE_NUM_MODE 2 |
Definition at line 770 of file oct-tex-lexer.cc.
Referenced by octave_tex_lex().
#define NUM_MODE 1 |
Definition at line 769 of file oct-tex-lexer.cc.
Referenced by octave_tex_lex().
#define octave_tex_wrap | ( | n | ) | 1 |
Definition at line 343 of file oct-tex-lexer.cc.
Referenced by input(), and octave_tex_lex().
#define REJECT reject_used_but_not_detected |
Definition at line 711 of file oct-tex-lexer.cc.
#define UINT16_MAX (65535U) |
Definition at line 87 of file oct-tex-lexer.cc.
#define UINT32_MAX (4294967295U) |
Definition at line 90 of file oct-tex-lexer.cc.
#define UINT8_MAX (255U) |
Definition at line 84 of file oct-tex-lexer.cc.
#define unput | ( | c | ) | yyunput( c, yyg->yytext_ptr , yyscanner ) |
Definition at line 208 of file oct-tex-lexer.cc.
#define YY_AT_BOL | ( | ) | (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
Definition at line 339 of file oct-tex-lexer.cc.
#define YY_BREAK break; |
Definition at line 995 of file oct-tex-lexer.cc.
Referenced by octave_tex_lex().
#define YY_BUF_SIZE 16384 |
Definition at line 175 of file oct-tex-lexer.cc.
Referenced by octave_tex_lex(), and octave_tex_restart().
#define YY_BUFFER_EOF_PENDING 2 |
Definition at line 275 of file oct-tex-lexer.cc.
Referenced by yy_get_next_buffer().
#define YY_BUFFER_NEW 0 |
Definition at line 263 of file oct-tex-lexer.cc.
Referenced by octave_tex__flush_buffer(), octave_tex__scan_buffer(), and octave_tex_lex().
#define YY_BUFFER_NORMAL 1 |
Definition at line 264 of file oct-tex-lexer.cc.
Referenced by octave_tex_lex().
#define YY_CURRENT_BUFFER |
Definition at line 286 of file oct-tex-lexer.cc.
Referenced by octave_tex__delete_buffer(), octave_tex__flush_buffer(), octave_tex__init_buffer(), octave_tex__switch_to_buffer(), octave_tex_get_column(), octave_tex_get_lineno(), octave_tex_lex(), octave_tex_lex_destroy(), octave_tex_pop_buffer_state(), octave_tex_push_buffer_state(), octave_tex_restart(), octave_tex_set_column(), octave_tex_set_lineno(), and yy_get_next_buffer().
#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] |
Definition at line 293 of file oct-tex-lexer.cc.
Referenced by input(), octave_tex__delete_buffer(), octave_tex__load_buffer_state(), octave_tex__switch_to_buffer(), octave_tex_lex(), octave_tex_lex_destroy(), octave_tex_pop_buffer_state(), octave_tex_push_buffer_state(), octave_tex_restart(), yy_get_next_buffer(), and yyunput().
#define YY_DECL |
Definition at line 982 of file oct-tex-lexer.cc.
#define YY_DECL_IS_OURS 1 |
Definition at line 977 of file oct-tex-lexer.cc.
#define YY_DO_BEFORE_ACTION |
Definition at line 360 of file oct-tex-lexer.cc.
Referenced by octave_tex_lex().
#define YY_END_OF_BUFFER 129 |
Definition at line 368 of file oct-tex-lexer.cc.
Referenced by octave_tex_lex().
#define YY_END_OF_BUFFER_CHAR 0 |
Definition at line 164 of file oct-tex-lexer.cc.
Referenced by input(), octave_tex__flush_buffer(), octave_tex__scan_buffer(), octave_tex__scan_bytes(), and yy_get_next_buffer().
#define YY_EXIT_FAILURE 2 |
Definition at line 2562 of file oct-tex-lexer.cc.
Referenced by yy_fatal_error().
#define YY_EXTRA_TYPE void * |
Definition at line 781 of file oct-tex-lexer.cc.
#define YY_FATAL_ERROR | ( | msg | ) | yy_fatal_error( msg , yyscanner) |
Definition at line 968 of file oct-tex-lexer.cc.
Referenced by octave_tex__create_buffer(), octave_tex__scan_buffer(), octave_tex__scan_bytes(), octave_tex_ensure_buffer_stack(), octave_tex_lex(), yy_get_next_buffer(), and yyunput().
#define yy_flex_debug yyg->yy_flex_debug_r |
Definition at line 143 of file oct-tex-lexer.cc.
Referenced by octave_tex_get_debug(), and octave_tex_set_debug().
#define YY_FLEX_MAJOR_VERSION 2 |
Definition at line 16 of file oct-tex-lexer.cc.
#define YY_FLEX_MINOR_VERSION 5 |
Definition at line 17 of file oct-tex-lexer.cc.
#define YY_FLEX_SUBMINOR_VERSION 35 |
Definition at line 18 of file oct-tex-lexer.cc.
#define YY_FLUSH_BUFFER octave_tex__flush_buffer(YY_CURRENT_BUFFER ,yyscanner) |
Definition at line 307 of file oct-tex-lexer.cc.
#define YY_INPUT | ( | buf, | |
result, | |||
max_size | |||
) |
Definition at line 921 of file oct-tex-lexer.cc.
Referenced by yy_get_next_buffer().
#define YY_INT_ALIGNED short int |
Definition at line 11 of file oct-tex-lexer.cc.
#define YY_LESS_LINENO | ( | n | ) |
Definition at line 192 of file oct-tex-lexer.cc.
#define YY_MORE_ADJ 0 |
Definition at line 713 of file oct-tex-lexer.cc.
Referenced by octave_tex_lex(), yy_get_next_buffer(), and yy_get_previous_state().
#define yy_new_buffer octave_tex__create_buffer |
Definition at line 317 of file oct-tex-lexer.cc.
#define YY_NEW_FILE octave_tex_restart(yyin ,yyscanner ) |
Definition at line 162 of file oct-tex-lexer.cc.
Referenced by input(), and octave_tex_lex().
#define YY_NULL 0 |
Definition at line 119 of file oct-tex-lexer.cc.
#define YY_NUM_RULES 128 |
Definition at line 367 of file oct-tex-lexer.cc.
#define YY_READ_BUF_SIZE 8192 |
Definition at line 905 of file oct-tex-lexer.cc.
Referenced by yy_get_next_buffer().
#define YY_RESTORE_YY_MORE_OFFSET |
Definition at line 714 of file oct-tex-lexer.cc.
Referenced by octave_tex_lex().
#define YY_RULE_SETUP YY_USER_ACTION |
Definition at line 998 of file oct-tex-lexer.cc.
Referenced by octave_tex_lex().
Definition at line 126 of file oct-tex-lexer.cc.
Referenced by octave_tex_lex(), and yy_get_previous_state().
#define yy_set_bol | ( | at_bol | ) |
Definition at line 329 of file oct-tex-lexer.cc.
#define yy_set_interactive | ( | is_interactive | ) |
Definition at line 319 of file oct-tex-lexer.cc.
#define YY_SKIP_YYWRAP |
Definition at line 344 of file oct-tex-lexer.cc.
#define YY_START ((yyg->yy_start - 1) / 2) |
Definition at line 155 of file oct-tex-lexer.cc.
Referenced by octave_tex_lex().
#define YY_START_STACK_INCR 25 |
Definition at line 963 of file oct-tex-lexer.cc.
#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
Definition at line 181 of file oct-tex-lexer.cc.
#define YY_STATE_EOF | ( | state | ) | (YY_END_OF_BUFFER + state + 1) |
Definition at line 159 of file oct-tex-lexer.cc.
Referenced by octave_tex_lex().
#define YY_STRUCT_YY_BUFFER_STATE |
Definition at line 216 of file oct-tex-lexer.cc.
#define YY_TYPEDEF_YY_BUFFER_STATE |
Definition at line 184 of file oct-tex-lexer.cc.
#define YY_TYPEDEF_YY_SCANNER_T |
Definition at line 130 of file oct-tex-lexer.cc.
#define YY_TYPEDEF_YY_SIZE_T |
Definition at line 211 of file oct-tex-lexer.cc.
#define YY_USER_ACTION |
Definition at line 990 of file oct-tex-lexer.cc.
#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column) |
Definition at line 142 of file oct-tex-lexer.cc.
Referenced by octave_tex_get_column(), and octave_tex_set_column().
#define yyconst |
Definition at line 115 of file oct-tex-lexer.cc.
#define yyextra yyg->yyextra_r |
Definition at line 138 of file oct-tex-lexer.cc.
Referenced by octave_tex_get_extra(), and octave_tex_set_extra().
#define yyin yyg->yyin_r |
Definition at line 136 of file oct-tex-lexer.cc.
Referenced by input(), octave_tex__load_buffer_state(), octave_tex_get_in(), octave_tex_lex(), octave_tex_restart(), octave_tex_set_in(), yy_get_next_buffer(), and yy_init_globals().
#define yyleng yyg->yyleng_r |
Definition at line 139 of file oct-tex-lexer.cc.
Referenced by octave_tex_get_leng().
#define yyless | ( | n | ) |
Definition at line 2574 of file oct-tex-lexer.cc.
Referenced by octave_lex(), and octave_tex_lex().
#define yyless | ( | n | ) |
Definition at line 2574 of file oct-tex-lexer.cc.
#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno) |
Definition at line 141 of file oct-tex-lexer.cc.
Referenced by octave_tex_get_lineno(), and octave_tex_set_lineno().
#define yylval yyg->yylval_r |
Definition at line 824 of file oct-tex-lexer.cc.
Referenced by octave_tex_get_lval(), octave_tex_lex(), and octave_tex_set_lval().
#define yymore | ( | ) | yymore_used_but_not_detected |
Definition at line 712 of file oct-tex-lexer.cc.
#define yyout yyg->yyout_r |
Definition at line 137 of file oct-tex-lexer.cc.
Referenced by octave_tex_get_out(), octave_tex_lex(), octave_tex_set_out(), and yy_init_globals().
#define YYSTATE YY_START |
Definition at line 156 of file oct-tex-lexer.cc.
#define YYTABLES_NAME "yytables" |
Definition at line 2919 of file oct-tex-lexer.cc.
#define yyterminate | ( | ) | return YY_NULL |
Definition at line 958 of file oct-tex-lexer.cc.
Referenced by octave_tex_lex().
#define yytext yyg->yytext_r |
Definition at line 140 of file oct-tex-lexer.cc.
Referenced by octave_tex_get_text(), and octave_tex_lex().
#define yytext_ptr yytext_r |
Definition at line 350 of file oct-tex-lexer.cc.
typedef short int flex_int16_t |
Definition at line 58 of file oct-tex-lexer.cc.
typedef int flex_int32_t |
Definition at line 59 of file oct-tex-lexer.cc.
typedef signed char flex_int8_t |
Definition at line 57 of file oct-tex-lexer.cc.
typedef unsigned short int flex_uint16_t |
Definition at line 61 of file oct-tex-lexer.cc.
typedef unsigned int flex_uint32_t |
Definition at line 62 of file oct-tex-lexer.cc.
typedef unsigned char flex_uint8_t |
Definition at line 60 of file oct-tex-lexer.cc.
typedef struct yy_buffer_state* YY_BUFFER_STATE |
Definition at line 185 of file oct-tex-lexer.cc.
Definition at line 346 of file oct-tex-lexer.cc.
Definition at line 212 of file oct-tex-lexer.cc.
typedef int yy_state_type |
Definition at line 348 of file oct-tex-lexer.cc.
Definition at line 131 of file oct-tex-lexer.cc.
Definition at line 2128 of file oct-tex-lexer.cc.
References EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, octave_tex_restart(), octave_tex_wrap, yyguts_t::yy_c_buf_p, YY_CURRENT_BUFFER_LVALUE, yyguts_t::yy_did_buffer_switch_on_eof, YY_END_OF_BUFFER_CHAR, yy_get_next_buffer(), yyguts_t::yy_hold_char, yyguts_t::yy_n_chars, YY_NEW_FILE, and yyin.
Referenced by command_editor::do_insert_initial_input(), Fdlmread(), QUIWidgetCreator::input_finished(), install_input_fcns(), and octave_push_lexer::octave_push_lexer().
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 2269 of file oct-tex-lexer.cc.
References octave_tex__init_buffer(), octave_tex_alloc(), size(), yy_buffer_state::yy_buf_size, yy_buffer_state::yy_ch_buf, YY_FATAL_ERROR, and yy_buffer_state::yy_is_our_buffer.
Referenced by octave_tex_lex(), and octave_tex_restart().
void octave_tex__delete_buffer | ( | YY_BUFFER_STATE | b, |
yyscan_t | yyscanner | ||
) |
Destroy the buffer.
b | a buffer created with octave_tex__create_buffer() |
yyscanner | The scanner object. |
Definition at line 2297 of file oct-tex-lexer.cc.
References octave_tex_free(), yy_buffer_state::yy_ch_buf, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, and yy_buffer_state::yy_is_our_buffer.
Referenced by text_parser_tex::destroy_lexer(), text_parser_tex::init_lexer(), octave_tex_lex_destroy(), and octave_tex_pop_buffer_state().
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 2350 of file oct-tex-lexer.cc.
References octave_tex__load_buffer_state(), yy_buffer_state::yy_at_bol, yy_buffer_state::yy_buf_pos, YY_BUFFER_NEW, yy_buffer_state::yy_buffer_status, yy_buffer_state::yy_ch_buf, YY_CURRENT_BUFFER, YY_END_OF_BUFFER_CHAR, and yy_buffer_state::yy_n_chars.
Referenced by octave_tex__init_buffer().
|
static |
Definition at line 2321 of file oct-tex-lexer.cc.
References isatty(), octave_tex__flush_buffer(), yy_buffer_state::yy_bs_column, yy_buffer_state::yy_bs_lineno, YY_CURRENT_BUFFER, yy_buffer_state::yy_fill_buffer, yy_buffer_state::yy_input_file, and yy_buffer_state::yy_is_interactive.
Referenced by octave_tex__create_buffer(), and octave_tex_restart().
Definition at line 2254 of file oct-tex-lexer.cc.
References yyguts_t::yy_c_buf_p, YY_CURRENT_BUFFER_LVALUE, yyguts_t::yy_hold_char, yyguts_t::yy_n_chars, and yyin.
Referenced by octave_tex__flush_buffer(), octave_tex__switch_to_buffer(), octave_tex_lex(), octave_tex_pop_buffer_state(), octave_tex_push_buffer_state(), and octave_tex_restart().
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 2481 of file oct-tex-lexer.cc.
References octave_tex__switch_to_buffer(), octave_tex_alloc(), yy_buffer_state::yy_at_bol, yy_buffer_state::yy_buf_pos, yy_buffer_state::yy_buf_size, YY_BUFFER_NEW, yy_buffer_state::yy_buffer_status, yy_buffer_state::yy_ch_buf, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, yy_buffer_state::yy_fill_buffer, yy_buffer_state::yy_input_file, yy_buffer_state::yy_is_interactive, yy_buffer_state::yy_is_our_buffer, and yy_buffer_state::yy_n_chars.
Referenced by octave_tex__scan_bytes().
YY_BUFFER_STATE octave_tex__scan_bytes | ( | char * | yybytes, |
int | _yybytes_len, | ||
yyscan_t | yyscanner | ||
) |
Setup the input buffer state to scan the given bytes.
The next call to octave_tex_lex() 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 2531 of file oct-tex-lexer.cc.
References octave_tex__scan_buffer(), octave_tex_alloc(), YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, and yy_buffer_state::yy_is_our_buffer.
Referenced by text_parser_tex::init_lexer(), and octave_tex__scan_string().
YY_BUFFER_STATE octave_tex__scan_string | ( | char * | yystr, |
yyscan_t | yyscanner | ||
) |
Setup the input buffer state to scan a string.
The next call to octave_tex_lex() will scan from a copy of str.
yystr | a NUL-terminated string to scan |
yyscanner | The scanner object. |
Definition at line 2518 of file oct-tex-lexer.cc.
References octave_tex__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 2222 of file oct-tex-lexer.cc.
References octave_tex__load_buffer_state(), octave_tex_ensure_buffer_stack(), yyguts_t::yy_c_buf_p, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yyguts_t::yy_did_buffer_switch_on_eof, yyguts_t::yy_hold_char, and yyguts_t::yy_n_chars.
Referenced by octave_tex__scan_buffer().
Definition at line 2897 of file oct-tex-lexer.cc.
Referenced by octave_tex__create_buffer(), octave_tex__scan_buffer(), octave_tex__scan_bytes(), octave_tex_ensure_buffer_stack(), octave_tex_lex_init(), and octave_tex_lex_init_extra().
Definition at line 2431 of file oct-tex-lexer.cc.
References octave_tex_alloc(), octave_tex_realloc(), yyguts_t::yy_buffer_stack, yyguts_t::yy_buffer_stack_max, yyguts_t::yy_buffer_stack_top, and YY_FATAL_ERROR.
Referenced by octave_tex__switch_to_buffer(), octave_tex_lex(), octave_tex_push_buffer_state(), and octave_tex_restart().
Definition at line 2914 of file oct-tex-lexer.cc.
Referenced by octave_tex__delete_buffer(), and octave_tex_lex_destroy().
Get the current column number.
yyscanner | The scanner object. |
Definition at line 2615 of file oct-tex-lexer.cc.
References YY_CURRENT_BUFFER, and yycolumn.
Definition at line 2720 of file oct-tex-lexer.cc.
References yy_flex_debug.
Get the user-defined data for this scanner.
yyscanner | The scanner object. |
Definition at line 2593 of file oct-tex-lexer.cc.
References yyextra.
FILE * octave_tex_get_in | ( | yyscan_t | yyscanner | ) |
Get the input stream.
yyscanner | The scanner object. |
Definition at line 2628 of file oct-tex-lexer.cc.
References yyin.
Get the length of the current token.
yyscanner | The scanner object. |
Definition at line 2646 of file oct-tex-lexer.cc.
References yyleng.
Get the current line number.
yyscanner | The scanner object. |
Definition at line 2602 of file oct-tex-lexer.cc.
References YY_CURRENT_BUFFER, and yylineno.
Definition at line 2734 of file oct-tex-lexer.cc.
References yylval.
FILE * octave_tex_get_out | ( | yyscan_t | yyscanner | ) |
Get the output stream.
yyscanner | The scanner object. |
Definition at line 2637 of file oct-tex-lexer.cc.
References yyout.
Get the current token.
yyscanner | The scanner object. |
Definition at line 2656 of file oct-tex-lexer.cc.
References yytext.
The main scanner function which does all the work.
Definition at line 1003 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, octave_tex__create_buffer(), octave_tex__load_buffer_state(), octave_tex_ensure_buffer_stack(), octave_tex_wrap, 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_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_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(), yyin, yyless, yylval, yyout, yyterminate, and yytext.
Definition at line 2844 of file oct-tex-lexer.cc.
References octave_tex__delete_buffer(), octave_tex_free(), octave_tex_pop_buffer_state(), yyguts_t::yy_buffer_stack, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_init_globals(), and yyguts_t::yy_start_stack.
Referenced by text_parser_tex::destroy_lexer().
Definition at line 2753 of file oct-tex-lexer.cc.
References octave_tex_alloc(), and yy_init_globals().
Referenced by text_parser_tex::init_lexer().
Definition at line 2782 of file oct-tex-lexer.cc.
References octave_tex_alloc(), octave_tex_set_extra(), and yy_init_globals().
Removes and deletes the top of the stack, if present.
The next element becomes the new top.
yyscanner | The scanner object. |
Definition at line 2411 of file oct-tex-lexer.cc.
References octave_tex__delete_buffer(), octave_tex__load_buffer_state(), yyguts_t::yy_buffer_stack_top, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, and yyguts_t::yy_did_buffer_switch_on_eof.
Referenced by octave_tex_lex_destroy().
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 2380 of file oct-tex-lexer.cc.
References octave_tex__load_buffer_state(), octave_tex_ensure_buffer_stack(), yyguts_t::yy_buffer_stack_top, yyguts_t::yy_c_buf_p, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yyguts_t::yy_did_buffer_switch_on_eof, yyguts_t::yy_hold_char, and yyguts_t::yy_n_chars.
Definition at line 2902 of file oct-tex-lexer.cc.
Referenced by octave_tex_ensure_buffer_stack(), and yy_get_next_buffer().
Immediately switch to a different input stream.
input_file | A readable stream. |
yyscanner | The scanner object. |
INITIAL
. Definition at line 2204 of file oct-tex-lexer.cc.
References octave_tex__create_buffer(), octave_tex__init_buffer(), octave_tex__load_buffer_state(), octave_tex_ensure_buffer_stack(), YY_BUF_SIZE, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, and yyin.
Referenced by input(), and yy_get_next_buffer().
Set the current column.
line_number | |
yyscanner | The scanner object. |
Definition at line 2691 of file oct-tex-lexer.cc.
References YY_CURRENT_BUFFER, yy_fatal_error(), and yycolumn.
Definition at line 2726 of file oct-tex-lexer.cc.
References yy_flex_debug.
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 2666 of file oct-tex-lexer.cc.
References yyextra.
Referenced by octave_tex_lex_init_extra().
Set the input stream.
This does not discard the current input buffer.
in_str | A readable stream. |
yyscanner | The scanner object. |
Definition at line 2708 of file oct-tex-lexer.cc.
References yyin.
Set the current line number.
line_number | |
yyscanner | The scanner object. |
Definition at line 2676 of file oct-tex-lexer.cc.
References YY_CURRENT_BUFFER, yy_fatal_error(), and yylineno.
Definition at line 2740 of file oct-tex-lexer.cc.
References yylval.
Definition at line 2714 of file oct-tex-lexer.cc.
References yyout.
Definition at line 2565 of file oct-tex-lexer.cc.
References void(), and YY_EXIT_FAILURE.
Definition at line 1894 of file oct-tex-lexer.cc.
References EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, octave_tex_realloc(), octave_tex_restart(), yy_buffer_state::yy_buf_size, YY_BUFFER_EOF_PENDING, yyguts_t::yy_c_buf_p, yy_buffer_state::yy_ch_buf, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, YY_INPUT, yy_buffer_state::yy_is_our_buffer, YY_MORE_ADJ, yyguts_t::yy_n_chars, YY_READ_BUF_SIZE, and yyin.
Referenced by input(), and octave_tex_lex().
|
static |
Definition at line 2029 of file oct-tex-lexer.cc.
References yy_accept, yy_base, yyguts_t::yy_c_buf_p, yy_chk, yy_def, yy_ec, yyguts_t::yy_last_accepting_cpos, yyguts_t::yy_last_accepting_state, yy_meta, YY_MORE_ADJ, yy_nxt, YY_SC_TO_UI, and yyguts_t::yy_start.
Referenced by octave_tex_lex().
Definition at line 2810 of file oct-tex-lexer.cc.
References yyguts_t::yy_buffer_stack, yyguts_t::yy_buffer_stack_max, yyguts_t::yy_buffer_stack_top, yyguts_t::yy_c_buf_p, yyguts_t::yy_init, yyguts_t::yy_start, yyguts_t::yy_start_stack, yyguts_t::yy_start_stack_depth, yyguts_t::yy_start_stack_ptr, yyin, and yyout.
Referenced by octave_tex_lex_destroy(), octave_tex_lex_init(), and octave_tex_lex_init_extra().
|
static |
Definition at line 2062 of file oct-tex-lexer.cc.
References yy_accept, yy_base, yyguts_t::yy_c_buf_p, yy_chk, yy_def, yyguts_t::yy_last_accepting_cpos, yyguts_t::yy_last_accepting_state, yy_meta, and yy_nxt.
Referenced by octave_tex_lex().
Referenced by octave_base_lexer::xunput().
Definition at line 2086 of file oct-tex-lexer.cc.
References yyguts_t::yy_c_buf_p, YY_CURRENT_BUFFER_LVALUE, YY_FATAL_ERROR, yyguts_t::yy_hold_char, and yyguts_t::yy_n_chars.
|
static |
Definition at line 376 of file oct-tex-lexer.cc.
Referenced by octave_tex_lex(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 472 of file oct-tex-lexer.cc.
Referenced by octave_tex_lex(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 645 of file oct-tex-lexer.cc.
Referenced by octave_tex_lex(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 527 of file oct-tex-lexer.cc.
Referenced by octave_tex_lex(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 431 of file oct-tex-lexer.cc.
Referenced by octave_tex_lex(), and yy_get_previous_state().
|
static |
Definition at line 463 of file oct-tex-lexer.cc.
Referenced by octave_tex_lex(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 582 of file oct-tex-lexer.cc.
Referenced by octave_tex_lex(), yy_get_previous_state(), and yy_try_NUL_trans().