GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Macros | Typedefs | Functions | Variables
oct-tex-parser.cc File Reference
#include "txt-eng.h"
#include "oct-tex-parser.h"
#include <string>
#include <stddef.h>
Include dependency graph for oct-tex-parser.cc:

Go to the source code of this file.

Classes

union  yyalloc
 

Macros

#define _Noreturn   YY_ATTRIBUTE ((__noreturn__))
 
#define BF   258
 
#define CH   270
 
#define COLOR   264
 
#define COLOR_RGB   265
 
#define END   267
 
#define FONTNAME   262
 
#define FONTSIZE   263
 
#define IT   259
 
#define NUM   271
 
#define RM   261
 
#define scanner   parser.get_scanner ()
 
#define SCRIPT   273
 
#define SL   260
 
#define START   266
 
#define STR   274
 
#define SUB   269
 
#define SUPER   268
 
#define SYM   272
 
#define YY_(Msgid)   Msgid
 
#define YY_ATTRIBUTE(Spec)   /* empty */
 
#define YY_ATTRIBUTE_PURE   YY_ATTRIBUTE ((__pure__))
 
#define YY_ATTRIBUTE_UNUSED   YY_ATTRIBUTE ((__unused__))
 
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
 
#define YY_IGNORE_MAYBE_UNINITIALIZED_END
 
#define YY_INITIAL_VALUE(Value)   Value
 
#define YY_NULLPTR   0
 
#define YY_OCTAVE_TEX_COREFCN_OCT_TEX_PARSER_H_INCLUDED
 
#define YY_REDUCE_PRINT(Rule)
 
#define YY_STACK_PRINT(Bottom, Top)
 
#define YY_SYMBOL_PRINT(Title, Type, Value, Location)
 
#define YYABORT   goto yyabortlab
 
#define YYACCEPT   goto yyacceptlab
 
#define YYBACKUP(Token, Value)
 
#define YYBISON   1
 
#define YYBISON_VERSION   "3.0.2"
 
#define yyclearin   (yychar = YYEMPTY)
 
#define YYCOPY(Dst, Src, Count)
 
#define YYCOPY_NEEDED   1
 
#define yydebug   octave_tex_debug
 
#define YYDEBUG   1
 
#define YYDPRINTF(Args)
 
#define YYEMPTY   (-2)
 
#define YYEOF   0
 
#define YYERRCODE   256
 
#define yyerrok   (yyerrstatus = 0)
 
#define yyerror   octave_tex_error
 
#define YYERROR   goto yyerrorlab
 
#define YYERROR_VERBOSE   0
 
#define YYFINAL   43
 
#define YYFREE   free
 
#define YYINITDEPTH   200
 
#define YYLAST   81
 
#define yylex   octave_tex_lex
 
#define YYMALLOC   malloc
 
#define YYMAXDEPTH   10000
 
#define YYMAXUTOK   274
 
#define yynerrs   octave_tex_nerrs
 
#define YYNNTS   14
 
#define YYNRULES   36
 
#define YYNSTATES   55
 
#define YYNTOKENS   20
 
#define YYPACT_NINF   -4
 
#define yypact_value_is_default(Yystate)   (!!((Yystate) == (-4)))
 
#define yyparse   octave_tex_parse
 
#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))
 
#define YYPULL   1
 
#define YYPURE   1
 
#define YYPUSH   0
 
#define YYRECOVERING()   (!!yyerrstatus)
 
#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)
 
#define YYSIZE_T   size_t
 
#define YYSKELETON_NAME   "yacc.c"
 
#define YYSTACK_ALLOC   YYMALLOC
 
#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM
 
#define YYSTACK_BYTES(N)
 
#define YYSTACK_FREE   YYFREE
 
#define YYSTACK_GAP_MAXIMUM   (sizeof (union yyalloc) - 1)
 
#define YYSTACK_RELOCATE(Stack_alloc, Stack)
 
#define YYSTYPE   OCTAVE_TEX_STYPE
 
#define YYTABLE_NINF   -1
 
#define yytable_value_is_error(Yytable_value)   0
 
#define YYTERROR   1
 
#define YYTRANSLATE(YYX)   ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
 
#define YYUNDEFTOK   2
 
#define YYUSE(E)   ((void) (E))
 

Typedefs

typedef short int yytype_int16
 
