data-syntax.cpp File Reference

#include "data.h"
#include "array-creator.h"
#include "data-token.h"
#include "symbol.h"
#include <stdlib.h>
#include <assert.h>
#include <stdio.h>
#include <string>
Include dependency graph for data-syntax.cpp:

Classes

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   0
#define YYDEBUG   1
#define YYSTYPE   Data
#define y_tabbed
#define YYERROR_VERBOSE   1
#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)
#define YYUSE(e)   ((void) (e))
#define YYID(n)   (n)
#define YYSTACK_FREE(Ptr)   do { /* empty */; } while (YYID (0))
#define YYSTACK_GAP_MAXIMUM   (sizeof (union yyalloc) - 1)
#define YYSTACK_BYTES(N)
#define YYSTACK_RELOCATE(Stack_alloc, Stack)
#define YYFINAL   15
#define YYLAST   26
#define YYNTOKENS   13
#define YYNNTS   9
#define YYNRULES   16
#define YYNSTATES   27
#define YYUNDEFTOK   2
#define YYMAXUTOK   267
#define YYTRANSLATE(YYX)   ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
#define YYPACT_NINF   -9
#define YYTABLE_NINF   -1
#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 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 YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))

Typedefs

typedef unsigned char yytype_uint8
typedef short int yytype_int8
typedef unsigned short int yytype_uint16
typedef short int yytype_int16

Enumerations

enum  yytokentype {
  META = 258, NAME = 259, LPAREN = 260, RPAREN = 261,
  MESSAGE = 262, SEMICOLON = 263, NUMBER = 264, INIT = 265,
  ACTIVE = 266, COMMA = 267, LBRACE = 268, RBRACE = 269,
  STAR = 270, PRECOMPILER = 271, VOLATILE = 272, CLASS = 273,
  USES = 274, TEMPLATE_OPEN = 275, TEMPLATE_CLOSE = 276, META = 258,
  NAME = 259, LPAREN = 260, RPAREN = 261, MESSAGE = 262,
  SEMICOLON = 263, NUMBER = 264, INIT = 265, ACTIVE = 266,
  COMMA = 267, LBRACE = 268, RBRACE = 269, STAR = 270,
  PRECOMPILER = 271, VOLATILE = 272, CLASS = 273, USES = 274,
  TEMPLATE_OPEN = 275, TEMPLATE_CLOSE = 276, BRACE_OPEN = 258, BRACE_CLOSE = 259,
  COLON = 260, BRACKET_OPEN = 261, BRACKET_CLOSE = 262, SYMBOL = 263,
  NUMBER = 264, STRING = 265, DIMENSION_OPEN = 266, DIMENSION_CLOSE = 267,
  BRACE_OPEN = 258, BRACE_CLOSE = 259, COLON = 260, BRACKET_OPEN = 261,
  BRACKET_CLOSE = 262, SYMBOL = 263, NUMBER = 264, STRING = 265,
  DIMENSION_OPEN = 266, DIMENSION_CLOSE = 267, META = 258, NAME = 259,
  LPAREN = 260, RPAREN = 261, MESSAGE = 262, SEMICOLON = 263,
  NUMBER = 264, DATA = 265, COMMA = 266, LBRACE = 267,
  RBRACE = 268, STAR = 269, PRECOMPILER = 270, READ = 271,
  WRITE = 272, VOLATILE = 273, CLASS = 274, COLON = 275,
  VIRTUAL = 276, ASSIGNMENT = 277, EQUALITY = 278, NEQ = 279,
  OPERATOR = 280, TEMPLATE_OPEN = 281, TEMPLATE_CLOSE = 282, BRACKETS = 283,
  TILDE = 284, CONST = 285, META = 258, NAME = 259,
  LPAREN = 260, RPAREN = 261, MESSAGE = 262, SEMICOLON = 263,
  NUMBER = 264, DATA = 265, COMMA = 266, LBRACE = 267,
  RBRACE = 268, STAR = 269, PRECOMPILER = 270, READ = 271,
  WRITE = 272, VOLATILE = 273, CLASS = 274, COLON = 275,
  VIRTUAL = 276, ASSIGNMENT = 277, EQUALITY = 278, NEQ = 279,
  OPERATOR = 280, TEMPLATE_OPEN = 281, TEMPLATE_CLOSE = 282, BRACKETS = 283,
  TILDE = 284, CONST = 285
}

Functions

int yylex ()
void yyerror (const char *text)
int yyparse ()

