Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members

dotty_parser.cc File Reference

#include <sys/types.h>
#include "dotdefs.h"
#include <stdio.h>
#include <iostream>

Go to the source code of this file.

Compounds

union  yyalloc
union  YYSTYPE

Defines

#define YYBISON   1
#define YYSKELETON_NAME   "yacc.c"
#define YYPURE   0
#define YYLSP_NEEDED   0
#define INTEGER   258
#define STRING   259
#define YYDEBUG   0
#define YYERROR_VERBOSE   0
#define yystype   YYSTYPE
#define YYSTYPE_IS_DECLARED   1
#define YYSTYPE_IS_TRIVIAL   1
#define YYSTACK_ALLOC   malloc
#define YYSTACK_FREE   free
#define YYSTACK_GAP_MAXIMUM   (sizeof (union yyalloc) - 1)
#define YYSTACK_BYTES(N)
#define YYCOPY(To, From, Count)
#define YYSTACK_RELOCATE(Stack)
#define YYFINAL   2
#define YYLAST   6
#define YYNTOKENS   6
#define YYNNTS   3
#define YYNRULES   5
#define YYNSTATES   8
#define YYUNDEFTOK   2
#define YYMAXUTOK   259
#define YYTRANSLATE(YYX)   ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
#define YYPACT_NINF   -3
#define YYTABLE_NINF   -1
#define YYSIZE_T   unsigned int
#define yyerrok   (yyerrstatus = 0)
#define yyclearin   (yychar = YYEMPTY)
#define YYEMPTY   (-2)
#define YYEOF   0
#define YYACCEPT   goto yyacceptlab
#define YYABORT   goto yyabortlab
#define YYERROR   goto yyerrorlab
#define YYFAIL   goto yyerrlab
#define YYRECOVERING()   (!!yyerrstatus)
#define YYBACKUP(Token, Value)
#define YYTERROR   1
#define YYERRCODE   256
#define YYLLOC_DEFAULT(Current, Rhs, N)
#define YYLEX   yylex ()
#define YYDPRINTF(Args)
#define YYDSYMPRINT(Args)
#define YYDSYMPRINTF(Title, Token, Value, Location)
#define YY_STACK_PRINT(Bottom, Top)
#define YY_REDUCE_PRINT(Rule)
#define YYINITDEPTH   200
#define YYMAXDEPTH   10000
#define YYPOPSTACK   (yyvsp--, yyssp--)

Typedefs

typedef YYSTYPE YYSTYPE
typedef short yysigned_char

Enumerations

enum  yytokentype { INTEGER = 258, STRING = 259 }

Functions

void yyerror (char *)
int yylex ()
void yydestruct (yytype, yyvaluep) int yytype
int yyparse ()
bool readDottyConfiguration (const char *f=0, ostream &e=cerr)
void yyline (char *a, char *b="", char *c="", char *d="", char *e="")
void yyline1 (char *a)
void yyrecovered (char *exp, char *act)

Variables

int yylineno = 1
int yyprev = 0
int yyerrors = 0
const char * yyfilename = ""
ostream * g_errorStream = &cerr
const unsigned char yytranslate []
const unsigned char yyr1 []
const unsigned char yyr2 []
const unsigned char yydefact []
const yysigned_char yydefgoto []
const yysigned_char yypact []
const yysigned_char yypgoto []
const unsigned char yytable []
const yysigned_char yycheck []
const unsigned char yystos []
YYSTYPEyyvaluep
int yychar
YYSTYPE yylval
int yynerrs


Define Documentation

#define INTEGER   258
 

Definition at line 60 of file dotty_parser.cc.

#define STRING   259
 

Definition at line 61 of file dotty_parser.cc.

#define YY_REDUCE_PRINT Rule   ) 
 

Definition at line 543 of file dotty_parser.cc.

Referenced by yyparse().

#define YY_STACK_PRINT Bottom,
Top   ) 
 

Definition at line 542 of file dotty_parser.cc.

Referenced by yyparse().

#define YYABORT   goto yyabortlab
 