typedef signed char yytype_int8
 
typedef unsigned short int yytype_uint16
 
typedef unsigned char yytype_uint8
 

Functions

void free (void *)
 
void * malloc (size_t)
 
static void octave_tex_error (text_parser_tex &parser, const char *s)
 
int octave_tex_lex (OCTAVE_TEX_STYPE *, void *)
 The main scanner function which does all the work. More...
 
int octave_tex_parse (text_parser_tex &parser)
 
static void yydestruct (const char *yymsg, int yytype, OCTAVE_TEX_STYPE *yyvaluep, text_parser_tex &parser)
 

Variables

static const yytype_int8 yycheck []
 
static const yytype_uint8 yydefact []
 
static const yytype_int8 yydefgoto []
 
static const yytype_int8 yypact []
 
static const yytype_int8 yypgoto []
 
static const yytype_uint8 yyr1 []
 
static const yytype_uint8 yyr2 []
 
static const yytype_uint8 yystos []
 
static const yytype_uint8 yytable []
 
static const yytype_uint8 yytranslate []
 

Macro Definition Documentation

#define _Noreturn   YY_ATTRIBUTE ((__noreturn__))

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

#define BF   258

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

#define CH   270

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

#define COLOR   264

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

#define COLOR_RGB   265

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

#define END   267

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

Referenced by octave_base_lexer::display_token(), and octave_tex_lex().

#define FONTNAME   262

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

#define FONTSIZE   263

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

#define IT   259

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

#define NUM   271
#define RM   261

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

#define scanner   parser.get_scanner ()

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

Referenced by text_parser_tex::get_scanner(), and octave_tex_parse().

#define SCRIPT   273

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

#define SL   260

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

#define START   266

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

#define STR   274

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

#define SUB   269

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

#define SUPER   268

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

#define SYM   272

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

#define YY_ (   Msgid)    Msgid

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

Referenced by octave_tex_parse().

#define YY_ATTRIBUTE (   Spec)    /* empty */

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

#define YY_ATTRIBUTE_PURE   YY_ATTRIBUTE ((__pure__))

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

#define YY_ATTRIBUTE_UNUSED   YY_ATTRIBUTE ((__unused__))

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

#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN

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

Referenced by octave_tex_parse(), and yydestruct().

#define YY_IGNORE_MAYBE_UNINITIALIZED_END

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

Referenced by octave_tex_parse(), and yydestruct().

#define YY_INITIAL_VALUE (   Value)    Value

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

Referenced by octave_tex_parse().

#define YY_NULLPTR   0

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

#define YY_OCTAVE_TEX_COREFCN_OCT_TEX_PARSER_H_INCLUDED

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

#define YY_REDUCE_PRINT (   Rule)

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

Referenced by octave_tex_parse().

#define YY_STACK_PRINT (   Bottom,
  Top 
)

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

Referenced by octave_tex_parse().

#define YY_SYMBOL_PRINT (   Title,
  Type,
  Value,
  Location 
)

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

Referenced by octave_tex_parse(), and yydestruct().

#define YYABORT   goto yyabortlab

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

Referenced by octave_tex_parse().

#define YYACCEPT   goto yyacceptlab

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

Referenced by octave_tex_parse().

#define YYBACKUP (   Token,
  Value 
)
Value:
do \
if (yychar == YYEMPTY) \
{ \
yychar = (Token); \
yylval = (Value); \
YYPOPSTACK (yylen); \
goto yybackup; \
} \
else \
{ \
yyerror (parser, YY_("syntax error: cannot back up")); \
} \
while (0)
#define yyssp
Definition: oct-parse.cc:3046
This class gets nodes and searchs inside of 'info files'.
Definition: parser.h:49
#define YYERROR
#define yyerror
#define YYPOPSTACK(N)
#define yystate
Definition: oct-parse.cc:3042
#define yylval
#define YYEMPTY
#define YY_(Msgid)

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

#define YYBISON   1

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

#define YYBISON_VERSION   "3.0.2"

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

#define yyclearin   (yychar = YYEMPTY)

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

#define YYCOPY (   Dst,
  Src,
  Count 
)
Value:
do \
{ \
YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(Dst)[yyi] = (Src)[yyi]; \
} \
while (0)
#define YYSIZE_T

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

#define YYCOPY_NEEDED   1

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

