Eneboo - Documentación para desarrolladores
Clases | 'defines' | 'typedefs' | Enumeraciones | Funciones | Variables
Referencia del Archivo src/qsa/src/engine/grammar.cpp
#include <string.h>
#include "qsengine.h"
#include "qsnodes.h"
#include "qslexer.h"

Clases

union  YYSTYPE
struct  YYLTYPE
union  yyalloc

'defines'

#define YYBISON   1
#define YYBISON_VERSION   "2.4.1"
#define YYSKELETON_NAME   "yacc.c"
#define YYPURE   0
#define YYPUSH   0
#define YYPULL   1
#define YYLSP_NEEDED   1
#define yyparse   qsyyparse
#define yylex   qsyylex
#define yyerror   qsyyerror
#define yylval   qsyylval
#define yychar   qsyychar
#define yydebug   qsyydebug
#define yynerrs   qsyynerrs
#define yylloc   qsyylloc
#define YYMAXDEPTH   10000
#define YYENABLE_NLS   0
#define YYDEBUG   0
#define DBG(l, s, e)
#define YYERROR_VERBOSE   0
#define YYTOKEN_TABLE   0
#define YYTOKENTYPE
#define YYSTYPE_IS_TRIVIAL   1
#define yystype   YYSTYPE
#define YYSTYPE_IS_DECLARED   1
#define yyltype   YYLTYPE
#define YYLTYPE_IS_DECLARED   1
#define YYLTYPE_IS_TRIVIAL   1
#define YYSIZE_T   unsigned int
#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)
#define YY_(msgid)   msgid
#define YYUSE(e)   ((void) (e))
#define YYID(n)   (n)
#define YYSTACK_ALLOC   YYMALLOC
#define YYSTACK_FREE   YYFREE
#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM
#define YYMALLOC   malloc
#define YYFREE   free
#define YYSTACK_GAP_MAXIMUM   (sizeof (union yyalloc) - 1)
#define YYSTACK_BYTES(N)
#define YYCOPY(To, From, Count)
#define YYSTACK_RELOCATE(Stack_alloc, Stack)
#define YYFINAL   200
#define YYLAST   1418
#define YYNTOKENS   96
#define YYNNTS   74
#define YYNRULES   225
#define YYNSTATES   410
#define YYUNDEFTOK   2
#define YYMAXUTOK   326
#define YYTRANSLATE(YYX)   ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
#define YYPACT_NINF   -318
#define YYTABLE_NINF   -214
#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 YYRHSLOC(Rhs, K)   ((Rhs)[K])
#define YYLLOC_DEFAULT(Current, Rhs, N)
#define YY_LOCATION_PRINT(File, Loc)
#define YYLEX   yylex ()
#define YYDPRINTF(Args)
#define YY_SYMBOL_PRINT(Title, Type, Value, Location)
#define YY_STACK_PRINT(Bottom, Top)
#define YY_REDUCE_PRINT(Rule)
#define YYINITDEPTH   200
#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N), yylsp -= (N))

'typedefs'

typedef union YYSTYPE YYSTYPE
typedef struct YYLTYPE YYLTYPE
typedef unsigned char yytype_uint8
typedef short int yytype_int8
typedef unsigned short int yytype_uint16
typedef short int yytype_int16

Enumeraciones

enum  yytokentype {
  NULLTOKEN = 258, TRUETOKEN = 259, FALSETOKEN = 260, BREAK = 261,
  CASE = 262, DEFAULT = 263, FOR = 264, NEW = 265,
  VAR = 266, CONTINUE = 267, FUNCTION = 268, RETURN = 269,
  QS_VOID = 270, QS_DELETE = 271, IF = 272, THIS = 273,
  DO = 274, WHILE = 275, ELSE = 276, QS_IN = 277,
  INSTANCEOF = 278, TYPEOF = 279, IS = 280, SWITCH = 281,
  WITH = 282, RESERVED = 283, THROW = 284, TRY = 285,
  CATCH = 286, FINALLY = 287, CLASS = 288, CONSTRUCTOR = 289,
  EXTENDS = 290, ABSTRACT = 291, FINAL = 292, PRIVATE = 293,
  PUBLIC = 294, STATIC = 295, QS_CONST = 296, PACKAGE = 297,
  IMPORT = 298, IF_WITHOUT_ELSE = 299, EQEQ = 300, NE = 301,
  STREQ = 302, STRNEQ = 303, LE = 304, GE = 305,
  OR = 306, AND = 307, PLUSPLUS = 308, MINUSMINUS = 309,
  LSHIFT = 310, RSHIFT = 311, URSHIFT = 312, PLUSEQUAL = 313,
  MINUSEQUAL = 314, MULTEQUAL = 315, DIVEQUAL = 316, LSHIFTEQUAL = 317,
  RSHIFTEQUAL = 318, URSHIFTEQUAL = 319, ANDEQUAL = 320, MODEQUAL = 321,
  XOREQUAL = 322, OREQUAL = 323, NUMBER = 324, STRING = 325,
  IDENT = 326, NULLTOKEN = 258, TRUETOKEN = 259, FALSETOKEN = 260,
  BREAK = 261, CASE = 262, DEFAULT = 263, FOR = 264,
  NEW = 265, VAR = 266, CONTINUE = 267, FUNCTION = 268,
  RETURN = 269, QS_VOID = 270, QS_DELETE = 271, IF = 272,
  THIS = 273, DO = 274, WHILE = 275, ELSE = 276,
  QS_IN = 277, INSTANCEOF = 278, TYPEOF = 279, IS = 280,
  SWITCH = 281, WITH = 282, RESERVED = 283, THROW = 284,
  TRY = 285, CATCH = 286, FINALLY = 287, CLASS = 288,
  CONSTRUCTOR = 289, EXTENDS = 290, ABSTRACT = 291, FINAL = 292,
  PRIVATE = 293, PUBLIC = 294, STATIC = 295, QS_CONST = 296,
  PACKAGE = 297, IMPORT = 298, IF_WITHOUT_ELSE = 299, EQEQ = 300,
  NE = 301, STREQ = 302, STRNEQ = 303, LE = 304,
  GE = 305, OR = 306, AND = 307, PLUSPLUS = 308,
  MINUSMINUS = 309, LSHIFT = 310, RSHIFT = 311, URSHIFT = 312,
  PLUSEQUAL = 313, MINUSEQUAL = 314, MULTEQUAL = 315, DIVEQUAL = 316,
  LSHIFTEQUAL = 317, RSHIFTEQUAL = 318, URSHIFTEQUAL = 319, ANDEQUAL = 320,
  MODEQUAL = 321, XOREQUAL = 322, OREQUAL = 323, NUMBER = 324,
  STRING = 325, IDENT = 326
}

