GNU Octave  3.8.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 dependency graph for oct-tex-parser.cc:

Go to the source code of this file.

Classes

union  yyalloc

Macros

#define __attribute__(Spec)   /* empty */
#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_IGNORE_MAYBE_UNINITIALIZED_BEGIN
#define YY_IGNORE_MAYBE_UNINITIALIZED_END
#define YY_INITIAL_VALUE(Value)   = Value
#define YY_LOCATION_PRINT(File, Loc)   ((void) 0)
#define YY_NULL   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   "2.7.12-4996"
#define yychar   octave_tex_char
#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 YYFAIL   goto yyerrlab
#define YYFINAL   43
#define YYFREE   free
#define YYID(N)   (N)
#define YYINITDEPTH   200
#define YYLAST   81
#define yylex   octave_tex_lex
#define YYLEX   yylex (&yylval, scanner)
#define yylval   octave_tex_lval
#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   unsigned int
#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 YYTABLE_NINF   -1
#define yytable_value_is_error(Yytable_value)   YYID (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 short int yytype_int8
typedef unsigned short int yytype_uint16
typedef unsigned char yytype_uint8

Functions

 if (!yymsg) yymsg
static void octave_tex_error (text_parser_tex &parser, const char *s)
int octave_tex_lex (YYSTYPE *, void *)
 The main scanner function which does all the work.
int octave_tex_parse ()
int octave_tex_parse (parser) text_parser_tex &parser
 switch (yytype)
() void (yyvaluep))
() void (parser))
static void yydestruct (yymsg, yytype, yyvaluep, parser) const char *yymsg

Variables

text_parser_texparser
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 []
int yytype
YYSTYPEyyvaluep

Macro Definition Documentation

#define __attribute__ (   Spec)    /* empty */

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

#define BF   258

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

#define CH   270

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

#define COLOR   264

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

#define COLOR_RGB   265

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

#define END   267

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

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

#define FONTNAME   262

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

#define FONTSIZE   263

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

#define IT   259

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

#define NUM   271
#define RM   261

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

#define scanner   parser.get_scanner ()

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

Referenced by text_parser_tex::get_scanner().

#define SCRIPT   273

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

#define SL   260

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

#define START   266

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

#define STR   274

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

#define SUB   269

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

#define SUPER   268

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

#define SYM   272

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

#define YY_ (   Msgid)    Msgid

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

#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
#define YY_IGNORE_MAYBE_UNINITIALIZED_END
#define YY_INITIAL_VALUE (   Value)    = Value
#define YY_LOCATION_PRINT (   File,
  Loc 
)    ((void) 0)

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

#define YY_NULL   0

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

#define YY_OCTAVE_TEX_COREFCN_OCT_TEX_PARSER_H_INCLUDED

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

#define YY_REDUCE_PRINT (   Rule)

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

#define YY_STACK_PRINT (   Bottom,
  Top 
)

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

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

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

#define YYABORT   goto yyabortlab

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

#define YYACCEPT   goto yyacceptlab

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

#define YYBACKUP (   Token,
  Value 
)
Value:
{ \
yychar = (Token); \
yylval = (Value); \
YYPOPSTACK (yylen); \
yystate = *yyssp; \
goto yybackup; \
} \
else \
{ \
yyerror (parser, YY_("syntax error: cannot back up")); \
YYERROR; \
} \
while (YYID (0))

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

#define YYBISON   1

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

#define YYBISON_VERSION   "2.7.12-4996"

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

#define yychar   octave_tex_char

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

#define yyclearin   (yychar = YYEMPTY)

Definition at line 677 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 (YYID (0))

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 68 of file oct-tex-parser.cc.

#define YYDEBUG   1

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

#define YYDPRINTF (   Args)

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

#define YYEMPTY   (-2)

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

#define YYEOF   0

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

#define YYERRCODE   256

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

#define yyerrok   (yyerrstatus = 0)

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

#define yyerror   octave_tex_error

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

#define YYERROR   goto yyerrorlab

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

#define YYERROR_VERBOSE   0

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

#define YYFAIL   goto yyerrlab

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

#define YYFINAL   43

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

#define YYFREE   free

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

#define YYID (   N)    (N)

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

#define YYINITDEPTH   200

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

#define YYLAST   81

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

#define yylex   octave_tex_lex

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

#define YYLEX   yylex (&yylval, scanner)

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

#define yylval   octave_tex_lval

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

#define YYMALLOC   malloc

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

#define YYMAXDEPTH   10000

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

#define YYMAXUTOK   274

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

#define yynerrs   octave_tex_nerrs

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

#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.

#define YYPACT_NINF   -4

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

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

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

#define yyparse   octave_tex_parse

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

#define YYPOPSTACK (   N)    (yyvsp -= (N), yyssp -= (N))
#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 701 of file oct-tex-parser.cc.

#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)

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

#define YYSIZE_T   unsigned int

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

#define YYSKELETON_NAME   "yacc.c"

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

#define YYSTACK_ALLOC   YYMALLOC

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

#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM

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

#define YYSTACK_BYTES (   N)
Value:
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \

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

#define YYSTACK_FREE   YYFREE

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

#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 (YYID (0))

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

#define YYTABLE_NINF   -1

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

#define yytable_value_is_error (   Yytable_value)    YYID (0)

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

#define YYTERROR   1

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

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

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

#define YYUNDEFTOK   2

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

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

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

Typedef Documentation

typedef short int yytype_int16

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

typedef short int yytype_int8

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

typedef unsigned short int yytype_uint16

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

typedef unsigned char yytype_uint8

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

Function Documentation

if ( yymsg)

Referenced by load_path::do_files().

static void octave_tex_error ( text_parser_tex parser,
const char s 
)
static
int octave_tex_lex ( YYSTYPE ,
void  
)
int octave_tex_parse ( )
int octave_tex_parse ( parser  )
switch ( yytype  )

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

() void ( yyvaluep  )
() void ( parser  )
static void yydestruct ( yymsg  ,
yytype  ,
yyvaluep  ,
parser   
) const
static

Variable Documentation

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

Referenced by main_loop(), and text_parser::parse().

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 651 of file oct-tex-parser.cc.

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 591 of file oct-tex-parser.cc.

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

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

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 611 of file oct-tex-parser.cc.

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

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

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 571 of file oct-tex-parser.cc.

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 580 of file oct-tex-parser.cc.

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 666 of file oct-tex-parser.cc.

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 632 of file oct-tex-parser.cc.

const yytype_uint8 yytranslate[]
static

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

int yytype

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

YYSTYPE * yyvaluep

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