Logo Search packages:      
Sourcecode: parser version File versions  Download package

compile.tab.C File Reference


Detailed Description

Parser: compiler(lexical parser and grammar).

Copyright (c) 2001-2005 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf)

Id
compile.tab.C,v 1.123 2008-09-02 16:14:44 misha Exp

Definition in file compile.tab.C.

#include "compile_tools.h"
#include "pa_value.h"
#include "pa_request.h"
#include "pa_vobject.h"
#include "pa_vdouble.h"
#include "pa_globals.h"
#include "pa_vvoid.h"
#include "pa_vmethod_frame.h"
#include <stdio.h>

Go to the source code of this file.

Classes

union  yyalloc

Defines

#define BAD_HEX_LITERAL   262
#define BAD_METHOD_DECL_START   263
#define BAD_METHOD_PARAMETER_NAME_CHARACTER   264
#define BAD_NONWHITESPACE_CHARACTER_IN_EXPLICIT_RESULT_MODE   265
#define BAD_STRING_COMPARISON_OPERATOR   261
#define BOGUS   260
#define DEF   282
#define DEXISTS   285
#define EON   258
#define FEXISTS   284
#define IN   283
#define IS   286
#define LAND   266
#define lexical_brackets_nestage   pc.brackets_nestages[pc.ls_sp]
#define LITERAL_FALSE   288
#define LITERAL_TRUE   287
#define LOR   267
#define LXOR   268
#define NEQ   272
#define NGE   271
#define NLE   270
#define NNE   273
#define NSL   274
#define NSR   275
#define NUNARY   289
#define NXOR   269
#define OPTION_ALL_VARS_LOCAL_NAME   "locals"
#define OPTION_PARTIAL_CLASS   "partial"
#define OPTIONS_CONTROL_METHOD_NAME   "OPTIONS"
#define PC   (*(Parse_control *)pc)
#define POOL   (*PC.pool)
#define RC   {result=c; goto break2; }
#define SEQ   280
#define SGE   279
#define SGT   277
#define SLE   278
#define SLT   276
#define SNE   281
#define STRING   259
#define USE_CONTROL_METHOD_NAME   "USE"
#define YY_REDUCE_PRINT(Rule)
#define YY_STACK_PRINT(Bottom, Top)
#define YYABORT   goto yyabortlab
#define YYACCEPT   goto yyacceptlab
#define YYBACKUP(Token, Value)
#define YYBISON   1
#define yyclearin   (yychar = YYEMPTY)
#define YYCOPY(To, From, Count)
#define YYDEBUG   1
#define YYDPRINTF(Args)
#define YYDSYMPRINT(Args)
#define YYDSYMPRINTF(Title, Token, Value, Location)
#define YYEMPTY   (-2)
#define YYEOF   0
#define YYERRCODE   256
#define yyerrok   (yyerrstatus = 0)
#define YYERROR   goto yyerrorlab
#define yyerror(msg)   real_yyerror((Parse_control *)pc, msg)
#define YYERROR_VERBOSE   1
#define YYERROR_VERBOSE   1
#define YYFAIL   goto yyerrlab
#define YYFINAL   51
#define YYFPRINTF   fprintf
#define YYFREE   free
#define YYINITDEPTH   200
#define YYLAST   470
#define YYLEX   yylex (&yylval, YYLEX_PARAM)
#define YYLEX_PARAM   pc
#define YYLLOC_DEFAULT(Current, Rhs, N)
#define YYLSP_NEEDED   0
#define YYMALLOC   malloc
#define YYMAXDEPTH   10000
#define YYMAXUTOK   289
#define YYNNTS   89
#define YYNRULES   172
#define YYNSTATES   263
#define YYNTOKENS   62
#define YYPACT_NINF   -107
#define YYPARSE_PARAM   pc
#define YYPOPSTACK   (yyvsp--, yyssp--)
#define YYPRINT(file, type, value)   yyprint(file, type, value)
#define YYPURE   1
#define YYRECOVERING()   (!!yyerrstatus)
#define YYSIZE_T   unsigned int
#define YYSKELETON_NAME   "yacc.c"
#define YYSTACK_ALLOC   YYMALLOC
#define YYSTACK_BYTES(N)
#define YYSTACK_FREE   YYFREE
#define YYSTACK_GAP_MAXIMUM   (sizeof (union yyalloc) - 1)
#define YYSTACK_RELOCATE(Stack)
#define YYSTYPE   ArrayOperation*
#define YYTABLE_NINF   -173
#define YYTERROR   1
#define YYTRANSLATE(YYX)   ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
#define YYUNDEFTOK   2

Typedefs

typedef short int yysigned_char

Enumerations

enum  yytokentype {
  EON = 258, STRING = 259, BOGUS = 260, BAD_STRING_COMPARISON_OPERATOR = 261,
  BAD_HEX_LITERAL = 262, BAD_METHOD_DECL_START = 263, BAD_METHOD_PARAMETER_NAME_CHARACTER = 264, BAD_NONWHITESPACE_CHARACTER_IN_EXPLICIT_RESULT_MODE = 265,
  LAND = 266, LOR = 267, LXOR = 268, NXOR = 269,
  NLE = 270, NGE = 271, NEQ = 272, NNE = 273,
  NSL = 274, NSR = 275, SLT = 276, SGT = 277,
  SLE = 278, SGE = 279, SEQ = 280, SNE = 281,
  DEF = 282, IN = 283, FEXISTS = 284, DEXISTS = 285,
  IS = 286, LITERAL_TRUE = 287, LITERAL_FALSE = 288, NUNARY = 289
}

Functions

static int real_yyerror (Parse_control *pc, char *s)
void ungetc (Parse_control &pc, uint last_line_end_col)
static const VBool vfalse (false)
static const VBool vtrue (true)
static void yy_reduce_print (int yyrule)
static void yy_stack_print (short int *bottom, short int *top)
static void yydestruct (int yytype, YYSTYPE *yyvaluep)
static int yylex (YYSTYPE *lvalp, void *pc)
int yyparse (void *YYPARSE_PARAM)
int yyparse ()
static void yyprint (FILE *file, int type, YYSTYPE value)
static char * yystpcpy (char *yydest, const char *yysrc)
static YYSIZE_T yystrlen (char *yystr) const
static void yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep)

Variables

static const VVoid vvoid
static const short int yycheck []
int yydebug
static const unsigned char yydefact []
static const short int yydefgoto []
static const short int yypact []
static const short int yypgoto []
static const unsigned short int yyprhs []
static const unsigned char yyr1 []
static const unsigned char yyr2 []
static const short int yyrhs []
static const unsigned short int yyrline []
static const unsigned char yystos []
static const short int yytable []
static const char *const yytname []
static const unsigned short int yytoknum []
static const unsigned char yytranslate []


Generated by  Doxygen 1.6.0   Back to index