cacao  Release 0.1.03-dev
Compute And Control For Adaptive Optics
calc_bison.c File Reference
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "CLIcore.h"
#include "00CORE/00CORE.h"
#include "COREMOD_memory/COREMOD_memory.h"
#include "COREMOD_iofits/COREMOD_iofits.h"
#include "COREMOD_arith/COREMOD_arith.h"
#include "info/info.h"
#include <stddef.h>
Include dependency graph for calc_bison.c:

Data Structures

union  YYSTYPE
 
union  yyalloc
 

Macros

#define YYBISON   1
 
#define YYBISON_VERSION   "3.4.1"
 
#define YYSKELETON_NAME   "yacc.c"
 
#define YYPURE   0
 
#define YYPUSH   0
 
#define YYPULL   1
 
#define YY_NULLPTR   ((void*)0)
 
#define YYERROR_VERBOSE   0
 
#define YY_YY_HOME_OGUYON_SRC_CACAO_SRC_COMMANDLINEINTERFACE_CALC_BISON_H_INCLUDED
 
#define YYDEBUG   0
 
#define YYTOKENTYPE
 
#define YYSTYPE_IS_TRIVIAL   1
 
#define YYSTYPE_IS_DECLARED   1
 
#define YYSIZE_T   size_t
 
#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)
 
#define YY_(Msgid)   Msgid
 
#define YY_ATTRIBUTE(Spec)   /* empty */
 
#define YY_ATTRIBUTE_PURE   YY_ATTRIBUTE ((__pure__))
 
#define YY_ATTRIBUTE_UNUSED   YY_ATTRIBUTE ((__unused__))
 
#define YYUSE(E)   ((void) (E))
 
#define YY_INITIAL_VALUE(Value)   Value
 
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
 
#define YY_IGNORE_MAYBE_UNINITIALIZED_END
 
#define YY_ASSERT(E)   ((void) (0 && (E)))
 
#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_NEEDED   1
 
#define YYSTACK_RELOCATE(Stack_alloc, Stack)
 
#define YYCOPY(Dst, Src, Count)
 
#define YYFINAL   2
 
#define YYLAST   658
 
#define YYNTOKENS   26
 
#define YYNNTS   6
 
#define YYNRULES   86
 
#define YYNSTATES   205
 
#define YYUNDEFTOK   2
 
#define YYMAXUTOK   270
 
#define YYTRANSLATE(YYX)   ((unsigned) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
 
#define YYPACT_NINF   -22
 
#define yypact_value_is_default(Yystate)   (!!((Yystate) == (-22)))
 
#define YYTABLE_NINF   -1
 
#define yytable_value_is_error(Yytable_value)   0
 
#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 YYRECOVERING()   (!!yyerrstatus)
 
#define YYBACKUP(Token, Value)
 
#define YYTERROR   1
 
#define YYERRCODE   256
 
#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 YYMAXDEPTH   10000
 
#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))
 

Typedefs

typedef union YYSTYPE YYSTYPE
 
typedef unsigned char yytype_uint8
 
typedef signed char yytype_int8
 
typedef unsigned short yytype_uint16
 
typedef short yytype_int16
 

Enumerations

enum  yytokentype {
  TKNUMl = 258, TKNUMf = 259, TKNUMd = 260, TKVAR = 261,
  TKNVAR = 262, TKIMAGE = 263, TKCOMMAND = 264, TKFUNC_d_d = 265,
  TKFUNC_dd_d = 266, TKFUNC_ddd_d = 267, TKFUNC_im_d = 268, TKFUNC_imd_d = 269,
  NEG = 270, TKNUMl = 258, TKNUMf = 259, TKNUMd = 260,
  TKVAR = 261, TKNVAR = 262, TKIMAGE = 263, TKCOMMAND = 264,
  TKFUNC_d_d = 265, TKFUNC_dd_d = 266, TKFUNC_ddd_d = 267, TKFUNC_im_d = 268,
  TKFUNC_imd_d = 269, NEG = 270
}
 

Functions

int yylex ()
 
int yyerror (char *)
 
int yyparse (void)
 
void * malloc (YYSIZE_T)
 
void free (void *)
 
static void yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
 

Variables

char calctmpimname [200]
 
YYSTYPE yylval
 
static const yytype_uint8 yytranslate []
 
static const yytype_int16 yypact []
 
static const yytype_uint8 yydefact []
 
static const yytype_int16 yypgoto []
 
static const yytype_int16 yydefgoto []
 
static const yytype_uint8 yytable []
 
static const yytype_int16 yycheck []
 
static const yytype_uint8 yystos []
 
static const yytype_uint8 yyr1 []
 