Definition at line 396 of file dotty_parser.cc.

Referenced by yyparse().

#define YYACCEPT   goto yyacceptlab
 

Definition at line 395 of file dotty_parser.cc.

Referenced by yyparse().

#define YYBACKUP Token,
Value   ) 
 

Value:

do                                                              \
  if (yychar == YYEMPTY && yylen == 1)                          \
    {                                                           \
      yychar = (Token);                                         \
      yylval = (Value);                                         \
      yytoken = YYTRANSLATE (yychar);                           \
      YYPOPSTACK;                                               \
      goto yybackup;                                            \
    }                                                           \
  else                                                          \
    {                                                           \
      yyerror ("syntax error: cannot back up");\
      YYERROR;                                                  \
    }                                                           \
while (0)

Definition at line 408 of file dotty_parser.cc.

#define YYBISON   1
 

Definition at line 37 of file dotty_parser.cc.

#define yyclearin   (yychar = YYEMPTY)
 

Definition at line 391 of file dotty_parser.cc.

#define YYCOPY To,
From,
Count   ) 
 

Value:

do                                      \
        {                                       \
          register YYSIZE_T yyi;                \
          for (yyi = 0; yyi < (Count); yyi++)   \
            (To)[yyi] = (From)[yyi];            \
        }                                       \
      while (0)

Definition at line 184 of file dotty_parser.cc.

#define YYDEBUG   0
 

Definition at line 93 of file dotty_parser.cc.

#define YYDPRINTF Args   ) 
 

Definition at line 539 of file dotty_parser.cc.

Referenced by yyparse().

#define YYDSYMPRINT Args   ) 
 

Definition at line 540 of file dotty_parser.cc.

#define YYDSYMPRINTF Title,
Token,
Value,
Location   ) 
 

Definition at line 541 of file dotty_parser.cc.

Referenced by yyparse().

#define YYEMPTY   (-2)
 

Definition at line 392 of file dotty_parser.cc.

Referenced by yyparse().

#define YYEOF   0
 

Definition at line 393 of file dotty_parser.cc.

Referenced by yyparse().

#define YYERRCODE   256
 

Definition at line 426 of file dotty_parser.cc.

#define yyerrok   (yyerrstatus = 0)
 

Definition at line 390 of file dotty_parser.cc.

#define YYERROR   goto yyerrorlab
 

Definition at line 397 of file dotty_parser.cc.

#define YYERROR_VERBOSE   0
 

Definition at line 101 of file dotty_parser.cc.

#define YYFAIL   goto yyerrlab
 

Definition at line 404 of file dotty_parser.cc.

#define YYFINAL   2
 

Definition at line 220 of file dotty_parser.cc.

Referenced by yyparse().

#define YYINITDEPTH   200
 

Definition at line 549 of file dotty_parser.cc.

Referenced by yyparse().

#define YYLAST   6
 

Definition at line 222 of file dotty_parser.cc.

Referenced by yyparse().

#define YYLEX   yylex ()
 

Definition at line 444 of file dotty_parser.cc.

Referenced by yyparse().

#define YYLLOC_DEFAULT Current,
Rhs,
 ) 
 

Value:

((Current).first_line   = (Rhs)[1].first_line,  \
    (Current).first_column = (Rhs)[1].first_column,     \
    (Current).last_line    = (Rhs)[N].last_line,        \
    (Current).last_column  = (Rhs)[N].last_column)

Definition at line 432 of file dotty_parser.cc.

#define YYLSP_NEEDED   0
 

Definition at line 46 of file dotty_parser.cc.

#define YYMAXDEPTH   10000
 

Definition at line 564 of file dotty_parser.cc.

Referenced by yyparse().

#define YYMAXUTOK   259
 

Definition at line 235 of file dotty_parser.cc.

#define YYNNTS   3
 

Definition at line 227 of file dotty_parser.cc.

#define YYNRULES   5
 

Definition at line 229 of file dotty_parser.cc.

#define YYNSTATES   8
 

Definition at line 231 of file dotty_parser.cc.

