Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

parse_pm.c File Reference

#include "yystype.h"
#include <math.h>
#include <stdio.h>
#include <ctype.h>

Classes

union  yyalloc

Defines

#define YYBISON   1
#define YYSKELETON_NAME   "yacc.c"
#define YYPURE   0
#define YYLSP_NEEDED   0
#define NUMBER   258
#define NAME   259
#define EQUALS   260
#define LBRACKET   261
#define RBRACKET   262
#define COLON   263
#define QUOTE   264
#define YYDEBUG   0
#define YYERROR_VERBOSE   0
#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   7
#define YYLAST   26
#define YYNTOKENS   10
#define YYNNTS   11
#define YYNRULES   12
#define YYNSTATES   34
#define YYUNDEFTOK   2
#define YYMAXUTOK   264
#define YYTRANSLATE(YYX)   ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
#define YYPACT_NINF   -18
#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 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 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 short yysigned_char

Enumerations

enum  yytokentype {
  NUMBER = 258, NAME = 259, EQUALS = 260, LBRACKET = 261,
  RBRACKET = 262, COLON = 263, QUOTE = 264
}

Functions

void yydestruct (int yytype, YYSTYPE *yyvaluep)
int yyparse ()
int parse_dur (const char *filename, double **res_points)
int yyerror (char *str)

Variables

double * points
int count
int i
double xmin
double xmax
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 []
int yychar
YYSTYPE yylval
int yynerrs
FILE * yyin = (FILE *) 0 *yyout = (FILE *) 0

Define Documentation

#define COLON   263
 

#define EQUALS   260
 

#define LBRACKET   261
 

#define NAME   259
 

#define NUMBER   258
 

#define QUOTE   264
 

#define RBRACKET   262
 

#define YY_REDUCE_PRINT Rule   ) 
 

#define YY_STACK_PRINT Bottom,
Top   ) 
 

#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;                                               \
      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 YYDSYMPRINT Args   ) 
 

#define YYDSYMPRINTF Title,
Token,
Value,
Location   ) 
 

#define YYEMPTY   (-2)
 

#define YYEOF   0
 

#define YYERRCODE   256
 

#define yyerrok   (yyerrstatus = 0)
 

#define YYERROR   goto yyerrlab1
 

#define YYERROR_VERBOSE   0
 

#define YYFAIL   goto yyerrlab
 

#define YYFINAL   7
 

#define YYINITDEPTH   200
 

#define YYLAST   26
 

#define YYLEX   yylex ()
 

#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;

#define YYLSP_NEEDED   0
 

#define YYMAXDEPTH   10000
 

#define YYMAXUTOK   264
 

#define YYNNTS   11
 

#define YYNRULES   12
 

#define YYNSTATES   34
 

#define YYNTOKENS   10
 

#define YYPACT_NINF   -18
 

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

#define YYPURE   0
 

 
#define YYRECOVERING  )     (!!yyerrstatus)
 

#define YYSIZE_T   unsigned int
 

#define YYSKELETON_NAME   "yacc.c"
 

#define YYSTACK_ALLOC   malloc
 

#define YYSTACK_BYTES  ) 
 

Value:

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

#define YYSTACK_FREE   free
 

#define YYSTACK_GAP_MAXIMUM   (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_MAXIMUM; \
        yyptr += yynewbytes / sizeof (*yyptr);                          \
      }                                                                 \
    while (0)

#define YYTABLE_NINF   -1
 

#define YYTERROR   1
 

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

#define YYUNDEFTOK   2
 


Typedef Documentation

typedef short yysigned_char
 


Enumeration Type Documentation

enum yytokentype
 

Enumeration values:
NUMBER 
NAME 
EQUALS 
LBRACKET 
RBRACKET 
COLON 
QUOTE 


Function Documentation

void yydestruct int  yytype,
YYSTYPE yyvaluep
[static]
 

int yyerror char *  str  ) 
 

int yyparse  ) 
 


Variable Documentation

int count
 

int i
 

double* points
 

double xmax
 

double xmin
 

int yychar
 

const yysigned_char yycheck[] [static]
 

Initial value:

{
      17,     4,     0,     5,    21,     4,     6,     4,     9,     4,
       3,     5,     3,     9,     4,     7,     5,     3,     6,    -1,
       7,     4,    -1,     8,    -1,    -1,    10
}

const unsigned char yydefact[] [static]
 

Initial value:

{
       0,     0,     0,     0,     0,     4,     0,     1,     0,     2,
       9,     0,     5,     0,     0,    10,     0,     0,     0,     0,
       0,     0,     6,     0,    12,     0,     7,     0,     0,     3,
      11,     0,     0,     8
}

const yysigned_char yydefgoto[] [static]
 

Initial value:

{
      -1,     2,     3,     4,    11,     5,    25,    29,     9,    10,
      17
}

FILE * yyin = (FILE *) 0 *yyout = (FILE *) 0
 

YYSTYPE yylval
 

int yynerrs
 

const yysigned_char yypact[] [static]
 

Initial value:

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

const yysigned_char yypgoto[] [static]
 

Initial value:

{
     -18,   -18,   -18,   -18,   -18,    17,   -18,   -18,    16,   -18,
     -17
}

const unsigned char yyr1[] [static]
 

Initial value:

{
       0,    10,    11,    12,    13,    14,    15,    16,    17,    18,
      18,    19,    20
}

const unsigned char yyr2[] [static]
 

Initial value:

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

const unsigned char yystos[] [static]
 

Initial value:

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

const unsigned char yytable[] [static]
 

Initial value:

{
      21,     1,     7,     6,    26,     8,    14,    16,    13,    18,
      19,    20,    24,    22,    28,    23,    27,    30,    31,     0,
      32,    12,     0,    33,     0,     0,    15
}

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,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     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,
       5,     6,     7,     8,     9
}


Generated on Tue Dec 20 23:14:39 2005 for BOSS by doxygen 1.3.6