static const yytype_uint8 yyr2 []
 
int yychar
 
int yynerrs
 

Macro Definition Documentation

◆ YY_

#define YY_ (   Msgid)    Msgid

◆ YY_ASSERT

#define YY_ASSERT (   E)    ((void) (0 && (E)))

◆ YY_ATTRIBUTE

#define YY_ATTRIBUTE (   Spec)    /* empty */

◆ YY_ATTRIBUTE_PURE

#define YY_ATTRIBUTE_PURE   YY_ATTRIBUTE ((__pure__))

◆ YY_ATTRIBUTE_UNUSED

#define YY_ATTRIBUTE_UNUSED   YY_ATTRIBUTE ((__unused__))

◆ YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN

#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN

◆ YY_IGNORE_MAYBE_UNINITIALIZED_END

#define YY_IGNORE_MAYBE_UNINITIALIZED_END

◆ YY_INITIAL_VALUE

#define YY_INITIAL_VALUE (   Value)    Value

◆ YY_NULLPTR

#define YY_NULLPTR   ((void*)0)

◆ YY_REDUCE_PRINT

#define YY_REDUCE_PRINT (   Rule)

◆ YY_STACK_PRINT

#define YY_STACK_PRINT (   Bottom,
  Top 
)

◆ YY_SYMBOL_PRINT

#define YY_SYMBOL_PRINT (   Title,
  Type,
  Value,
  Location 
)

◆ YY_YY_HOME_OGUYON_SRC_CACAO_SRC_COMMANDLINEINTERFACE_CALC_BISON_H_INCLUDED

#define YY_YY_HOME_OGUYON_SRC_CACAO_SRC_COMMANDLINEINTERFACE_CALC_BISON_H_INCLUDED

◆ YYABORT

#define YYABORT   goto yyabortlab

◆ YYACCEPT

#define YYACCEPT   goto yyacceptlab

◆ YYBACKUP

#define YYBACKUP (   Token,
  Value 
)
Value:
{ \
yychar = (Token); \
yylval = (Value); \
YYPOPSTACK (yylen); \
yystate = *yyssp; \
goto yybackup; \
} \
else \
{ \
yyerror (YY_("syntax error: cannot back up")); \
YYERROR; \
} \
while (0)
int yychar
Definition: calc_bison.c:1216
#define YYEMPTY
Definition: calc_bison.c:788
#define YY_(Msgid)
Definition: calc_bison.c:235
if(!(yy_init))
Definition: calc_flex.c:721

◆ YYBISON

#define YYBISON   1

◆ YYBISON_VERSION

#define YYBISON_VERSION   "3.4.1"

◆ yyclearin

#define yyclearin   (yychar = YYEMPTY)

◆ YYCOPY

#define YYCOPY (   Dst,
  Src,
  Count 
)
Value:
do \
{ \
YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(Dst)[yyi] = (Src)[yyi]; \
} \
while (0)

◆ YYCOPY_NEEDED

#define YYCOPY_NEEDED   1

◆ YYDEBUG

#define YYDEBUG   0

◆ YYDPRINTF

#define YYDPRINTF (   Args)

◆ YYEMPTY

#define YYEMPTY   (-2)

◆ YYEOF

#define YYEOF   0

◆ YYERRCODE

#define YYERRCODE   256

◆ yyerrok

#define yyerrok   (yyerrstatus = 0)

◆ YYERROR

#define YYERROR   goto yyerrorlab

◆ YYERROR_VERBOSE

#define YYERROR_VERBOSE   0

◆ YYFINAL

#define YYFINAL   2

◆ YYFREE

#define YYFREE   free

◆ YYINITDEPTH

#define YYINITDEPTH   200

◆ YYLAST

#define YYLAST   658

◆ YYMALLOC

#define YYMALLOC   malloc

◆ YYMAXDEPTH

#define YYMAXDEPTH   10000

◆ YYMAXUTOK

#define YYMAXUTOK   270

◆ YYNNTS

#define YYNNTS   6

◆ YYNRULES

#define YYNRULES   86

◆ YYNSTATES

#define YYNSTATES   205

◆ YYNTOKENS

#define YYNTOKENS   26

◆ YYPACT_NINF

#define YYPACT_NINF   -22

◆ yypact_value_is_default

#define yypact_value_is_default (   Yystate)    (!!((Yystate) == (-22)))

◆ YYPOPSTACK

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

◆ YYPULL

#define YYPULL   1

◆ YYPURE

#define YYPURE   0

◆ YYPUSH

#define YYPUSH   0

◆ YYRECOVERING

#define YYRECOVERING ( )    (!!yyerrstatus)

