Desktop/FinalOpenEaagles/FinalOpenEaagles/basic/Parser.cpp File Reference

Include dependency graph for Parser.cpp:


Namespaces

namespace  Eaagles
namespace  Eaagles::Basic

Classes

union  yystype
union  yyalloc

Defines

#define YYBISON   1
#define IDENT   257
#define SLOT_ID   258
#define INTEGERconstant   259
#define FLOATINGconstant   260
#define BOOLconstant   261
#define STRING_LITERAL   262
#define YYSTYPE   yystype
#define YYSTYPE_IS_TRIVIAL   1
#define YYDEBUG   0
#define YYFINAL   30
#define YYFLAG   -32768
#define YYNTBASE   15
#define YYTRANSLATE(x)   ((unsigned)(x) <= 262 ? yytranslate[x] : 22)
#define YYLAST   48
#define YYSTACK_ALLOC   malloc
#define YYSTACK_FREE   free
#define YYSTACK_GAP_MAX   (sizeof (union yyalloc) - 1)
#define YYSTACK_BYTES(N)
#define YYCOPY(To, From, Count)
#define YYSTACK_RELOCATE(Stack)
#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 yyerrlab1
#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 YYINITDEPTH   200
#define YYMAXDEPTH   10000
#define YYPARSE_PARAM_ARG
#define YYPARSE_PARAM_DECL
#define YY_DECL_NON_LSP_VARIABLES
#define YY_DECL_VARIABLES   YY_DECL_NON_LSP_VARIABLES
#define YYPOPSTACK   (yyvsp--, yyssp--)

Functions

int yylex ()
void yyerror (const char *s)
static Eaagles::Basic::LcObjectgufParse (const char *formname, Eaagles::Basic::LcPairStream *argList)
YY_DECL_VARIABLES int yyparse (YYPARSE_PARAM_ARG) YYPARSE_PARAM_DECL
LcObjectEaagles::Basic::lcParser (const char *filename, ParserFormFunc func, int *numErrors=0)

Variables

static Eaagles::Basic::LcObjectresult
static Eaagles::Basic::LcLexicallex
static Eaagles::Basic::ParserFormFunc formFunc
static int errCount
static const char yytranslate []
static const short yyr1 []
static const short yyr2 []
static const short yydefact []
static const short yydefgoto []
static const short yypact []
static const short yypgoto []
static const short yytable []
static const short yycheck []

Define Documentation

#define BOOLconstant   261

#define FLOATINGconstant   260

#define IDENT   257

#define INTEGERconstant   259

#define SLOT_ID   258

#define STRING_LITERAL   262

#define YY_DECL_NON_LSP_VARIABLES

Value:

/* The lookahead symbol.  */                            \
int yychar;                                             \
                                                        \
/* The semantic value of the lookahead symbol. */       \
YYSTYPE yylval;                                         \
                                                        \
/* Number of parse errors so far.  */                   \
int yynerrs;

#define YY_DECL_VARIABLES   YY_DECL_NON_LSP_VARIABLES

#define YYABORT   goto yyabortlab

#define YYACCEPT   goto yyacceptlab

#define YYBACKUP ( Token,
Value   ) 

Value:

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

#define YYBISON   1

#define yyclearin   (yychar = YYEMPTY)

#define YYCOPY ( To,
From,
Count   ) 

Value:

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

#define YYDEBUG   0

#define YYDPRINTF ( Args   ) 

#define YYEMPTY   -2

#define YYEOF   0

#define YYERRCODE   256

#define yyerrok   (yyerrstatus = 0)

#define YYERROR   goto yyerrlab1

#define YYFAIL   goto yyerrlab

#define YYFINAL   30

#define YYFLAG   -32768

#define YYINITDEPTH   200

#define YYLAST   48

#define YYLEX   yylex ()

#define YYLLOC_DEFAULT ( Current,
Rhs,
 ) 

Value:

Current.last_line   = Rhs[N].last_line; \
   Current.last_column = Rhs[N].last_column;

#define YYMAXDEPTH   10000

#define YYNTBASE   15

#define YYPARSE_PARAM_ARG

#define YYPARSE_PARAM_DECL

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

 
#define YYRECOVERING (  )     (!!yyerrstatus)

#define YYSIZE_T   unsigned int

#define YYSTACK_ALLOC   malloc

#define YYSTACK_BYTES (  ) 

Value:

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

#define YYSTACK_FREE   free

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

#define YYSTACK_RELOCATE ( Stack   ) 

Value:

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

#define YYSTYPE   yystype

#define YYSTYPE_IS_TRIVIAL   1

#define YYTERROR   1

#define YYTRANSLATE (  )     ((unsigned)(x) <= 262 ? yytranslate[x] : 22)


Function Documentation

static Eaagles::Basic::LcObject* gufParse ( const char *  formname,
Eaagles::Basic::LcPairStream argList 
) [static]

void yyerror ( const char *  s  )  [inline]

int yylex (  )  [inline]

YY_DECL_VARIABLES int yyparse ( YYPARSE_PARAM_ARG   ) 


Variable Documentation

int errCount [static]

Eaagles::Basic::ParserFormFunc formFunc [static]

Eaagles::Basic::LcLexical* lex [static]

Eaagles::Basic::LcObject* result [static]

const short yycheck[] [static]

Initial value:

{
       3,     4,     5,     6,     7,     8,     9,     3,    11,    12,
      13,     3,     4,     5,     6,     7,     8,     9,    10,    11,
       3,    13,     5,     6,     7,     8,     9,    16,    11,     0,
      13,     0,     1,     5,     6,    24,     0,    10,     4,     6,
      -1,    10,    14,     9,     9,    11,    11,     5,     6
}

const short yydefact[] [static]

Initial value:

{
       0,     0,     0,     3,     1,     2,     3,     0,     0,    12,
       0,    18,    19,    13,    11,     8,     0,     4,     6,     5,
      15,     7,    10,     9,     0,    16,    14,    17,     0,     0,
       0
}

const short yydefgoto[] [static]

Initial value:

{
      28,     7,    17,    18,    19,    24,    20
}

const short yypact[] [static]

Initial value:

{
      34,    35,     4,-32768,-32768,-32768,-32768,    -3,     8,-32768,
      17,-32768,-32768,-32768,-32768,-32768,    42,-32768,-32768,-32768,
  -32768,-32768,-32768,-32768,    28,-32768,-32768,-32768,    29,    36,
  -32768
}

const short yypgoto[] [static]

Initial value:

{
  -32768,    33,    31,-32768,    27,-32768,    11
}

const short yyr1[] [static]

Initial value:

{
       0,    15,    15,    16,    16,    16,    16,    17,    17,    18,
      18,    19,    19,    19,    19,    19,    20,    20,    21,    21
}

const short yyr2[] [static]

Initial value:

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

const short yytable[] [static]

Initial value:

{
       9,    10,    11,    12,    13,    14,     2,     6,     3,    15,
      16,     9,    10,    11,    12,    13,    14,     2,    21,     3,
       9,    16,    11,    12,    13,    14,     2,    25,     3,    29,
      16,     4,     5,    11,    12,    27,    30,    23,     1,     8,
       0,    22,    26,     2,     2,     3,     3,    11,    12
}

const 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,
       9,    10,     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,    13,     2,    14,     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,    11,     2,    12,     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,     3,     4,     5,
       6,     7,     8
}


Generated on Tue Dec 19 16:22:39 2006 for Eaagles by  doxygen 1.5.0