#define yydebug   octave_tex_debug

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

#define YYDEBUG   1

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

#define YYDPRINTF (   Args)

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

Referenced by octave_tex_parse().

#define YYEMPTY   (-2)

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

Referenced by octave_tex_parse().

#define YYEOF   0

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

Referenced by octave_tex_parse().

#define YYERRCODE   256

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

#define yyerrok   (yyerrstatus = 0)

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

#define yyerror   octave_tex_error

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

Referenced by octave_tex_parse().

#define YYERROR   goto yyerrorlab

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

#define YYERROR_VERBOSE   0

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

#define YYFINAL   43

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

Referenced by octave_tex_parse().

#define YYFREE   free

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

#define YYINITDEPTH   200

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

Referenced by octave_tex_parse().

#define YYLAST   81

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

Referenced by octave_tex_parse().

#define yylex   octave_tex_lex

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

Referenced by octave_tex_parse().

#define YYMALLOC   malloc

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

#define YYMAXDEPTH   10000

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

Referenced by octave_tex_parse().

#define YYMAXUTOK   274

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

#define yynerrs   octave_tex_nerrs

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

Referenced by octave_tex_parse().

#define YYNNTS   14

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

#define YYNRULES   36

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

#define YYNSTATES   55

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

#define YYNTOKENS   20

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

Referenced by octave_tex_parse().

#define YYPACT_NINF   -4

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

#define yypact_value_is_default (   Yystate)    (!!((Yystate) == (-4)))

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

Referenced by octave_tex_parse().

#define yyparse   octave_tex_parse

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

#define YYPOPSTACK (   N)    (yyvsp -= (N), yyssp -= (N))

Referenced by octave_tex_parse().

#define YYPULL   1

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

#define YYPURE   1

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

#define YYPUSH   0

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

#define YYRECOVERING ( )    (!!yyerrstatus)

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

#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)

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

#define YYSIZE_T   size_t

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

Referenced by octave_tex_parse().

#define YYSKELETON_NAME   "yacc.c"

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

#define YYSTACK_ALLOC   YYMALLOC

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

Referenced by octave_tex_parse().

#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM

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

#define YYSTACK_BYTES (   N)
Value:
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
short int yytype_int16
F77_RET_T const octave_idx_type & N
Definition: CmplxGEPBAL.cc:39
#define YYSTYPE
#define YYSTACK_GAP_MAXIMUM

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

Referenced by octave_tex_parse().

#define YYSTACK_FREE   YYFREE

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

Referenced by octave_tex_parse().

#define YYSTACK_GAP_MAXIMUM   (sizeof (union yyalloc) - 1)

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

#define YYSTACK_RELOCATE (   Stack_alloc,
  Stack 
)
Value:
do \
{ \
YYSIZE_T yynewbytes; \
YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
Stack = &yyptr->Stack_alloc; \
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
yyptr += yynewbytes / sizeof (*yyptr); \
} \
while (0)
#define YYCOPY(Dst, Src, Count)
#define YYSIZE_T
#define yystacksize
Definition: oct-parse.cc:3050
#define YYSTACK_GAP_MAXIMUM

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

Referenced by octave_tex_parse().

#define YYSTYPE   OCTAVE_TEX_STYPE

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

Referenced by octave_tex_parse().

#define YYTABLE_NINF   -1

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

#define yytable_value_is_error (   Yytable_value)    0

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

Referenced by octave_tex_parse().

#define YYTERROR   1

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

Referenced by octave_tex_parse().

#define YYTRANSLATE (   YYX)    ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)

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

Referenced by octave_tex_parse().

#define YYUNDEFTOK   2

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

#define YYUSE (   E)    ((void) (E))

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

Referenced by yydestruct().

Typedef Documentation

typedef short int yytype_int16

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

typedef signed char yytype_int8

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

typedef unsigned short int yytype_uint16

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

typedef unsigned char yytype_uint8

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

Function Documentation

void free ( void *  )
void* malloc ( size_t  )
static void octave_tex_error ( text_parser_tex parser,
const char s 
)
static

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

int octave_tex_lex ( OCTAVE_TEX_STYPE ,
void *   
)
int octave_tex_parse ( text_parser_tex parser)
static void yydestruct ( const char yymsg,
int  yytype,
OCTAVE_TEX_STYPE yyvaluep,
text_parser_tex parser 
)
static

