GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
oct-tex-parser.h File Reference
#include <string>

Go to the source code of this file.

Classes

union  OCTAVE_TEX_STYPE
 

Macros

#define OCTAVE_TEX_DEBUG   0
 
#define OCTAVE_TEX_STYPE_IS_DECLARED   1
 
#define OCTAVE_TEX_STYPE_IS_TRIVIAL   1
 
#define OCTAVE_TEX_TOKENTYPE
 
#define YYPUSH_MORE_DEFINED
 

Typedefs

typedef struct octave_tex_pstate octave_tex_pstate
 
typedef union OCTAVE_TEX_STYPE OCTAVE_TEX_STYPE
 
typedef enum octave_tex_tokentype octave_tex_token_kind_t
 

Enumerations

enum  { YYPUSH_MORE = 4 }
 
enum  octave_tex_tokentype {
  OCTAVE_TEX_EMPTY = -2 , OCTAVE_TEX_EOF = 0 , OCTAVE_TEX_error = 256 , OCTAVE_TEX_UNDEF = 257 ,
  BF = 258 , IT = 259 , SL = 260 , RM = 261 ,
  FONTNAME = 262 , FONTSIZE = 263 , COLOR = 264 , COLOR_RGB = 265 ,
  START = 266 , END = 267 , SUPER = 268 , SUB = 269 ,
  CH = 270 , NUM = 271 , SYM = 272 , SCRIPT = 273 ,
  STR = 274
}
 

Functions

int octave_tex_parse (octave::text_parser_tex &parser)
 
void octave_tex_pstate_delete (octave_tex_pstate *ps)
 
octave_tex_pstate * octave_tex_pstate_new (void)
 
int octave_tex_pull_parse (octave_tex_pstate *ps, octave::text_parser_tex &parser)
 
int octave_tex_push_parse (octave_tex_pstate *ps, int pushed_char, OCTAVE_TEX_STYPE const *pushed_val, octave::text_parser_tex &parser)
 

Macro Definition Documentation

◆ OCTAVE_TEX_DEBUG

#define OCTAVE_TEX_DEBUG   0

Definition at line 49 of file oct-tex-parser.h.

◆ OCTAVE_TEX_STYPE_IS_DECLARED

#define OCTAVE_TEX_STYPE_IS_DECLARED   1

Definition at line 114 of file oct-tex-parser.h.

◆ OCTAVE_TEX_STYPE_IS_TRIVIAL

#define OCTAVE_TEX_STYPE_IS_TRIVIAL   1

Definition at line 113 of file oct-tex-parser.h.

◆ OCTAVE_TEX_TOKENTYPE

#define OCTAVE_TEX_TOKENTYPE

Definition at line 63 of file oct-tex-parser.h.

◆ YYPUSH_MORE_DEFINED

#define YYPUSH_MORE_DEFINED

Definition at line 121 of file oct-tex-parser.h.

Typedef Documentation

◆ octave_tex_pstate

typedef struct octave_tex_pstate octave_tex_pstate

Definition at line 125 of file oct-tex-parser.h.

◆ OCTAVE_TEX_STYPE

Definition at line 112 of file oct-tex-parser.h.

◆ octave_tex_token_kind_t

Definition at line 88 of file oct-tex-parser.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
YYPUSH_MORE 

Definition at line 122 of file oct-tex-parser.h.

◆ octave_tex_tokentype

Enumerator
OCTAVE_TEX_EMPTY 
OCTAVE_TEX_EOF 
OCTAVE_TEX_error 
OCTAVE_TEX_UNDEF 
BF 
IT 
SL 
RM 
FONTNAME 
FONTSIZE 
COLOR 
COLOR_RGB 
START 
END 
SUPER 
SUB 
CH 
NUM 
SYM 
SCRIPT 
STR 

Definition at line 64 of file oct-tex-parser.h.

Function Documentation

◆ octave_tex_parse()

int octave_tex_parse ( octave::text_parser_tex &  parser)

Definition at line 1012 of file oct-tex-parser.cc.

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

Referenced by text_parser_tex::parse().

◆ octave_tex_pstate_delete()

void octave_tex_pstate_delete ( octave_tex_pstate *  ps)

Definition at line 1082 of file oct-tex-parser.cc.

References YYFREE, yyss, yyssa, and YYSTACK_FREE.

◆ octave_tex_pstate_new()

octave_tex_pstate * octave_tex_pstate_new ( void  )

◆ octave_tex_pull_parse()

int octave_tex_pull_parse ( octave_tex_pstate *  ps,
octave::text_parser_tex &  parser 
)

Definition at line 1026 of file oct-tex-parser.cc.

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

◆ octave_tex_push_parse()