#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <cctype>
#include <cstring>
#include <algorithm>
#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-magic-int.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 |
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 uint64_t | flintmax (void) |
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 | 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) |
static octave_value | make_integer_value (uintmax_t long_int_val, bool unsigned_val, int bytes) |
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 [314] |
static const flex_int16_t | yy_base [358] |
static const flex_int16_t | yy_chk [1288] |
static const flex_int16_t | yy_def [358] |
static const YY_CHAR | yy_ec [256] |
static const YY_CHAR | yy_meta [61] |
static const flex_int16_t | yy_nxt [1288] |
#define CMD_OR_DEPRECATED_OP | ( | PATTERN, | |
REPLACEMENT, | |||
VERSION, | |||
TOK | |||
) |
#define CMD_OR_OP | ( | PATTERN, | |
TOK, | |||
COMPAT | |||
) |
#define CMD_OR_UNARY_OP | ( | PATTERN, | |
TOK, | |||
COMPAT | |||
) |
#define HANDLE_EOB_OR_EOF | ( | STATUS | ) |
#define HANDLE_NUMBER | ( | PATTERN, | |
BASE | |||
) |
#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_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 4864 of file lex.cc.
Referenced by base_lexer::text_yyinput(), and base_lexer::xunput().
OCTAVE_EXPORT octave_value_list Fiskeyword | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5019 of file lex.cc.
References iskeyword(), octave_value::length(), octave_kw::name, print_usage(), string_vector::resize(), string_vector::sort(), TOTAL_KEYWORDS, and wordlist.
Referenced by file_editor_tab::update_lexer_settings().
|
static |
Definition at line 6019 of file lex.cc.
Referenced by base_lexer::handle_number().
|
static |
Definition at line 4067 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 push_lexer::append_input(), and base_lexer::input_buffer::fill().
|
inlinestatic |
Definition at line 1346 of file lex.cc.
Referenced by base_lexer::handle_continuation(), base_lexer::handle_fq_identifier(), base_lexer::handle_meta_identifier(), base_lexer::handle_superclass_identifier(), base_lexer::looking_at_space(), base_lexer::maybe_unput_comma_before_unary_op(), and octave_lex().
bool iskeyword | ( | const std::string & | s | ) |
Definition at line 1359 of file lex.cc.
References octave_kw_hash::in_word_set().
Referenced by make_valid_name_options::make_valid_name_options(), tree_evaluator::assignin(), Fiskeyword(), Fisvarname(), base_lexer::fq_identifier_contains_keyword(), base_lexer::handle_superclass_identifier(), base_parser::make_assign_op(), make_valid_name(), octave_lex(), read_mat_ascii_data(), symbol_exist(), and base_parser::validate_param_list().
|
inlinestatic |
|
static |
Definition at line 5267 of file lex.cc.
Referenced by base_lexer::finish_comment().
|
inlinestatic |
|
static |
Definition at line 5284 of file lex.cc.
Referenced by base_lexer::finish_comment().
|
inlinestatic |
Definition at line 5882 of file lex.cc.
References octave_value(), and panic_impossible.
Referenced by base_lexer::handle_number().
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 4210 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 4238 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 4287 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 4258 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 |
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 4418 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 4468 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 4455 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 4163 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 4368 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 4554 of file lex.cc.
References YY_CURRENT_BUFFER, and yycolumn.
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 4541 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 1645 of file lex.cc.
References ADD_EQ, AND_EQ, BLOCK_COMMENT_START, CMD_OR_DEPRECATED_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, EMUL, EMUL_EQ, EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, EPOW, EPOW_EQ, EXPR_AND, EXPR_AND_AND, EXPR_EQ, EXPR_GE, EXPR_GT, EXPR_LE, EXPR_LT, EXPR_NE, EXPR_OR, EXPR_OR_OR, FCN_HANDLE, FQ_IDENT_START, HANDLE_EOB_OR_EOF, HANDLE_IDENTIFIER, HANDLE_NUMBER, HANDLE_STRING_CONTINUATION, HERMITIAN, INITIAL, INPUT_FILE, INPUT_FILE_START, is_space_or_tab(), iskeyword(), LEFTDIV, LEFTDIV_EQ, LEXICAL_ERROR, LINE_COMMENT_START, MATRIX_START, MINUS_MINUS, MUL_EQ, OR_EQ, PLUS_PLUS, POW, POW_EQ, SQ_STRING, SQ_STRING_START, SUB_EQ, TRANSPOSE, undo_string_escape(), 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 push_parser::run().
int octave_lex_destroy | ( | yyscan_t | yyscanner | ) |
Definition at line 4779 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 4691 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 4718 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 4348 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 4317 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 4145 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 4630 of file lex.cc.
References YY_CURRENT_BUFFER, YY_FATAL_ERROR, and yycolumn.
void octave_set_debug | ( | int | debug_flag, |
yyscan_t | yyscanner | ||
) |
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 4647 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 4615 of file lex.cc.
References YY_CURRENT_BUFFER, YY_FATAL_ERROR, and yylineno.
void octave_set_lval | ( | OCTAVE_STYPE * | yylval_param, |
yyscan_t | yyscanner | ||
) |
|
static |
Definition at line 4502 of file lex.cc.
References YY_EXIT_FAILURE.
|
static |
Definition at line 3823 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 3962 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 4745 of file lex.cc.
Referenced by octave_lex_destroy(), octave_lex_init(), and octave_lex_init_extra().
|
static |
Definition at line 3996 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 4023 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 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 703 of file lex.cc.
Referenced by octave_lex(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 934 of file lex.cc.
Referenced by octave_lex(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 746 of file lex.cc.
Referenced by octave_lex(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 661 of file lex.cc.
Referenced by octave_lex(), and yy_get_previous_state().
|
static |
Definition at line 693 of file lex.cc.
Referenced by octave_lex(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 789 of file lex.cc.
Referenced by octave_lex(), yy_get_previous_state(), and yy_try_NUL_trans().