GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
oct-parse.h File Reference

Go to the source code of this file.

Classes

union  OCTAVE_STYPE
 

Macros

#define OCTAVE_DEBUG   0
 
#define OCTAVE_STYPE_IS_DECLARED   1
 
#define OCTAVE_STYPE_IS_TRIVIAL   1
 
#define OCTAVE_TOKENTYPE
 
#define YYPUSH_MORE_DEFINED
 

Typedefs

typedef struct octave_pstate octave_pstate
 
typedef union OCTAVE_STYPE OCTAVE_STYPE
 
typedef enum octave_tokentype octave_token_kind_t
 

Enumerations

enum  { YYPUSH_MORE = 4 }
 
enum  octave_tokentype {
  OCTAVE_EMPTY = -2 , OCTAVE_EOF = 0 , OCTAVE_error = 256 , OCTAVE_UNDEF = 257 ,
  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_LT = 274 , EXPR_LE = 275 , EXPR_EQ = 276 , EXPR_NE = 277 ,
  EXPR_GE = 278 , EXPR_GT = 279 , LEFTDIV = 280 , EMUL = 281 ,
  EDIV = 282 , ELEFTDIV = 283 , HERMITIAN = 284 , TRANSPOSE = 285 ,
  PLUS_PLUS = 286 , MINUS_MINUS = 287 , POW = 288 , EPOW = 289 ,
  NUMBER = 290 , STRUCT_ELT = 291 , NAME = 292 , END = 293 ,
  DQ_STRING = 294 , SQ_STRING = 295 , FOR = 296 , PARFOR = 297 ,
  WHILE = 298 , DO = 299 , UNTIL = 300 , SPMD = 301 ,
  IF = 302 , ELSEIF = 303 , ELSE = 304 , SWITCH = 305 ,
  CASE = 306 , OTHERWISE = 307 , BREAK = 308 , CONTINUE = 309 ,
  FUNC_RET = 310 , UNWIND = 311 , CLEANUP = 312 , TRY = 313 ,
  CATCH = 314 , GLOBAL = 315 , PERSISTENT = 316 , FCN_HANDLE = 317 ,
  CLASSDEF = 318 , PROPERTIES = 319 , METHODS = 320 , EVENTS = 321 ,
  ENUMERATION = 322 , METAQUERY = 323 , SUPERCLASSREF = 324 , FQ_IDENT = 325 ,
  GET = 326 , SET = 327 , FCN = 328 , ARGUMENTS = 329 ,
  LEXICAL_ERROR = 330 , END_OF_INPUT = 331 , INPUT_FILE = 332 , UNARY = 333
}
 

Functions

int octave_parse (octave::base_parser &parser)
 
void octave_pstate_delete (octave_pstate *ps)
 
octave_pstateoctave_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)
 

Macro Definition Documentation

◆ OCTAVE_DEBUG

#define OCTAVE_DEBUG   0

Definition at line 49 of file oct-parse.h.

◆ OCTAVE_STYPE_IS_DECLARED

#define OCTAVE_STYPE_IS_DECLARED   1

Definition at line 219 of file oct-parse.h.

◆ OCTAVE_STYPE_IS_TRIVIAL

#define OCTAVE_STYPE_IS_TRIVIAL   1

Definition at line 218 of file oct-parse.h.

◆ OCTAVE_TOKENTYPE

#define OCTAVE_TOKENTYPE

Definition at line 58 of file oct-parse.h.

◆ YYPUSH_MORE_DEFINED

#define YYPUSH_MORE_DEFINED

Definition at line 226 of file oct-parse.h.

Typedef Documentation

◆ octave_pstate

typedef struct octave_pstate octave_pstate

Definition at line 1 of file oct-parse.h.

◆ OCTAVE_STYPE

typedef union OCTAVE_STYPE OCTAVE_STYPE

Definition at line 1 of file oct-parse.h.

◆ octave_token_kind_t

Definition at line 1 of file oct-parse.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
YYPUSH_MORE 

Definition at line 227 of file oct-parse.h.

◆ octave_tokentype

Enumerator
OCTAVE_EMPTY 
OCTAVE_EOF 
OCTAVE_error 
OCTAVE_UNDEF 
ADD_EQ 
SUB_EQ 
MUL_EQ 
DIV_EQ 
LEFTDIV_EQ 
POW_EQ 
EMUL_EQ 
EDIV_EQ 
ELEFTDIV_EQ 
EPOW_EQ 
AND_EQ 
OR_EQ 
EXPR_AND_AND 
EXPR_OR_OR 
EXPR_AND 
EXPR_OR 
EXPR_LT 
EXPR_LE 
EXPR_EQ 
EXPR_NE 
EXPR_GE 
EXPR_GT 
LEFTDIV 
EMUL 
EDIV 
ELEFTDIV 
HERMITIAN 
TRANSPOSE 
PLUS_PLUS 
MINUS_MINUS 
POW 
EPOW 
NUMBER 
STRUCT_ELT 
NAME 
END 
DQ_STRING 
SQ_STRING 
FOR 
PARFOR 
WHILE 
DO 
UNTIL 
SPMD 
IF 
ELSEIF 
ELSE 
SWITCH 
CASE 
OTHERWISE 
BREAK 
CONTINUE 
FUNC_RET 
UNWIND 
CLEANUP 
TRY 
CATCH 
GLOBAL 
PERSISTENT 
FCN_HANDLE 
CLASSDEF 
PROPERTIES 
METHODS 
EVENTS 
ENUMERATION 
METAQUERY 
SUPERCLASSREF 
FQ_IDENT 
GET 
SET 
FCN 
ARGUMENTS 
LEXICAL_ERROR 
END_OF_INPUT 
INPUT_FILE 
UNARY 

Definition at line 59 of file oct-parse.h.

Function Documentation

◆ octave_parse()

int octave_parse ( octave::base_parser &  parser)

Definition at line 3032 of file oct-parse.cc.

References YY_, yyerror, yypstate, yypstate_delete, yypstate_new, and yypull_parse.

◆ octave_pstate_delete()

void octave_pstate_delete ( octave_pstate ps)

Definition at line 3102 of file oct-parse.cc.

References YYFREE, yyss, yyssa, and YYSTACK_FREE.

◆ octave_pstate_new()

octave_pstate* octave_pstate_new ( void  )

◆ octave_pull_parse()

int octave_pull_parse ( octave_pstate ps,
octave::base_parser &  parser 
)

Definition at line 3046 of file oct-parse.cc.

References scanner, YY_ASSERT, yylex, yylval, YYPUSH_MORE, yypush_parse, and YYSTYPE.

Referenced by parser::run().

◆ octave_push_parse()

int octave_push_parse ( octave_pstate ps,
int  pushed_char,
OCTAVE_STYPE const *  pushed_val,
octave::base_parser &  parser 
)

Definition at line 3123 of file oct-parse.cc.

References YY_INITIAL_VALUE, yylval, YYSTYPE, and YYSYMBOL_YYEMPTY.