Variables

Data parse_result
const char * yysrc
int yytype
YYSTYPE * yyvaluep
int yychar
YYSTYPE yylval
int yynerrs

Define Documentation

#define y_tabbed
#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   ) 
Value:
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 yyclearin   (yychar = YYEMPTY)
#define YYDEBUG   1
#define YYDPRINTF ( Args   ) 
#define YYEMPTY   (-2)
#define YYEOF   0
#define YYERRCODE   256
#define yyerrok   (yyerrstatus = 0)
#define YYERROR   goto yyerrorlab
#define YYERROR_VERBOSE   1
#define YYFAIL   goto yyerrlab
#define YYFINAL   15
#define YYID ( n   )     (n)
#define YYLAST   26
#define YYLEX   yylex ()
#define YYLSP_NEEDED   0
#define YYMAXUTOK   267
#define YYNNTS   9
#define YYNRULES   16
#define YYNSTATES   27
#define YYNTOKENS   13
#define YYPACT_NINF   -9
#define YYPOPSTACK (  )     (yyvsp -= (N), yyssp -= (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 YYSKELETON_NAME   "yacc.c"
#define YYSTACK_BYTES (  ) 
Value:
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
      + YYSTACK_GAP_MAXIMUM)
#define YYSTACK_FREE ( Ptr   )     do { /* empty */; } while (YYID (0))
#define YYSTACK_GAP_MAXIMUM   (sizeof (union yyalloc) - 1)
#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))
#define YYSTYPE   Data
#define YYTABLE_NINF   -1
#define YYTERROR   1
#define YYTRANSLATE ( YYX   )     ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
#define YYUNDEFTOK   2
#define YYUSE (  )     ((void) (e))

Typedef Documentation

typedef short int yytype_int16
typedef short int yytype_int8
typedef unsigned short int yytype_uint16
typedef unsigned char yytype_uint8

Enumeration Type Documentation

Enumerator:
META 
NAME 
LPAREN 
RPAREN 
MESSAGE 
SEMICOLON 
NUMBER 
INIT 
ACTIVE 
COMMA 
LBRACE 
RBRACE 
STAR 
PRECOMPILER 
VOLATILE 
CLASS 
USES 
TEMPLATE_OPEN 
TEMPLATE_CLOSE 
META 
NAME 
LPAREN 
RPAREN 
MESSAGE 
SEMICOLON 
NUMBER 
INIT 
ACTIVE 
COMMA 
LBRACE 
RBRACE 
STAR 
PRECOMPILER 
VOLATILE 
CLASS 
USES 
TEMPLATE_OPEN 
TEMPLATE_CLOSE 
BRACE_OPEN 
BRACE_CLOSE 
COLON 
BRACKET_OPEN 
BRACKET_CLOSE 
SYMBOL 
NUMBER 
STRING 
DIMENSION_OPEN 
DIMENSION_CLOSE 
BRACE_OPEN 
BRACE_CLOSE 
COLON 
BRACKET_OPEN 
BRACKET_CLOSE 
SYMBOL 
NUMBER 
STRING 
DIMENSION_OPEN 
DIMENSION_CLOSE 
META 
NAME 
LPAREN 
RPAREN 
MESSAGE 
SEMICOLON 
NUMBER 
DATA 
COMMA 
LBRACE 
RBRACE 
STAR 
PRECOMPILER 
READ 
WRITE 
VOLATILE 
CLASS 
COLON 
VIRTUAL 
ASSIGNMENT 
EQUALITY 
NEQ 
OPERATOR 
TEMPLATE_OPEN 
TEMPLATE_CLOSE 
BRACKETS 
TILDE 
CONST 
META 
NAME 
LPAREN 
RPAREN 
MESSAGE 
SEMICOLON 
NUMBER 
DATA 
COMMA 
LBRACE 
RBRACE 
STAR 
PRECOMPILER 
READ 
WRITE 
VOLATILE 
CLASS 
COLON 
VIRTUAL 
ASSIGNMENT 
EQUALITY 
NEQ 
OPERATOR 
TEMPLATE_OPEN 
TEMPLATE_CLOSE 
BRACKETS 
TILDE 
CONST 

Function Documentation

void yyerror ( const char *  text  ) 

References printf().

int yylex (  ) 
int yyparse (  ) 

Variable Documentation

int yychar
YYSTYPE yylval
int yynerrs
const char* yysrc
int yytype
YYSTYPE* yyvaluep
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by  doxygen 1.6.2