Variable Documentation

const yytype_int8 yycheck[]
static
Initial value:
=
{
3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
13, 14, 15, 11, 17, 3, 4, 5, 6, 7,
8, 9, 10, 11, 12, 13, 14, 15, 11, 17,
3, 4, 5, 6, 7, 8, 9, 10, 11, 24,
13, 14, 15, 11, 17, 11, 11, 32, 11, 15,
15, 17, 17, 12, 12, 15, 15, 15, 27, 14,
29, 10, 11, 10, 11, 13, 0, -1, 22, 15,
12, 16, 16, 16, 12, 16, 9, -1, -1, -1,
-1, 21
}

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

Referenced by octave_tex_parse().

const yytype_uint8 yydefact[]
static
Initial value:
=
{
35, 5, 6, 7, 8, 0, 0, 0, 0, 0,
0, 0, 2, 4, 13, 15, 16, 17, 18, 19,
31, 20, 21, 22, 36, 14, 0, 0, 0, 0,
0, 34, 0, 23, 25, 24, 26, 28, 27, 3,
30, 29, 32, 1, 0, 0, 0, 0, 33, 10,
9, 11, 0, 0, 12
}

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

Referenced by octave_tex_parse().

const yytype_int8 yydefgoto[]
static
Initial value:
=
{
-1, 14, 15, 16, 17, 18, 19, 20, 21, 22,
23, 24, 25, 26
}

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

Referenced by octave_tex_parse().

const yytype_int8 yypact[]
static
Initial value:
=
{
27, -4, -4, -4, -4, 2, 17, 32, 37, -3,
34, 35, -4, -4, 40, -4, -4, -4, -4, -4,
-4, 45, 52, -4, 27, -4, 66, 54, 55, 54,
56, -4, 12, -4, -4, -4, -4, -4, -4, -4,
-4, -4, -4, -4, 41, 58, 42, 57, -4, -4,
-4, -4, 59, 62, -4
}

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

Referenced by octave_tex_parse().

const yytype_int8 yypgoto[]
static
Initial value:
=
{
-4, 31, 51, -4, -4, -4, -4, 15, 46, 60,
-4, 67, 53, -4
}

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

Referenced by octave_tex_parse().

const yytype_uint8 yyr1[]
static
Initial value:
=
{
0, 20, 21, 21, 22, 23, 23, 23, 23, 24,
25, 26, 26, 27, 27, 27, 27, 27, 27, 27,
27, 27, 27, 28, 28, 28, 29, 29, 29, 30,
30, 31, 31, 32, 32, 33, 33
}

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

Referenced by octave_tex_parse().

const yytype_uint8 yyr2[]
static
Initial value:
=
{
0, 2, 1, 2, 1, 1, 1, 1, 1, 4,
4, 4, 6, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 2, 2, 2, 2, 2, 2, 2,
2, 1, 2, 3, 2, 0, 1
}

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

Referenced by octave_tex_parse().

const yytype_uint8 yystos[]
static
Initial value:
=
{
0, 3, 4, 5, 6, 7, 8, 9, 10, 11,
13, 14, 15, 17, 21, 22, 23, 24, 25, 26,
27, 28, 29, 30, 31, 32, 33, 11, 11, 11,
11, 12, 31, 15, 22, 32, 15, 22, 32, 15,
29, 28, 27, 0, 21, 16, 21, 16, 12, 12,
12, 12, 16, 16, 12
}

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

Referenced by octave_tex_parse().

const yytype_uint8 yytable[]
static
Initial value:
=
{
1, 2, 3, 4, 5, 6, 7, 8, 9, 31,
10, 11, 12, 27, 13, 1, 2, 3, 4, 5,
6, 7, 8, 9, 48, 10, 11, 12, 28, 13,
1, 2, 3, 4, 5, 6, 7, 8, 9, 42,
10, 11, 12, 29, 13, 9, 9, 42, 30, 33,
36, 13, 13, 49, 51, 39, 39, 39, 44, 11,
46, 34, 37, 35, 38, 10, 43, 0, 41, 12,
50, 45, 47, 52, 54, 53, 32, 0, 0, 0,
0, 40
}

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

Referenced by octave_tex_parse().

const yytype_uint8 yytranslate[]
static

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