#define YYNTOKENS   6
 

Definition at line 225 of file dotty_parser.cc.

Referenced by yyparse().

#define YYPACT_NINF   -3
 

Definition at line 340 of file dotty_parser.cc.

Referenced by yyparse().

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

#define YYPURE   0
 

Definition at line 43 of file dotty_parser.cc.

 
#define YYRECOVERING  )     (!!yyerrstatus)
 

Definition at line 406 of file dotty_parser.cc.

#define YYSIZE_T   unsigned int
 

Definition at line 387 of file dotty_parser.cc.

Referenced by yyparse().

#define YYSKELETON_NAME   "yacc.c"
 

Definition at line 40 of file dotty_parser.cc.

#define YYSTACK_ALLOC   malloc
 

Definition at line 151 of file dotty_parser.cc.

Referenced by yyparse().

#define YYSTACK_BYTES  ) 
 

Value:

((N) * (sizeof (short) + sizeof (YYSTYPE))                              \
      + YYSTACK_GAP_MAXIMUM)

Definition at line 173 of file dotty_parser.cc.

Referenced by yyparse().

#define YYSTACK_FREE   free
 

Definition at line 152 of file dotty_parser.cc.

Referenced by yyparse().

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

Definition at line 169 of file dotty_parser.cc.

#define YYSTACK_RELOCATE Stack   ) 
 

Value:

do                                                                      \
      {                                                                 \
        YYSIZE_T yynewbytes;                                            \
        YYCOPY (&yyptr->Stack, Stack, yysize);                          \
        Stack = &yyptr->Stack;                                          \
        yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
        yyptr += yynewbytes / sizeof (*yyptr);                          \
      }                                                                 \
    while (0)

Definition at line 200 of file dotty_parser.cc.

Referenced by yyparse().

#define yystype   YYSTYPE
 

Definition at line 112 of file dotty_parser.cc.

#define YYSTYPE_IS_DECLARED   1
 

Definition at line 113 of file dotty_parser.cc.

#define YYSTYPE_IS_TRIVIAL   1
 

Definition at line 114 of file dotty_parser.cc.

#define YYTABLE_NINF   -1
 

Definition at line 356 of file dotty_parser.cc.

Referenced by yyparse().

#define YYTERROR   1
 

Definition at line 425 of file dotty_parser.cc.

Referenced by yyparse().

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

Definition at line 237 of file dotty_parser.cc.

Referenced by yyparse().

#define YYUNDEFTOK   2
 

Definition at line 234 of file dotty_parser.cc.


Typedef Documentation

typedef short yysigned_char
 

Definition at line 216 of file dotty_parser.cc.

typedef union YYSTYPE YYSTYPE
 


Enumeration Type Documentation

enum yytokentype
 

Enumeration values:
INTEGER 
STRING 

Definition at line 55 of file dotty_parser.cc.


Function Documentation

bool readDottyConfiguration const char *  f = 0,
ostream &  e = cerr
 

Definition at line 1223 of file dotty_parser.cc.

References g_errorStream, yyerrors, yyfilename, yylineno, yyparse(), and yyprev.

Referenced by readConfig().

void yydestruct yytype  ,
yyvaluep 
[static]
 

Referenced by yyparse().

void yyerror char *   ) 
 

Definition at line 1270 of file dotty_parser.cc.

References yyline().

Referenced by yyparse().

int yylex  ) 
 

void yyline char *  a,
char *  b = "",
char *  c = "",
char *  d = "",
char *  e = ""
 

Definition at line 1245 of file dotty_parser.cc.

References g_errorStream, yyerrors, yyfilename, yylineno, and yyprev.

Referenced by yyerror(), yyline1(), and yyrecovered().

void yyline1 char *  a  ) 
 

Definition at line 1265 of file dotty_parser.cc.

References yyline().

int yyparse  ) 
 

Definition at line 734 of file dotty_parser.cc.