◆ YYSIZE_MAXIMUM

#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)

◆ YYSIZE_T

#define YYSIZE_T   size_t

◆ YYSKELETON_NAME

#define YYSKELETON_NAME   "yacc.c"

◆ YYSTACK_ALLOC

#define YYSTACK_ALLOC   YYMALLOC

◆ YYSTACK_ALLOC_MAXIMUM

#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM

◆ YYSTACK_BYTES

#define YYSTACK_BYTES (   N)
Value:
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
union YYSTYPE YYSTYPE
Definition: calc_bison.c:170
short yytype_int16
Definition: calc_bison.c:209
#define YYSTACK_GAP_MAXIMUM
Definition: calc_bison.c:366

◆ YYSTACK_FREE

#define YYSTACK_FREE   YYFREE

◆ YYSTACK_GAP_MAXIMUM

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

◆ YYSTACK_RELOCATE

#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 (0)
#define YYSTACK_GAP_MAXIMUM
Definition: calc_bison.c:366

◆ YYSTYPE_IS_DECLARED

#define YYSTYPE_IS_DECLARED   1

◆ YYSTYPE_IS_TRIVIAL

#define YYSTYPE_IS_TRIVIAL   1

◆ YYTABLE_NINF

#define YYTABLE_NINF   -1

◆ yytable_value_is_error

#define yytable_value_is_error (   Yytable_value)    0

◆ YYTERROR

#define YYTERROR   1

◆ YYTOKENTYPE

#define YYTOKENTYPE

◆ YYTRANSLATE

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

◆ YYUNDEFTOK

#define YYUNDEFTOK   2

◆ YYUSE

#define YYUSE (   E)    ((void) (E))

Typedef Documentation

◆ YYSTYPE

typedef union YYSTYPE YYSTYPE

◆ yytype_int16

typedef short yytype_int16

◆ yytype_int8

typedef signed char yytype_int8

◆ yytype_uint16

typedef unsigned short yytype_uint16

◆ yytype_uint8

typedef unsigned char yytype_uint8

Enumeration Type Documentation

◆ yytokentype

Enumerator
TKNUMl 
TKNUMf 
TKNUMd 
TKVAR 
TKNVAR 
TKIMAGE 
TKCOMMAND 
TKFUNC_d_d 
TKFUNC_dd_d 
TKFUNC_ddd_d 
TKFUNC_im_d 
TKFUNC_imd_d 
NEG 
TKNUMl 
TKNUMf 
TKNUMd 
TKVAR 
TKNVAR 
TKIMAGE 
TKCOMMAND 
TKFUNC_d_d 
TKFUNC_dd_d 
TKFUNC_ddd_d 
TKFUNC_im_d 
TKFUNC_imd_d 
NEG 

Function Documentation

◆ free()

void free ( void *  )

◆ malloc()

void* malloc ( YYSIZE_T  )

◆ yydestruct()

static void yydestruct ( const char *  yymsg,
int  yytype,
YYSTYPE yyvaluep 
)
static

◆ yyerror()

int yyerror ( char *  s)

◆ yylex()

int yylex ( )

◆ yyparse()

int yyparse ( void  )

Variable Documentation

◆ calctmpimname

char calctmpimname[200]

◆ yychar

int yychar

◆ yycheck

const yytype_int16 yycheck[]
static

◆ yydefact

const yytype_uint8 yydefact[]
static
Initial value:
=
{
2, 0, 1, 0, 9, 16, 17, 56, 57, 58,
0, 0, 0, 0, 0, 0, 4, 0, 3, 0,
0, 0, 8, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 13, 35, 0, 0, 0, 0,
0, 0, 0, 0, 6, 0, 0, 0, 0, 0,
5, 0, 0, 0, 0, 0, 7, 18, 19, 20,
21, 60, 59, 40, 39, 83, 0, 0, 0, 0,
0, 0, 53, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 15, 55, 86, 11, 25, 70, 10, 22, 65,
12, 28, 75, 31, 32, 80, 14, 36, 26, 27,
69, 23, 24, 64, 29, 30, 74, 33, 34, 79,
37, 38, 68, 67, 66, 63, 62, 61, 73, 72,
71, 78, 77, 76, 81, 82, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 20, 21,
11, 25, 10, 22, 12, 28, 31, 32, 26, 27,
23, 24, 29, 30, 33, 34, 44, 42, 43, 41,
84, 0, 0, 0, 0, 0, 54, 0, 0, 0,
0, 0, 0, 0, 0, 0, 52, 48, 50, 46,
51, 47, 49, 45, 85
}

◆ yydefgoto

const yytype_int16 yydefgoto[]
static
Initial value:
=
{
-1, 1, 18, 150, 36, 21
}