Funciones

int yylex ()
 YYUSE (yyvaluep)
 YYUSE (yylocationp)
 if (!yymsg) yymsg
 YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp)
 switch (yytype)
int yyparse ()

Variables

int yytype
YYSTYPEyyvaluep
YYLTYPEyylocationp
int yychar
YYSTYPE yylval
YYLTYPE yylloc
int yynerrs

Documentación de los 'defines'

#define DBG (   l,
  s,
 
)
#define YY_ (   msgid)    msgid
#define YY_LOCATION_PRINT (   File,
  Loc 
)
Valor:
fprintf (File, "%d.%d-%d.%d",                   \
              (Loc).first_line, (Loc).first_column,     \
              (Loc).last_line,  (Loc).last_column)
#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 
)
Valor:
do                                                              \
  if (yychar == YYEMPTY && yylen == 1)                          \
    {                                                           \
      yychar = (Token);                                         \
      yylval = (Value);                                         \
      yytoken = YYTRANSLATE (yychar);                           \
      YYPOPSTACK (1);                                           \
      goto yybackup;                                            \
    }                                                           \
  else                                                          \
    {                                                           \
      yyerror (YY_("syntax error: cannot back up")); \
      YYERROR;                                                  \
    }                                                           \
while (YYID (0))
#define YYBISON   1
#define YYBISON_VERSION   "2.4.1"
#define yychar   qsyychar
#define yyclearin   (yychar = YYEMPTY)
#define YYCOPY (   To,
  From,
  Count 
)
Valor:
do                                      \
        {                                       \
          YYSIZE_T yyi;                         \
          for (yyi = 0; yyi < (Count); yyi++)   \
            (To)[yyi] = (From)[yyi];            \
        }                                       \
      while (YYID (0))
#define YYDEBUG   0
int yydebug   qsyydebug
#define YYDPRINTF (   Args)
#define YYEMPTY   (-2)
#define YYENABLE_NLS   0
#define YYEOF   0
#define YYERRCODE   256
#define yyerrok   (yyerrstatus = 0)
#define yyerror   qsyyerror
#define YYERROR   goto yyerrorlab
#define YYERROR_VERBOSE   0
#define YYFAIL   goto yyerrlab
#define YYFINAL   200
#define YYFREE   free
#define YYID (   n)    (n)
#define YYINITDEPTH   200
#define YYLAST   1418
#define yylex   qsyylex
#define YYLEX   yylex ()
#define yylloc   qsyylloc
#define YYLLOC_DEFAULT (   Current,
  Rhs,
 
)
Valor:
do                                                                      \
      if (YYID (N))                                                    \
        {                                                               \
          (Current).first_line   = YYRHSLOC (Rhs, 1).first_line;        \
          (Current).first_column = YYRHSLOC (Rhs, 1).first_column;      \
          (Current).last_line    = YYRHSLOC (Rhs, N).last_line;         \
          (Current).last_column  = YYRHSLOC (Rhs, N).last_column;       \
        }                                                               \
      else                                                              \
        {                                                               \
          (Current).first_line   = (Current).last_line   =              \
            YYRHSLOC (Rhs, 0).last_line;                                \
          (Current).first_column = (Current).last_column =              \
            YYRHSLOC (Rhs, 0).last_column;                              \
        }                                                               \
    while (YYID (0))