References addOptionInteger(), addOptionString(), YY_REDUCE_PRINT, YY_STACK_PRINT, YYABORT, YYACCEPT, yychar, yycheck, yydefact, yydefgoto, yydestruct(), YYDPRINTF, YYDSYMPRINTF, YYEMPTY, YYEOF, yyerror(), YYFINAL, YYINITDEPTH, YYLAST, YYLEX, yylval, YYMAXDEPTH, yynerrs, YYNTOKENS, yypact, YYPACT_NINF, yypgoto, yyr1, yyr2, YYSIZE_T, YYSTACK_ALLOC, YYSTACK_BYTES, YYSTACK_FREE, YYSTACK_RELOCATE, yystos, yytable, YYTABLE_NINF, YYTERROR, and YYTRANSLATE.

Referenced by readDottyConfiguration().

void yyrecovered char *  exp,
char *  act
 

Definition at line 1275 of file dotty_parser.cc.

References yyline().


Variable Documentation

ostream* g_errorStream = &cerr [static]
 

Definition at line 87 of file dotty_parser.cc.

Referenced by readDottyConfiguration(), and yyline().

int yychar
 

Definition at line 707 of file dotty_parser.cc.

Referenced by yyparse().

const yysigned_char yycheck[] [static]
 

Initial value:

{
       0,     3,     4,    -1,     4,    -1,     5
}

Definition at line 362 of file dotty_parser.cc.

Referenced by yyparse().

const unsigned char yydefact[] [static]
 

Initial value:

{
       2,     0,     1,     0,     3,     0,     5,     4
}

Definition at line 327 of file dotty_parser.cc.

Referenced by yyparse().

const yysigned_char yydefgoto[] [static]
 

Initial value:

{
      -1,     1,     4
}

Definition at line 333 of file dotty_parser.cc.

Referenced by yyparse().

int yyerrors = 0
 

Definition at line 81 of file dotty_parser.cc.

Referenced by readDottyConfiguration(), and yyline().

const char* yyfilename = ""
 

Definition at line 82 of file dotty_parser.cc.

Referenced by readDottyConfiguration(), and yyline().

int yylineno = 1
 

Definition at line 79 of file dotty_parser.cc.

Referenced by readDottyConfiguration(), and yyline().

YYSTYPE yylval
 

Definition at line 710 of file dotty_parser.cc.

Referenced by yyparse().

int yynerrs
 

Definition at line 713 of file dotty_parser.cc.

Referenced by yyparse().

const yysigned_char yypact[] [static]
 

Initial value:

{
      -3,     0,    -3,     1,    -3,    -2,    -3,    -3
}

Definition at line 341 of file dotty_parser.cc.

Referenced by yyparse().

const yysigned_char yypgoto[] [static]
 

Initial value:

{
      -3,    -3,    -3
}

Definition at line 347 of file dotty_parser.cc.

Referenced by yyparse().

int yyprev = 0
 

Definition at line 80 of file dotty_parser.cc.

Referenced by readDottyConfiguration(), and yyline().

const unsigned char yyr1[] [static]
 

Initial value:

{
       0,     6,     7,     7,     8,     8
}

Definition at line 313 of file dotty_parser.cc.

Referenced by yyparse().

const unsigned char yyr2[] [static]
 

Initial value:

{
       0,     2,     0,     2,     3,     3
}

Definition at line 319 of file dotty_parser.cc.

Referenced by yyparse().

const unsigned char yystos[] [static]
 

Initial value:

{
       0,     7,     0,     4,     8,     5,     3,     4
}

Definition at line 369 of file dotty_parser.cc.

Referenced by yyparse().

const unsigned char yytable[] [static]
 

Initial value:

{
       2,     6,     7,     0,     3,     0,     5
}

Definition at line 357 of file dotty_parser.cc.

Referenced by yyparse().

const unsigned char yytranslate[] [static]
 

Initial value:

{
       0,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     5,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     1,     2,     3,     4
}

Definition at line 241 of file dotty_parser.cc.

YYSTYPE* yyvaluep
 

Definition at line 673 of file dotty_parser.cc.


Generated on Wed Feb 15 14:52:39 2006 for yapi by doxygen 1.3.2