◆ yylval

YYSTYPE yylval

◆ yynerrs

int yynerrs

◆ yypact

const yytype_int16 yypact[]
static
Initial value:
=
{
-22, 231, -22, -21, -22, -22, -8, -2, 2, -22,
21, 21, 21, 21, 21, 102, -22, 21, -22, 68,
178, 612, -22, 102, 21, 21, 378, 387, 396, -13,
49, 119, 202, 249, 259, 85, 619, 405, 278, 5,
102, 102, 102, 102, -19, -6, 414, 423, 432, 21,
21, 21, 21, 102, -22, 21, 21, 21, 21, 102,
-22, 21, 21, 21, 21, 102, -22, 625, 631, 85,
619, 637, 637, -22, -22, -22, 102, 102, 102, 102,
102, 102, -22, 102, 102, 441, 450, 288, 298, 308,
318, 459, 468, 102, 102, 102, 102, 102, 102, 102,
102, -22, -22, -22, 0, 110, 124, 0, 110, 124,
-19, -6, 4, -19, -6, 4, -19, -6, 0, 110,
124, 0, 110, 124, -19, -6, 4, -19, -6, 4,
-19, -6, 0, 110, 124, 0, 110, 124, -19, -6,
4, -19, -6, 4, -19, -6, 477, 486, 495, 504,
625, 513, 328, 338, 348, 358, 368, 522, 625, 631,
135, 157, 135, 157, -19, -6, -19, -6, 135, 157,
135, 157, -19, -6, -19, -6, -22, -22, -22, -22,
-22, 102, 102, 102, 102, 102, -22, 531, 540, 549,
558, 567, 576, 585, 594, 603, -22, -22, -22, -22,
-22, -22, -22, -22, -22
}

◆ yypgoto

const yytype_int16 yypgoto[]
static
Initial value:
=
{
-22, -22, -22, 109, -1, 200
}

◆ yyr1

const yytype_uint8 yyr1[]
static
Initial value:
=
{
0, 26, 27, 27, 28, 28, 28, 28, 28, 29,
29, 29, 29, 29, 29, 29, 30, 30, 30, 30,
30, 30, 30, 30, 30, 30, 30, 30, 30, 30,
30, 30, 30, 30, 30, 30, 30, 30, 30, 30,
30, 30, 30, 30, 30, 30, 30, 30, 30, 30,
30, 30, 30, 30, 30, 30, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31
}

◆ yyr2

const yytype_uint8 yyr2[]
static
Initial value:
=
{
0, 2, 0, 2, 1, 2, 2, 2, 2, 1,
3, 3, 3, 2, 3, 3, 1, 1, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 2, 3, 3, 3, 3,
3, 5, 5, 5, 5, 7, 7, 7, 7, 7,
7, 7, 7, 3, 5, 3, 1, 1, 1, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 5, 7, 3
}

◆ yystos

const yytype_uint8 yystos[]
static
Initial value:
=
{
0, 27, 0, 1, 3, 5, 6, 7, 8, 9,
10, 11, 12, 13, 14, 16, 22, 23, 28, 29,
30, 31, 22, 15, 15, 15, 29, 30, 31, 29,
30, 31, 29, 30, 31, 29, 30, 31, 31, 7,
10, 11, 12, 23, 29, 30, 29, 30, 31, 16,
17, 18, 19, 21, 22, 16, 17, 18, 19, 21,
22, 16, 17, 18, 19, 21, 22, 29, 30, 29,
30, 31, 31, 24, 24, 24, 25, 25, 25, 25,
25, 25, 24, 25, 15, 29, 30, 29, 30, 29,
30, 29, 30, 16, 17, 18, 19, 16, 17, 18,
19, 24, 24, 24, 29, 30, 31, 29, 30, 31,
29, 30, 31, 29, 30, 31, 29, 30, 29, 30,
31, 29, 30, 31, 29, 30, 31, 29, 30, 31,
29, 30, 29, 30, 31, 29, 30, 31, 29, 30,
31, 29, 30, 31, 29, 30, 29, 30, 29, 30,
29, 30, 29, 30, 29, 30, 30, 30, 29, 30,
29, 30, 29, 30, 29, 30, 29, 30, 29, 30,
29, 30, 29, 30, 29, 30, 24, 24, 24, 24,
24, 25, 25, 25, 25, 25, 24, 29, 30, 29,
30, 29, 30, 29, 30, 30, 24, 24, 24, 24,
24, 24, 24, 24, 24
}

◆ yytable

const yytype_uint8 yytable[]
static

◆ yytranslate

const yytype_uint8 yytranslate[]
static