#define YYLSP_NEEDED   1
#define yyltype   YYLTYPE
#define YYLTYPE_IS_DECLARED   1
#define YYLTYPE_IS_TRIVIAL   1
#define yylval   qsyylval
#define YYMALLOC   malloc
#define YYMAXDEPTH   10000
#define YYMAXUTOK   326
#define yynerrs   qsyynerrs
#define YYNNTS   74
#define YYNRULES   225
#define YYNSTATES   410
#define YYNTOKENS   96
#define YYPACT_NINF   -318
int yyparse   qsyyparse

$$ += QString::fromLatin1(".") + *($3);

#define YYPOPSTACK (   N)    (yyvsp -= (N), yyssp -= (N), yylsp -= (N))
#define YYPULL   1
#define YYPURE   0
#define YYPUSH   0
#define YYRECOVERING ( )    (!!yyerrstatus)
#define YYRHSLOC (   Rhs,
 
)    ((Rhs)[K])
#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)
Valor:
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \
      + 2 * YYSTACK_GAP_MAXIMUM)
#define YYSTACK_FREE   YYFREE
#define YYSTACK_GAP_MAXIMUM   (sizeof (union yyalloc) - 1)
#define YYSTACK_RELOCATE (   Stack_alloc,
  Stack 
)
Valor:
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))
#define yystype   YYSTYPE
#define YYSTYPE_IS_DECLARED   1
#define YYSTYPE_IS_TRIVIAL   1
#define YYTABLE_NINF   -214
#define YYTERROR   1
#define YYTOKEN_TABLE   0
#define YYTOKENTYPE
#define YYTRANSLATE (   YYX)    ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
#define YYUNDEFTOK   2
#define YYUSE (   e)    ((void) (e))

Documentación de los 'typedefs'

typedef struct YYLTYPE YYLTYPE
typedef union YYSTYPE YYSTYPE
typedef short int yytype_int16
typedef short int yytype_int8
typedef unsigned short int yytype_uint16
typedef unsigned char yytype_uint8

Documentación de las enumeraciones

Valores de enumeraciones:
NULLTOKEN 
TRUETOKEN 
FALSETOKEN 
BREAK 
CASE 
DEFAULT 
FOR 
NEW 
VAR 
CONTINUE 
FUNCTION 
RETURN 
QS_VOID 
QS_DELETE 
IF 
THIS 
DO 
WHILE 
ELSE 
QS_IN 
INSTANCEOF 
TYPEOF 
IS 
SWITCH 
WITH 
RESERVED 
THROW 
TRY 
CATCH 
FINALLY 
CLASS 
CONSTRUCTOR 
EXTENDS 
ABSTRACT 
FINAL 
PRIVATE 
PUBLIC 
STATIC 
QS_CONST 
PACKAGE 
IMPORT 
IF_WITHOUT_ELSE 
EQEQ 
NE 
STREQ 
STRNEQ 
LE 
GE 
OR 
AND 
PLUSPLUS 
MINUSMINUS 
LSHIFT 
RSHIFT 
URSHIFT 
PLUSEQUAL 
MINUSEQUAL 
MULTEQUAL 
DIVEQUAL 
LSHIFTEQUAL 
RSHIFTEQUAL 
URSHIFTEQUAL 
ANDEQUAL 
MODEQUAL 
XOREQUAL 
OREQUAL 
NUMBER 
STRING 
IDENT 
NULLTOKEN 
TRUETOKEN 
FALSETOKEN 
BREAK 
CASE 
DEFAULT 
FOR 
NEW 
VAR 
CONTINUE 
FUNCTION 
RETURN 
QS_VOID 
QS_DELETE 
IF 
THIS 
DO 
WHILE 
ELSE 
QS_IN 
INSTANCEOF 
TYPEOF 
IS 
SWITCH 
WITH 
RESERVED 
THROW 
TRY 
CATCH 
FINALLY 
CLASS 
CONSTRUCTOR 
EXTENDS 
ABSTRACT 
FINAL 
PRIVATE 
PUBLIC 
STATIC 
QS_CONST 
PACKAGE 
IMPORT 
IF_WITHOUT_ELSE 
EQEQ 
NE 
STREQ 
STRNEQ 
LE 
GE 
OR 
AND 
PLUSPLUS 
MINUSMINUS 
LSHIFT 
RSHIFT 
URSHIFT 
PLUSEQUAL 
MINUSEQUAL 
MULTEQUAL 
DIVEQUAL 
LSHIFTEQUAL 
RSHIFTEQUAL 
URSHIFTEQUAL 
ANDEQUAL 
MODEQUAL 
XOREQUAL 
OREQUAL 
NUMBER 
STRING 
IDENT 

Documentación de las funciones

if ( yymsg)
switch ( yytype  )
YY_SYMBOL_PRINT ( yymsg  ,
yytype  ,
yyvaluep  ,
yylocationp   
)
int yylex ( )
int yyparse ( )

$$ += QString::fromLatin1(".") + *($3);

YYUSE ( yylocationp  )
YYUSE ( yyvaluep  )

Documentación de las variables

 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'