GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
Go to the source code of this file.
Classes | |
union | OCTAVE_STYPE |
Macros | |
#define | ADD_EQ 258 |
#define | AND_EQ 268 |
#define | BREAK 311 |
#define | CASE 309 |
#define | CATCH 317 |
#define | CLASSDEF 321 |
#define | CLEANUP 315 |
#define | CONTINUE 312 |
#define | DIV_EQ 261 |
#define | DO 303 |
#define | DQ_STRING 298 |
#define | EDIV 283 |
#define | EDIV_EQ 265 |
#define | ELEFTDIV 284 |
#define | ELEFTDIV_EQ 266 |
#define | ELSE 307 |
#define | ELSEIF 306 |
#define | EMINUS 286 |
#define | EMUL 282 |
#define | EMUL_EQ 264 |
#define | END 297 |
#define | END_OF_INPUT 333 |
#define | ENUMERATION 325 |
#define | EPLUS 285 |
#define | EPOW 292 |
#define | EPOW_EQ 267 |
#define | EVENTS 324 |
#define | EXPR_AND 272 |
#define | EXPR_AND_AND 270 |
#define | EXPR_EQ 277 |
#define | EXPR_GE 279 |
#define | EXPR_GT 280 |
#define | EXPR_LE 276 |
#define | EXPR_LT 275 |
#define | EXPR_NE 278 |
#define | EXPR_NOT 274 |
#define | EXPR_OR 273 |
#define | EXPR_OR_OR 271 |
#define | FCN 331 |
#define | FCN_HANDLE 320 |
#define | FOR 300 |
#define | FQ_IDENT 328 |
#define | FUNC_RET 313 |
#define | GET 329 |
#define | GLOBAL 318 |
#define | HERMITIAN 287 |
#define | IF 305 |
#define | IMAG_NUM 294 |
#define | INPUT_FILE 334 |
#define | LEFTDIV 281 |
#define | LEFTDIV_EQ 262 |
#define | LEXICAL_ERROR 332 |
#define | METAQUERY 326 |
#define | METHODS 323 |
#define | MINUS_MINUS 290 |
#define | MUL_EQ 260 |
#define | NAME 296 |
#define | NUM 293 |
#define | OCTAVE_DEBUG 0 |
#define | OCTAVE_STYPE_IS_DECLARED 1 |
#define | OCTAVE_STYPE_IS_TRIVIAL 1 |
#define | OCTAVE_TOKENTYPE |
#define | OR_EQ 269 |
#define | OTHERWISE 310 |
#define | PARFOR 301 |
#define | PERSISTENT 319 |
#define | PLUS_PLUS 289 |
#define | POW 291 |
#define | POW_EQ 263 |
#define | PROPERTIES 322 |
#define | SET 330 |
#define | SQ_STRING 299 |
#define | STRUCT_ELT 295 |
#define | SUB_EQ 259 |
#define | SUPERCLASSREF 327 |
#define | SWITCH 308 |
#define | TRANSPOSE 288 |
#define | TRY 316 |
#define | UNARY 335 |
#define | UNTIL 304 |
#define | UNWIND 314 |
#define | WHILE 302 |
#define | YYPUSH_MORE_DEFINED |
Typedefs | |
typedef struct octave_pstate | octave_pstate |
typedef union OCTAVE_STYPE | OCTAVE_STYPE |
Enumerations | |
enum | { YYPUSH_MORE = 4 } |
enum | octave_tokentype { ADD_EQ = 258, SUB_EQ = 259, MUL_EQ = 260, DIV_EQ = 261, LEFTDIV_EQ = 262, POW_EQ = 263, EMUL_EQ = 264, EDIV_EQ = 265, ELEFTDIV_EQ = 266, EPOW_EQ = 267, AND_EQ = 268, OR_EQ = 269, EXPR_AND_AND = 270, EXPR_OR_OR = 271, EXPR_AND = 272, EXPR_OR = 273, EXPR_NOT = 274, EXPR_LT = 275, EXPR_LE = 276, EXPR_EQ = 277, EXPR_NE = 278, EXPR_GE = 279, EXPR_GT = 280, LEFTDIV = 281, EMUL = 282, EDIV = 283, ELEFTDIV = 284, EPLUS = 285, EMINUS = 286, HERMITIAN = 287, TRANSPOSE = 288, PLUS_PLUS = 289, MINUS_MINUS = 290, POW = 291, EPOW = 292, NUM = 293, IMAG_NUM = 294, STRUCT_ELT = 295, NAME = 296, END = 297, DQ_STRING = 298, SQ_STRING = 299, FOR = 300, PARFOR = 301, WHILE = 302, DO = 303, UNTIL = 304, IF = 305, ELSEIF = 306, ELSE = 307, SWITCH = 308, CASE = 309, OTHERWISE = 310, BREAK = 311, CONTINUE = 312, FUNC_RET = 313, UNWIND = 314, CLEANUP = 315, TRY = 316, CATCH = 317, GLOBAL = 318, PERSISTENT = 319, FCN_HANDLE = 320, CLASSDEF = 321, PROPERTIES = 322, METHODS = 323, EVENTS = 324, ENUMERATION = 325, METAQUERY = 326, SUPERCLASSREF = 327, FQ_IDENT = 328, GET = 329, SET = 330, FCN = 331, LEXICAL_ERROR = 332, END_OF_INPUT = 333, INPUT_FILE = 334, UNARY = 335 } |
Functions | |
int | octave_parse (octave::base_parser &parser) |
void | octave_pstate_delete (octave_pstate *ps) |
octave_pstate * | octave_pstate_new (void) |
int | octave_pull_parse (octave_pstate *ps, octave::base_parser &parser) |
int | octave_push_parse (octave_pstate *ps, int pushed_char, OCTAVE_STYPE const *pushed_val, octave::base_parser &parser) |
#define ADD_EQ 258 |
Definition at line 137 of file oct-parse.h.
#define AND_EQ 268 |
Definition at line 147 of file oct-parse.h.
#define BREAK 311 |
Definition at line 190 of file oct-parse.h.
#define CASE 309 |
Definition at line 188 of file oct-parse.h.
#define CATCH 317 |
Definition at line 196 of file oct-parse.h.
#define CLASSDEF 321 |
Definition at line 200 of file oct-parse.h.
#define CLEANUP 315 |
Definition at line 194 of file oct-parse.h.
#define CONTINUE 312 |
Definition at line 191 of file oct-parse.h.
#define DIV_EQ 261 |
Definition at line 140 of file oct-parse.h.
#define DO 303 |
Definition at line 182 of file oct-parse.h.
#define DQ_STRING 298 |
Definition at line 177 of file oct-parse.h.
#define EDIV 283 |
Definition at line 162 of file oct-parse.h.
#define EDIV_EQ 265 |
Definition at line 144 of file oct-parse.h.
#define ELEFTDIV 284 |
Definition at line 163 of file oct-parse.h.
#define ELEFTDIV_EQ 266 |
Definition at line 145 of file oct-parse.h.
#define ELSE 307 |
Definition at line 186 of file oct-parse.h.
#define ELSEIF 306 |
Definition at line 185 of file oct-parse.h.
#define EMINUS 286 |
Definition at line 165 of file oct-parse.h.
#define EMUL 282 |
Definition at line 161 of file oct-parse.h.
#define EMUL_EQ 264 |
Definition at line 143 of file oct-parse.h.
#define END 297 |
Definition at line 176 of file oct-parse.h.
#define END_OF_INPUT 333 |
Definition at line 212 of file oct-parse.h.
#define ENUMERATION 325 |
Definition at line 204 of file oct-parse.h.
#define EPLUS 285 |
Definition at line 164 of file oct-parse.h.
#define EPOW 292 |
Definition at line 171 of file oct-parse.h.
#define EPOW_EQ 267 |
Definition at line 146 of file oct-parse.h.
#define EVENTS 324 |
Definition at line 203 of file oct-parse.h.
#define EXPR_AND 272 |
Definition at line 151 of file oct-parse.h.
#define EXPR_AND_AND 270 |
Definition at line 149 of file oct-parse.h.
#define EXPR_EQ 277 |
Definition at line 156 of file oct-parse.h.
#define EXPR_GE 279 |
Definition at line 158 of file oct-parse.h.
#define EXPR_GT 280 |
Definition at line 159 of file oct-parse.h.
#define EXPR_LE 276 |
Definition at line 155 of file oct-parse.h.
#define EXPR_LT 275 |
Definition at line 154 of file oct-parse.h.
#define EXPR_NE 278 |
Definition at line 157 of file oct-parse.h.
#define EXPR_NOT 274 |
Definition at line 153 of file oct-parse.h.
#define EXPR_OR 273 |
Definition at line 152 of file oct-parse.h.
#define EXPR_OR_OR 271 |
Definition at line 150 of file oct-parse.h.
#define FCN 331 |
Definition at line 210 of file oct-parse.h.
#define FCN_HANDLE 320 |
Definition at line 199 of file oct-parse.h.
#define FOR 300 |
Definition at line 179 of file oct-parse.h.
#define FQ_IDENT 328 |
Definition at line 207 of file oct-parse.h.
#define FUNC_RET 313 |
Definition at line 192 of file oct-parse.h.
#define GET 329 |
Definition at line 208 of file oct-parse.h.
#define GLOBAL 318 |
Definition at line 197 of file oct-parse.h.
#define HERMITIAN 287 |
Definition at line 166 of file oct-parse.h.
#define IF 305 |
Definition at line 184 of file oct-parse.h.
#define IMAG_NUM 294 |
Definition at line 173 of file oct-parse.h.
#define INPUT_FILE 334 |
Definition at line 213 of file oct-parse.h.
#define LEFTDIV 281 |
Definition at line 160 of file oct-parse.h.
#define LEFTDIV_EQ 262 |
Definition at line 141 of file oct-parse.h.
#define LEXICAL_ERROR 332 |
Definition at line 211 of file oct-parse.h.
#define METAQUERY 326 |
Definition at line 205 of file oct-parse.h.
#define METHODS 323 |
Definition at line 202 of file oct-parse.h.
#define MINUS_MINUS 290 |
Definition at line 169 of file oct-parse.h.
#define MUL_EQ 260 |
Definition at line 139 of file oct-parse.h.
#define NAME 296 |
Definition at line 175 of file oct-parse.h.
#define NUM 293 |
Definition at line 172 of file oct-parse.h.
#define OCTAVE_DEBUG 0 |
Definition at line 44 of file oct-parse.h.
#define OCTAVE_STYPE_IS_DECLARED 1 |
Definition at line 284 of file oct-parse.h.
#define OCTAVE_STYPE_IS_TRIVIAL 1 |
Definition at line 283 of file oct-parse.h.
#define OCTAVE_TOKENTYPE |
Definition at line 53 of file oct-parse.h.
#define OR_EQ 269 |
Definition at line 148 of file oct-parse.h.
#define OTHERWISE 310 |
Definition at line 189 of file oct-parse.h.
#define PARFOR 301 |
Definition at line 180 of file oct-parse.h.
#define PERSISTENT 319 |
Definition at line 198 of file oct-parse.h.
#define PLUS_PLUS 289 |
Definition at line 168 of file oct-parse.h.
#define POW 291 |
Definition at line 170 of file oct-parse.h.
#define POW_EQ 263 |
Definition at line 142 of file oct-parse.h.
#define PROPERTIES 322 |
Definition at line 201 of file oct-parse.h.
#define SET 330 |
Definition at line 209 of file oct-parse.h.
#define SQ_STRING 299 |
Definition at line 178 of file oct-parse.h.
#define STRUCT_ELT 295 |
Definition at line 174 of file oct-parse.h.
#define SUB_EQ 259 |
Definition at line 138 of file oct-parse.h.
#define SUPERCLASSREF 327 |
Definition at line 206 of file oct-parse.h.
#define SWITCH 308 |
Definition at line 187 of file oct-parse.h.
#define TRANSPOSE 288 |
Definition at line 167 of file oct-parse.h.
#define TRY 316 |
Definition at line 195 of file oct-parse.h.
#define UNARY 335 |
Definition at line 214 of file oct-parse.h.
#define UNTIL 304 |
Definition at line 183 of file oct-parse.h.
#define UNWIND 314 |
Definition at line 193 of file oct-parse.h.
#define WHILE 302 |
Definition at line 181 of file oct-parse.h.
#define YYPUSH_MORE_DEFINED |
Definition at line 290 of file oct-parse.h.
typedef struct octave_pstate octave_pstate |
Definition at line 294 of file oct-parse.h.
typedef union OCTAVE_STYPE OCTAVE_STYPE |
Definition at line 282 of file oct-parse.h.
anonymous enum |
Enumerator | |
---|---|
YYPUSH_MORE |
Definition at line 291 of file oct-parse.h.
enum octave_tokentype |
Definition at line 54 of file oct-parse.h.
int octave_parse | ( | octave::base_parser & | parser | ) |
Definition at line 2949 of file oct-parse.cc.
References YY_NULLPTR, and yypull_parse.
void octave_pstate_delete | ( | octave_pstate * | ps | ) |
Definition at line 2995 of file oct-parse.cc.
References free(), and YYSTACK_FREE.
octave_pstate* octave_pstate_new | ( | void | ) |
Definition at line 2984 of file oct-parse.cc.
References malloc(), YY_NULLPTR, and yypstate.
int octave_pull_parse | ( | octave_pstate * | ps, |
octave::base_parser & | parser | ||
) |
Definition at line 2955 of file oct-parse.cc.
References scanner, YY_, yyerror, yylex, yylval, yypstate, yypstate_delete, yypstate_new, YYPUSH_MORE, yypush_parse, and YYSTYPE.
Referenced by octave::parser::run().
int octave_push_parse | ( | octave_pstate * | ps, |
int | pushed_char, | ||
OCTAVE_STYPE const * | pushed_val, | ||
octave::base_parser & | parser | ||
) |
Definition at line 3023 of file oct-parse.cc.
References ADD_EQ, symbol_table::alloc_scope(), AND_EQ, append, octave::base_parser::append_statement_list(), octave::base_parser::bison_error(), octave::base_parser::classdef_object, column, octave::base_parser::curr_fcn_depth, DIV_EQ, DQ_STRING, EDIV, EDIV_EQ, ELEFTDIV, ELEFTDIV_EQ, EMUL, EMUL_EQ, octave::base_parser::end_token_error(), octave::base_parser::end_token_ok(), octave::base_parser::endfunction_found, 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, octave::base_parser::finish_cell(), octave::base_parser::finish_classdef_external_method(), octave::base_parser::finish_colon_expression(), octave::base_parser::finish_function(), octave::base_parser::finish_if_command(), octave::base_parser::finish_matrix(), octave::base_parser::finish_switch_command(), fname, FOR, octave::base_parser::frob_function(), token::function_end, octave::base_parser::function_scopes, GLOBAL, HERMITIAN, IMAG_NUM, tree_parameter_list::in, LEFTDIV, LEFTDIV_EQ, lexer, octave_value::magic_colon_t, octave::base_parser::make_anon_fcn_handle(), octave::base_parser::make_assign_op(), octave::base_parser::make_binary_op(), octave::base_parser::make_boolean_op(), octave::base_parser::make_break_command(), octave::base_parser::make_classdef(), octave::base_parser::make_classdef_enum_block(), octave::base_parser::make_classdef_events_block(), octave::base_parser::make_classdef_methods_block(), octave::base_parser::make_classdef_properties_block(), octave::base_parser::make_constant(), octave::base_parser::make_continue_command(), octave::base_parser::make_decl_command(), octave::base_parser::make_do_until_command(), octave::base_parser::make_elseif_clause(), octave::base_parser::make_end(), octave::base_parser::make_fcn_handle(), octave::base_parser::make_for_command(), octave::base_parser::make_index_expression(), octave::base_parser::make_indirect_ref(), octave::base_parser::make_meta_class_query(), octave::base_parser::make_postfix_op(), octave::base_parser::make_prefix_op(), octave::base_parser::make_return_command(), octave::base_parser::make_script(), octave::base_parser::make_statement(), octave::base_parser::make_statement_list(), octave::base_parser::make_superclass_ref(), octave::base_parser::make_switch_case(), octave::base_parser::make_try_command(), octave::base_parser::make_unwind_command(), octave::base_parser::make_while_command(), octave::base_parser::max_fcn_depth, MINUS_MINUS, MUL_EQ, name, NUM, OR_EQ, tree_parameter_list::out, PARFOR, octave::base_parser::parsing_subfunctions, PERSISTENT, PLUS_PLUS, POW, POW_EQ, octave::base_parser::primary_fcn_scope, octave::base_parser::recover_from_parsing_function(), octave::base_parser::set_stmt_print_flag(), SQ_STRING, octave::base_parser::start_classdef_external_method(), octave::base_parser::start_function(), octave::base_parser::start_if_command(), octave::base_parser::stmt_list, string, SUB_EQ, tmp, TRANSPOSE, tree_parameter_list::validate(), octave::base_parser::validate_array_list(), octave::base_parser::validate_matrix_for_assignment(), YY_, YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN, YY_IGNORE_MAYBE_UNINITIALIZED_END, YY_INITIAL_VALUE, YY_REDUCE_PRINT, YY_STACK_PRINT, YY_SYMBOL_PRINT, YYABORT, YYACCEPT, yycheck, yydefact, yydefgoto, yydestruct(), YYDPRINTF, YYEMPTY, YYEOF, yyerror, yyerrstatus, YYFINAL, YYINITDEPTH, YYLAST, yylval, YYMAXDEPTH, yynerrs, YYNTOKENS, yypact, yypact_value_is_default, yypgoto, YYPOPSTACK, YYPUSH_MORE, yyr1, yyr2, YYSIZE_T, yyss, yyalloc::yyss_alloc, yyssa, yyssp, YYSTACK_ALLOC, YYSTACK_BYTES, YYSTACK_FREE, YYSTACK_RELOCATE, yystacksize, yystate, yystos, YYSTYPE, yytable, yytable_value_is_error, YYTERROR, YYTRANSLATE, YYUSE, yyvs, yyalloc::yyvs_alloc, and yyvsa.
Referenced by octave::push_parser::run().