#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <cctype>
#include <cstring>
#include <iostream>
#include <set>
#include <sstream>
#include <string>
#include <stack>
#include "cmd-edit.h"
#include "lo-mappers.h"
#include "quit.h"
#include "unistd-wrappers.h"
#include "Cell.h"
#include "defun.h"
#include "error.h"
#include "errwarn.h"
#include "input.h"
#include "interpreter.h"
#include "lex.h"
#include "octave.h"
#include "ov.h"
#include "parse.h"
#include "pt-all.h"
#include "symtab.h"
#include "token.h"
#include "utils.h"
#include "variables.h"
#include "oct-parse.h"
#include "oct-gperf.h"
Go to the source code of this file.
Classes | |
struct | yy_buffer_state |
struct | yy_trans_info |
struct | yyguts_t |
Namespaces | |
octave | |
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 | |
static void | display_character (char c) |
OCTAVE_EXPORT octave_value_list | Fiskeyword (const octave_value_list &args, int) |
static int | input (yyscan_t yyscanner) |
static bool | is_space_or_tab (char c) |
static bool | is_space_or_tab_or_eol (char c) |
bool | octave::iskeyword (const std::string &s) |
static bool | looks_like_bin (const char *s, int len) |
static bool | looks_like_copyright (const std::string &s) |
static bool | looks_like_hex (const char *s, int len) |
static bool | looks_like_shebang (const std::string &s) |
YY_BUFFER_STATE | octave__create_buffer (FILE *file, int size, yyscan_t yyscanner) |
Allocate and initialize an input buffer state. More... | |
void | octave__delete_buffer (YY_BUFFER_STATE b, yyscan_t yyscanner) |
Destroy the buffer. More... | |
void | octave__flush_buffer (YY_BUFFER_STATE b, yyscan_t yyscanner) |
Discard all buffered characters. More... | |
static void | octave__init_buffer (YY_BUFFER_STATE b, FILE *file, yyscan_t yyscanner) |
static void | octave__load_buffer_state (yyscan_t yyscanner) |
YY_BUFFER_STATE | octave__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__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__scan_string (const char *yystr, yyscan_t yyscanner) |
Setup the input buffer state to scan a string. More... | |
void | octave__switch_to_buffer (YY_BUFFER_STATE new_buffer, yyscan_t yyscanner) |
Switch to a different input buffer. More... | |
void * | octave_alloc (yy_size_t, yyscan_t yyscanner) |
static void | octave_ensure_buffer_stack (yyscan_t yyscanner) |
void | octave_free (void *, yyscan_t yyscanner) |
int | octave_get_column (yyscan_t yyscanner) |
Get the current column number. More... | |
int | octave_get_debug (yyscan_t yyscanner) |
octave::base_lexer * | octave_get_extra (yyscan_t yyscanner) |
Get the user-defined data for this scanner. More... | |
FILE * | octave_get_in (yyscan_t yyscanner) |
Get the input stream. More... | |
int | octave_get_leng (yyscan_t yyscanner) |
Get the length of the current token. More... | |
int | octave_get_lineno (yyscan_t yyscanner) |
Get the current line number. More... | |
OCTAVE_STYPE * | octave_get_lval (yyscan_t yyscanner) |
FILE * | octave_get_out (yyscan_t yyscanner) |
Get the output stream. More... | |
char * | octave_get_text (yyscan_t yyscanner) |
Get the current token. More... | |
int | octave_lex (OCTAVE_STYPE *yylval_param, yyscan_t yyscanner) |
The main scanner function which does all the work. More... | |
int | octave_lex_destroy (yyscan_t yyscanner) |
int | octave_lex_init (yyscan_t *scanner) |
int | octave_lex_init_extra (octave::base_lexer *user_defined, yyscan_t *scanner) |
void | octave_pop_buffer_state (yyscan_t yyscanner) |
Removes and deletes the top of the stack, if present. More... | |
void | octave_push_buffer_state (YY_BUFFER_STATE new_buffer, yyscan_t yyscanner) |
Pushes the new state onto the stack. More... | |
void * | octave_realloc (void *, yy_size_t, yyscan_t yyscanner) |
void | octave_restart (FILE *input_file, yyscan_t yyscanner) |
Immediately switch to a different input stream. More... | |
void | octave_set_column (int _column_no, yyscan_t yyscanner) |
Set the current column. More... | |
void | octave_set_debug (int debug_flag, yyscan_t yyscanner) |
void | octave_set_extra (octave::base_lexer *user_defined, yyscan_t yyscanner) |
Set the user-defined data. More... | |
void | octave_set_in (FILE *_in_str, yyscan_t yyscanner) |
Set the input stream. More... | |
void | octave_set_lineno (int _line_number, yyscan_t yyscanner) |
Set the current line number. More... | |
void | octave_set_lval (OCTAVE_STYPE *yylval_param, yyscan_t yyscanner) |
void | octave_set_out (FILE *_out_str, yyscan_t yyscanner) |
static void | yy_fatal_error (const 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) |
Variables | |
static const flex_int16_t | yy_accept [308] |
static const flex_int16_t | yy_base [348] |
static const flex_int16_t | yy_chk [1105] |
static const flex_int16_t | yy_def [348] |
static const YY_CHAR | yy_ec [256] |
static const YY_CHAR | yy_meta [55] |
static const flex_int16_t | yy_nxt [1105] |
#define CMD_OR_COMPUTED_ASSIGN_OP | ( | PATTERN, | |
TOK | |||
) |
#define CMD_OR_OP | ( | PATTERN, | |
TOK, | |||
COMPAT | |||
) |
#define CMD_OR_UNARY_OP | ( | PATTERN, | |
TOK, | |||
COMPAT | |||
) |
#define HANDLE_EOB_OR_EOF | ( | STATUS | ) |
#define HANDLE_STRING_CONTINUATION |
#define isatty octave_isatty_wrapper |
#define unput | ( | c | ) | yyunput( c, yyg->yytext_ptr , yyscanner ) |
#define YY_AT_BOL | ( | ) | (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
#define yy_create_buffer octave__create_buffer |
#define YY_CURRENT_BUFFER |
#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] |
#define YY_DECL |
#define yy_delete_buffer octave__delete_buffer |
#define YY_DO_BEFORE_ACTION |
#define YY_EXTRA_TYPE octave::base_lexer * |
#define YY_FATAL_ERROR | ( | msg | ) | (yyget_extra (yyscanner))->fatal_error (msg) |
#define yy_flush_buffer octave__flush_buffer |
#define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER , yyscanner) |
#define yy_init_buffer octave__init_buffer |
#define YY_INPUT | ( | buf, | |
result, | |||
max_size | |||
) | result = curr_lexer->fill_flex_buffer (buf, max_size) |
#define yy_load_buffer_state octave__load_buffer_state |
#define yy_new_buffer yy_create_buffer |
#define YY_RULE_SETUP |
#define yy_scan_buffer octave__scan_buffer |
#define yy_scan_bytes octave__scan_bytes |
#define yy_scan_string octave__scan_string |
#define yy_set_bol | ( | at_bol | ) |
#define yy_set_interactive | ( | is_interactive | ) |
#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_switch_to_buffer octave__switch_to_buffer |
#define yyalloc octave_alloc |
#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column) |
#define yyensure_buffer_stack octave_ensure_buffer_stack |
#define yyfree octave_free |
#define yyget_column octave_get_column |
#define yyget_debug octave_get_debug |
#define yyget_extra octave_get_extra |
#define yyget_in octave_get_in |
#define yyget_leng octave_get_leng |
#define yyget_lineno octave_get_lineno |
#define yyget_lval octave_get_lval |
#define yyget_out octave_get_out |
#define yyget_text octave_get_text |
#define yyless | ( | n | ) |
#define yyless | ( | n | ) |
#define yylex octave_lex |
#define yylex_destroy octave_lex_destroy |
#define yylex_init octave_lex_init |
#define yylex_init_extra octave_lex_init_extra |
#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno) |
#define yypop_buffer_state octave_pop_buffer_state |
#define yypush_buffer_state octave_push_buffer_state |
#define yyrealloc octave_realloc |
#define yyrestart octave_restart |
#define yyset_column octave_set_column |
#define yyset_debug octave_set_debug |
#define yyset_extra octave_set_extra |
#define yyset_in octave_set_in |
#define yyset_lineno octave_set_lineno |
#define yyset_lval octave_set_lval |
#define yyset_out octave_set_out |
#define YYSTYPE OCTAVE_STYPE |
#define yywrap octave_wrap |
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 int yy_state_type |
|
static |
Definition at line 4818 of file lex.cc.
Referenced by octave::base_lexer::text_yyinput(), and octave::base_lexer::xunput().
OCTAVE_EXPORT octave_value_list Fiskeyword | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4971 of file lex.cc.
References octave::iskeyword(), name, octave_kw::name, print_usage(), string_vector::resize(), retval, string_vector::sort(), TOTAL_KEYWORDS, and wordlist.
Referenced by octave::file_editor_tab::update_lexer_settings().
|
static |
Definition at line 4021 of file lex.cc.
References EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, 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, yyin, yyrestart, and yywrap.
Referenced by octave::push_lexer::append_input(), and octave::base_lexer::input_buffer::fill().
|
inlinestatic |
Definition at line 1270 of file lex.cc.
Referenced by octave::base_lexer::handle_continuation(), octave::base_lexer::handle_fq_identifier(), octave::base_lexer::handle_meta_identifier(), octave::base_lexer::handle_superclass_identifier(), octave::base_lexer::looking_at_space(), octave::base_lexer::maybe_unput_comma_before_unary_op(), and octave_lex().
|
inlinestatic |
Definition at line 5798 of file lex.cc.
References len.
Referenced by octave::base_lexer::handle_number().
|
static |
Definition at line 5219 of file lex.cc.
Referenced by octave::base_lexer::finish_comment().
|
inlinestatic |
Definition at line 5804 of file lex.cc.
References len.
Referenced by octave::base_lexer::handle_number().
|
static |
Definition at line 5236 of file lex.cc.
Referenced by octave::base_lexer::finish_comment().
YY_BUFFER_STATE octave__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 4164 of file lex.cc.
References yy_buffer_state::yy_buf_size, yy_buffer_state::yy_ch_buf, YY_FATAL_ERROR, yy_init_buffer, yy_buffer_state::yy_is_our_buffer, and yyalloc.
void octave__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 4192 of file lex.cc.
References yy_buffer_state::yy_ch_buf, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_buffer_state::yy_is_our_buffer, and yyfree.
void octave__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 4241 of file lex.cc.
References 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, yy_load_buffer_state, and yy_buffer_state::yy_n_chars.
|
static |
Definition at line 4212 of file lex.cc.
References isatty, yy_buffer_state::yy_bs_column, yy_buffer_state::yy_bs_lineno, YY_CURRENT_BUFFER, yy_buffer_state::yy_fill_buffer, yy_flush_buffer, yy_buffer_state::yy_input_file, and yy_buffer_state::yy_is_interactive.
|
static |
Definition at line 4149 of file lex.cc.
References yyguts_t::yy_c_buf_p, YY_CURRENT_BUFFER_LVALUE, yyguts_t::yy_hold_char, yyguts_t::yy_n_chars, and yyin.
YY_BUFFER_STATE octave__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 4372 of file lex.cc.
References 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, yy_buffer_state::yy_n_chars, yy_switch_to_buffer, and yyalloc.
YY_BUFFER_STATE octave__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 4422 of file lex.cc.
References n, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, yy_buffer_state::yy_is_our_buffer, yy_scan_buffer, and yyalloc.
YY_BUFFER_STATE octave__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 4409 of file lex.cc.
References strlen(), and yy_scan_bytes.
void octave__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 4117 of file lex.cc.
References 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, yy_load_buffer_state, yyguts_t::yy_n_chars, and yyensure_buffer_stack.
void * octave_alloc | ( | yy_size_t | size, |
yyscan_t | yyscanner | ||
) |
|
static |
Definition at line 4322 of file lex.cc.
References yyguts_t::yy_buffer_stack, yyguts_t::yy_buffer_stack_max, yyguts_t::yy_buffer_stack_top, YY_FATAL_ERROR, yyalloc, and yyrealloc.
void octave_free | ( | void * | ptr, |
yyscan_t | yyscanner | ||
) |
int octave_get_column | ( | yyscan_t | yyscanner | ) |
Get the current column number.
yyscanner | The scanner object. |
Definition at line 4508 of file lex.cc.
References YY_CURRENT_BUFFER, and yycolumn.
int octave_get_debug | ( | yyscan_t | yyscanner | ) |
Definition at line 4613 of file lex.cc.
References yy_flex_debug.
octave::base_lexer * octave_get_extra | ( | yyscan_t | yyscanner | ) |
FILE * octave_get_in | ( | yyscan_t | yyscanner | ) |
int octave_get_leng | ( | yyscan_t | yyscanner | ) |
int octave_get_lineno | ( | yyscan_t | yyscanner | ) |
Get the current line number.
yyscanner | The scanner object. |
Definition at line 4495 of file lex.cc.
References YY_CURRENT_BUFFER, and yylineno.
OCTAVE_STYPE * octave_get_lval | ( | yyscan_t | yyscanner | ) |
FILE * octave_get_out | ( | yyscan_t | yyscanner | ) |
char * octave_get_text | ( | yyscan_t | yyscanner | ) |
int octave_lex | ( | OCTAVE_STYPE * | yylval_param, |
yyscan_t | yyscanner | ||
) |
The main scanner function which does all the work.
Definition at line 1550 of file lex.cc.
References ADD_EQ, AND_EQ, octave::comment_elt::block, BLOCK_COMMENT_START, CMD_OR_COMPUTED_ASSIGN_OP, CMD_OR_OP, CMD_OR_UNARY_OP, COMMAND_START, curr_lexer, DIV_EQ, DQ_STRING, DQ_STRING_START, ECHO, EDIV, EDIV_EQ, ELEFTDIV, ELEFTDIV_EQ, EMINUS, EMUL, EMUL_EQ, octave::comment_elt::end_of_line, EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, EPLUS, EPOW, EPOW_EQ, EXPR_AND, EXPR_AND_AND, EXPR_EQ, EXPR_GE, EXPR_GT, EXPR_LE, EXPR_LT, EXPR_NE, EXPR_NOT, EXPR_OR, EXPR_OR_OR, FCN_HANDLE, FQ_IDENT_START, octave::comment_elt::full_line, HANDLE_EOB_OR_EOF, HANDLE_IDENTIFIER, HANDLE_STRING_CONTINUATION, HERMITIAN, IMAG_NUM, INITIAL, INPUT_FILE, INPUT_FILE_START, is_space_or_tab(), octave::iskeyword(), LEFTDIV, LEFTDIV_EQ, LEXICAL_ERROR, LINE_COMMENT_START, MATRIX_START, MINUS_MINUS, MUL_EQ, NUM, OR_EQ, PLUS_PLUS, POW, POW_EQ, SQ_STRING, SQ_STRING_START, SUB_EQ, octave::token::token_value(), TRANSPOSE, octave::undo_string_escape(), warning_with_id(), yy_accept, YY_AT_BOL, yy_base, YY_BREAK, YY_BUF_SIZE, YY_BUFFER_NEW, YY_BUFFER_NORMAL, yyguts_t::yy_c_buf_p, yy_chk, yy_create_buffer, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_def, yyguts_t::yy_did_buffer_switch_on_eof, YY_DO_BEFORE_ACTION, yy_ec, YY_END_OF_BUFFER, YY_FATAL_ERROR, yy_get_next_buffer(), yy_get_previous_state(), yyguts_t::yy_hold_char, yyguts_t::yy_init, yyguts_t::yy_last_accepting_cpos, yyguts_t::yy_last_accepting_state, yy_load_buffer_state, yy_meta, YY_MORE_ADJ, yyguts_t::yy_n_chars, YY_NEW_FILE, yy_nxt, YY_RESTORE_YY_MORE_OFFSET, YY_RULE_SETUP, YY_SC_TO_UI, YY_START, yyguts_t::yy_start, YY_STATE_EOF, yy_try_NUL_trans(), yyensure_buffer_stack, yyin, yyleng, yyless, yylval, yyout, yytext, and yywrap.
Referenced by octave::push_parser::run().
int octave_lex_destroy | ( | yyscan_t | yyscanner | ) |
Definition at line 4733 of file lex.cc.
References yyguts_t::yy_buffer_stack, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_delete_buffer, yy_init_globals(), yyguts_t::yy_start_stack, yyfree, and yypop_buffer_state.
int octave_lex_init | ( | yyscan_t * | scanner | ) |
Definition at line 4645 of file lex.cc.
References yy_init_globals(), and yyalloc.
int octave_lex_init_extra | ( | octave::base_lexer * | user_defined, |
yyscan_t * | scanner | ||
) |
Definition at line 4672 of file lex.cc.
References yy_init_globals(), yyalloc, and yyset_extra.
void octave_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 4302 of file lex.cc.
References yyguts_t::yy_buffer_stack_top, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_delete_buffer, yyguts_t::yy_did_buffer_switch_on_eof, and yy_load_buffer_state.
void octave_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 4271 of file lex.cc.
References 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, yy_load_buffer_state, yyguts_t::yy_n_chars, and yyensure_buffer_stack.
void octave_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 4099 of file lex.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, and yyin.
void octave_set_column | ( | int | _column_no, |
yyscan_t | yyscanner | ||
) |
Set the current column.
_column_no | column number |
yyscanner | The scanner object. |
Definition at line 4584 of file lex.cc.
References YY_CURRENT_BUFFER, YY_FATAL_ERROR, and yycolumn.
void octave_set_debug | ( | int | debug_flag, |
yyscan_t | yyscanner | ||
) |
Definition at line 4619 of file lex.cc.
References yy_flex_debug.
void octave_set_extra | ( | octave::base_lexer * | user_defined, |
yyscan_t | yyscanner | ||
) |
void octave_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 4601 of file lex.cc.
References yyin.
void octave_set_lineno | ( | int | _line_number, |
yyscan_t | yyscanner | ||
) |
Set the current line number.
_line_number | line number |
yyscanner | The scanner object. |
Definition at line 4569 of file lex.cc.
References YY_CURRENT_BUFFER, YY_FATAL_ERROR, and yylineno.
void octave_set_lval | ( | OCTAVE_STYPE * | yylval_param, |
yyscan_t | yyscanner | ||
) |
void octave_set_out | ( | FILE * | _out_str, |
yyscan_t | yyscanner | ||
) |
|
static |
Definition at line 4456 of file lex.cc.
References YY_EXIT_FAILURE.
|
static |
Definition at line 3777 of file lex.cc.
References EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, 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_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, yyin, yyrealloc, and yyrestart.
Referenced by input(), and octave_lex().
|
static |
Definition at line 3916 of file lex.cc.
References yy_accept, YY_AT_BOL, 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_lex().
|
static |
Definition at line 4699 of file lex.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_lex_destroy(), octave_lex_init(), and octave_lex_init_extra().
|
static |
Definition at line 3950 of file lex.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_lex().
|
static |
Definition at line 3977 of file lex.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.
Referenced by octave::base_lexer::xunput().
|
static |
Definition at line 622 of file lex.cc.
Referenced by octave_lex(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 702 of file lex.cc.
Referenced by octave_lex(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 912 of file lex.cc.
Referenced by octave_lex(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 744 of file lex.cc.
Referenced by octave_lex(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 660 of file lex.cc.
Referenced by octave_lex(), and yy_get_previous_state().
|
static |
Definition at line 692 of file lex.cc.
Referenced by octave_lex(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 786 of file lex.cc.
Referenced by octave_lex(), yy_get_previous_state(), and yy_try_NUL_trans().