# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

ytable.cpp File Reference

#include <malloc.h>
#include <list>
#include "nel/ai/script/compilateur.h"
#include "nel/ai/script/constraint.h"
#include "nel/ai/script/type_def.h"
#include "nel/ai/script/object_unknown.h"
#include "nel/ai/logic/logic.h"
#include "nel/ai/fuzzy/fuzzy.h"
#include "nel/ai/logic/interpret_object_operator.h"
#include "nel/ai/script/interpret_fsm.h"
#include <stdio.h>

Go to the source code of this file.

Defines

#define YYBISON   1
#define FIN   258
#define NOMBRE   259
#define IDENT   260
#define PAR_G   261
#define PAR_D   262
#define ACCOL_G   263
#define ACCOL_D   264
#define CROCHER_G   265
#define CROCHER_D   266
#define EG_MATH   267
#define VIRGULE   268
#define EG_LOG   269
#define SUP   270
#define INF   271
#define SUP_EG   272
#define INF_EG   273
#define DIFF   274
#define OR_LOG   275
#define AND_LOG   276
#define NON_BIN   277
#define OR_BIN   278
#define AND_BIN   279
#define XOR_BIN   280
#define SCOP   281
#define PLUS   282
#define MOINS   283
#define FOIS   284
#define DIV   285
#define POWER   286
#define POINT_VI   287
#define LEPOINT   288
#define POINT_DEUX   289
#define INTERROGATION   290
#define CHAINE   291
#define NILL   292
#define EXEC   293
#define ACHIEVE   294
#define ASK   295
#define BREAK   296
#define TELL   297
#define KILL   298
#define PERROR   299
#define EVEN   300
#define BEGIN_GRAMMAR   301
#define FROM   302
#define DEFINE   303
#define GROUP   304
#define COMPONENT   305
#define CONSTRUCTION   306
#define DESTRUCTION   307
#define MESSAGE_MANAGER   308
#define MAESSAGELOOP   309
#define LOCAL   310
#define STATIC   311
#define AS   312
#define DIGITAL   313
#define COLLECTOR   314
#define WITH   315
#define DO   316
#define END   317
#define IF   318
#define THEN   319
#define BEGINING   320
#define END_GRAMMAR   321
#define NEW   322
#define TRIGGER   323
#define PRECONDITION   324
#define POSTCONDITION   325
#define GOAL   326
#define RETURN   327
#define COMMENT   328
#define STEPS   329
#define UPDATEEVERY   330
#define PRIORITY   331
#define MSG   332
#define LOGICVAR   333
#define RULE   334
#define IA_ASSERT   335
#define OR   336
#define AND   337
#define FUZZY   338
#define FUZZYRULE   339
#define FUZZYRULESET   340
#define SETS   341
#define FUZZYVAR   342
#define FIS   343
#define COS   344
#define SIN   345
#define TAN   346
#define POW   347
#define LN   348
#define LOG   349
#define FACT   350
#define PARSER_NO_REDEF_YYTABLE_H_
#define YYSTYPE   int
#define const
#define YYFINAL   419
#define YYFLAG   -32768
#define YYNTBASE   96
#define YYTRANSLATE(x)   ((unsigned)(x) <= 350 ? yytranslate[x] : 253)
#define YYLAST   743
#define yyerrok   (yyerrstatus = 0)
#define yyclearin   (yychar = YYEMPTY)
#define YYEMPTY   -2
#define YYEOF   0
#define YYACCEPT   return(0)
#define YYABORT   return(1)
#define YYERROR   goto yyerrlab1
#define YYFAIL   goto yyerrlab
#define YYRECOVERING()   (!!yyerrstatus)
#define YYBACKUP(token, value)
#define YYTERROR   1
#define YYERRCODE   256
#define YYLEX   yylex()
#define YYINITDEPTH   200
#define YYMAXDEPTH   10000
#define YYPARSE_PARAM_ARG
#define YYPARSE_PARAM_DECL
#define YYPOPSTACK   (yyvsp--, yyssp--)

Functions

void __yy_memcpy (to, from, count) char *to

Variables

const char yytranslate []
const short yyr1 []
const short yyr2 []
const short yydefact []
const short yydefgoto []
const short yypact []
const short yypgoto []
const short yytable []
const short yycheck []
int yychar
YYSTYPE yylval
int yynerrs
char * from
int count


Define Documentation

#define ACCOL_D   264
 

Definition at line 14 of file ytable.cpp.

#define ACCOL_G   263
 

Definition at line 13 of file ytable.cpp.

#define ACHIEVE   294
 

Definition at line 44 of file ytable.cpp.

#define AND   337
 

Definition at line 87 of file ytable.cpp.

#define AND_BIN   279
 

Definition at line 29 of file ytable.cpp.

#define AND_LOG   276
 

Definition at line 26 of file ytable.cpp.

#define AS   312
 

Definition at line 62 of file ytable.cpp.

#define ASK   295
 

Definition at line 45 of file ytable.cpp.

#define BEGIN_GRAMMAR   301
 

Definition at line 51 of file ytable.cpp.

#define BEGINING   320
 

Definition at line 70 of file ytable.cpp.

#define BREAK   296
 

Definition at line 46 of file ytable.cpp.

#define CHAINE   291
 

Definition at line 41 of file ytable.cpp.

#define COLLECTOR   314
 

Definition at line 64 of file ytable.cpp.

#define COMMENT   328
 

Definition at line 78 of file ytable.cpp.

#define COMPONENT   305
 

Definition at line 55 of file ytable.cpp.

#define const
 

Definition at line 126 of file ytable.cpp.

#define CONSTRUCTION   306
 

Definition at line 56 of file ytable.cpp.

#define COS   344
 

Definition at line 94 of file ytable.cpp.

#define CROCHER_D   266
 

Definition at line 16 of file ytable.cpp.

#define CROCHER_G   265
 

Definition at line 15 of file ytable.cpp.

#define DEFINE   303
 

Definition at line 53 of file ytable.cpp.

#define DESTRUCTION   307
 

Definition at line 57 of file ytable.cpp.

#define DIFF   274
 

Definition at line 24 of file ytable.cpp.

#define DIGITAL   313
 

Definition at line 63 of file ytable.cpp.

#define DIV   285
 

Definition at line 35 of file ytable.cpp.

#define DO   316
 

Definition at line 66 of file ytable.cpp.

#define EG_LOG   269
 

Definition at line 19 of file ytable.cpp.

#define EG_MATH   267
 

Definition at line 17 of file ytable.cpp.

#define END   317
 

Definition at line 67 of file ytable.cpp.

#define END_GRAMMAR   321
 

Definition at line 71 of file ytable.cpp.

#define EVEN   300
 

Definition at line 50 of file ytable.cpp.

#define EXEC   293
 

Definition at line 43 of file ytable.cpp.

#define FACT   350
 

Definition at line 100 of file ytable.cpp.

#define FIN   258
 

Definition at line 8 of file ytable.cpp.

#define FIS   343
 

Definition at line 93 of file ytable.cpp.

#define FOIS   284
 

Definition at line 34 of file ytable.cpp.

#define FROM   302
 

Definition at line 52 of file ytable.cpp.

#define FUZZY   338
 

Definition at line 88 of file ytable.cpp.

#define FUZZYRULE   339
 

Definition at line 89 of file ytable.cpp.

#define FUZZYRULESET   340
 

Definition at line 90 of file ytable.cpp.

#define FUZZYVAR   342
 

Definition at line 92 of file ytable.cpp.

#define GOAL   326
 

Definition at line 76 of file ytable.cpp.

#define GROUP   304
 

Definition at line 54 of file ytable.cpp.

#define IA_ASSERT   335
 

Definition at line 85 of file ytable.cpp.

#define IDENT   260
 

Definition at line 10 of file ytable.cpp.

#define IF   318
 

Definition at line 68 of file ytable.cpp.

#define INF   271
 

Definition at line 21 of file ytable.cpp.

#define INF_EG   273
 

Definition at line 23 of file ytable.cpp.

#define INTERROGATION   290
 

Definition at line 40 of file ytable.cpp.

#define KILL   298
 

Definition at line 48 of file ytable.cpp.

#define LEPOINT   288
 

Definition at line 38 of file ytable.cpp.

#define LN   348
 

Definition at line 98 of file ytable.cpp.

#define LOCAL   310
 

Definition at line 60 of file ytable.cpp.

#define LOG   349
 

Definition at line 99 of file ytable.cpp.

#define LOGICVAR   333
 

Definition at line 83 of file ytable.cpp.

#define MAESSAGELOOP   309
 

Definition at line 59 of file ytable.cpp.

#define MESSAGE_MANAGER   308
 

Definition at line 58 of file ytable.cpp.

#define MOINS   283
 

Definition at line 33 of file ytable.cpp.

#define MSG   332
 

Definition at line 82 of file ytable.cpp.

#define NEW   322
 

Definition at line 72 of file ytable.cpp.

#define NILL   292
 

Definition at line 42 of file ytable.cpp.

#define NOMBRE   259
 

Definition at line 9 of file ytable.cpp.

#define NON_BIN   277
 

Definition at line 27 of file ytable.cpp.

#define OR   336
 

Definition at line 86 of file ytable.cpp.

#define OR_BIN   278
 

Definition at line 28 of file ytable.cpp.

#define OR_LOG   275
 

Definition at line 25 of file ytable.cpp.

#define PAR_D   262
 

Definition at line 12 of file ytable.cpp.

#define PAR_G   261
 

Definition at line 11 of file ytable.cpp.

#define PARSER_NO_REDEF_YYTABLE_H_
 

Definition at line 106 of file ytable.cpp.

#define PERROR   299
 

Definition at line 49 of file ytable.cpp.

#define PLUS   282
 

Definition at line 32 of file ytable.cpp.

#define POINT_DEUX   289
 

Definition at line 39 of file ytable.cpp.

#define POINT_VI   287
 

Definition at line 37 of file ytable.cpp.

#define POSTCONDITION   325
 

Definition at line 75 of file ytable.cpp.

#define POW   347
 

Definition at line 97 of file ytable.cpp.

#define POWER   286
 

Definition at line 36 of file ytable.cpp.

#define PRECONDITION   324
 

Definition at line 74 of file ytable.cpp.

#define PRIORITY   331
 

Definition at line 81 of file ytable.cpp.

#define RETURN   327
 

Definition at line 77 of file ytable.cpp.

#define RULE   334
 

Definition at line 84 of file ytable.cpp.

#define SCOP   281
 

Definition at line 31 of file ytable.cpp.

#define SETS   341
 

Definition at line 91 of file ytable.cpp.

#define SIN   345
 

Definition at line 95 of file ytable.cpp.

#define STATIC   311
 

Definition at line 61 of file ytable.cpp.

#define STEPS   329
 

Definition at line 79 of file ytable.cpp.

#define SUP   270
 

Definition at line 20 of file ytable.cpp.

#define SUP_EG   272
 

Definition at line 22 of file ytable.cpp.

#define TAN   346
 

Definition at line 96 of file ytable.cpp.

#define TELL   297
 

Definition at line 47 of file ytable.cpp.

#define THEN   319
 

Definition at line 69 of file ytable.cpp.

#define TRIGGER   323
 

Definition at line 73 of file ytable.cpp.

#define UPDATEEVERY   330
 

Definition at line 80 of file ytable.cpp.

#define VIRGULE   268
 

Definition at line 18 of file ytable.cpp.

#define WITH   315
 

Definition at line 65 of file ytable.cpp.

#define XOR_BIN   280
 

Definition at line 30 of file ytable.cpp.

#define YYABORT   return(1)
 

Definition at line 775 of file ytable.cpp.

#define YYACCEPT   return(0)
 

Definition at line 774 of file ytable.cpp.

#define YYBACKUP token,
value   
 

Value:

do                                                              \
  if (yychar == YYEMPTY && yylen == 1)                          \
    { yychar = (token), yylval = (value);                       \
      yychar1 = YYTRANSLATE (yychar);                           \
      YYPOPSTACK;                                               \
      goto yybackup;                                            \
    }                                                           \
  else                                                          \
    { yyerror ("syntax error: cannot back up"); YYERROR; }      \
while (0)

Definition at line 783 of file ytable.cpp.

#define YYBISON   1
 

Definition at line 6 of file ytable.cpp.

#define yyclearin   (yychar = YYEMPTY)
 

Definition at line 771 of file ytable.cpp.

#define YYEMPTY   -2
 

Definition at line 772 of file ytable.cpp.

#define YYEOF   0
 

Definition at line 773 of file ytable.cpp.

#define YYERRCODE   256
 

Definition at line 796 of file ytable.cpp.

#define yyerrok   (yyerrstatus = 0)
 

Definition at line 770 of file ytable.cpp.

#define YYERROR   goto yyerrlab1
 

Definition at line 776 of file ytable.cpp.

#define YYFAIL   goto yyerrlab
 

Definition at line 781 of file ytable.cpp.

#define YYFINAL   419
 

Definition at line 132 of file ytable.cpp.

#define YYFLAG   -32768
 

Definition at line 133 of file ytable.cpp.

#define YYINITDEPTH   200
 

Definition at line 843 of file ytable.cpp.

#define YYLAST   743
 

Definition at line 549 of file ytable.cpp.

#define YYLEX   yylex()
 

Definition at line 799 of file ytable.cpp.

#define YYMAXDEPTH   10000
 

Definition at line 854 of file ytable.cpp.

#define YYNTBASE   96
 

Definition at line 134 of file ytable.cpp.

#define YYPARSE_PARAM_ARG
 

#define YYPARSE_PARAM_DECL
 

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

 
#define YYRECOVERING      (!!yyerrstatus)
 

Definition at line 782 of file ytable.cpp.

#define YYSTYPE   int
 

Definition at line 120 of file ytable.cpp.

#define YYTERROR   1
 

Definition at line 795 of file ytable.cpp.

#define YYTRANSLATE x       ((unsigned)(x) <= 350 ? yytranslate[x] : 253)
 

Definition at line 136 of file ytable.cpp.


Function Documentation

void __yy_memcpy to   ,
from   ,
count   
[static]
 


Variable Documentation

int count
 

Definition at line 873 of file ytable.cpp.

char* from
 

Definition at line 872 of file ytable.cpp.

int yychar
 

Definition at line 822 of file ytable.cpp.

const short yycheck[] [static]
 

Definition at line 630 of file ytable.cpp.

const short yydefact[] [static]
 

Definition at line 420 of file ytable.cpp.

const short yydefgoto[] [static]
 

Initial value:

 {     3,
     4,     5,    50,     6,     7,     8,    15,    14,    47,   214,
   209,    28,    29,    30,    31,    32,    33,    34,   130,   202,
   203,    35,    36,    37,   125,   255,    38,    54,   260,    39,
   204,    40,   134,   205,    41,   126,   259,   194,   195,   251,
   352,   196,   385,   197,   354,   408,   135,   321,   386,   409,
   198,   353,   380,   399,   381,    42,    43,   213,    44,    64,
    65,   136,    66,   137,   210,   211,   212,   266,   387,   272,
   273,    92,    93,    94,   142,   403,    95,   182,   144,   229,
    97,   230,   231,    98,   297,   294,    99,   100,   101,   232,
   102,   280,   390,   119,   120,   121,   313,   122,   314,   123,
   183,   124,   346,   347,   348,   141,   103,   170,   171,   172,
   173,   174,   175,   176,   177,   104,   178,   179,   105,   146,
   107,   147,   108,   218,   109,   153,   332,   365,   222,   110,
   224,   336,   156,   223,   283,   335,   111,   279,   330,   360,
   112,   113,   227,   290,   340,   341,   114,   226,   339,   158,
   225,   287,   338,   288,   369,   412
}

Definition at line 465 of file ytable.cpp.

YYSTYPE yylval
 

Definition at line 823 of file ytable.cpp.

int yynerrs
 

Definition at line 831 of file ytable.cpp.

const short yypact[] [static]
 

Definition at line 484 of file ytable.cpp.

const short yypgoto[] [static]
 

Initial value:

 {-32768,
   449,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  -165,-32768,   425,-32768,-32768,-32768,   421,-32768,   257,-32768,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,  -117,-32768,-32768,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
   326,-32768,    60,-32768,-32768,-32768,   415,-32768,-32768,-32768,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
   136,   -62,   -89,-32768,-32768,-32768,-32768,-32768,   -50,-32768,
   234,-32768,-32768,-32768,   171,   138,-32768,   -88,-32768,-32768,
-32768,-32768,-32768,-32768,   350,-32768,-32768,-32768,-32768,-32768,
-32768,-32768,-32768,   107,-32768,   302,   -65,-32768,-32768,-32768,
-32768,-32768,-32768,-32768,-32768,   -61,-32768,-32768,  -212,   -49,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
-32768,-32768,-32768,-32768,  -318,-32768,  -217,-32768,   123,-32768,
-32768,-32768,-32768,   143,-32768,-32768,  -220,-32768,-32768,-32768,
-32768,  -315,-32768,-32768,-32768,-32768
}

Definition at line 529 of file ytable.cpp.

const short yyr1[] [static]
 

Initial value:

 {     0,
    96,    96,    97,    97,    97,    98,    99,    98,   100,   101,
   103,   102,   104,   104,   106,   105,   107,   107,   108,   108,
   109,   109,   110,   110,   110,   110,   111,   112,   112,   113,
   113,   114,   116,   115,   117,   115,   118,   118,   118,   118,
   118,   118,   119,   121,   122,   120,   124,   125,   123,   127,
   126,   128,   129,   130,   129,   132,   133,   131,   134,   134,
   135,   135,   136,   137,   135,   135,   138,   139,   139,   139,
   141,   142,   140,    -1,    -1,   144,   145,   146,   143,   148,
   147,   149,   150,   149,   151,   152,   152,   154,   153,   153,
   155,   155,   156,   156,   158,   157,   160,   159,   161,   161,
   162,   162,   107,   163,   164,   165,   163,   166,   166,   167,
   168,   168,   168,   168,   169,   169,   169,   169,   169,   171,
   172,   170,   174,   173,   175,   176,   175,   178,   177,   179,
   177,   180,   181,   182,   182,   183,   184,   184,   186,   185,
   188,   189,   187,   190,   190,   190,   190,   191,   191,   192,
   193,   192,   192,   195,   194,   197,   196,   198,   198,   199,
   199,   200,   200,   201,   202,   203,   203,   204,   203,   205,
   203,   203,   206,   203,   207,   203,   208,   203,   209,   203,
   210,   203,   211,   203,   212,   213,   212,   214,   212,   215,
   215,   215,   215,   215,   215,   215,   215,   215,   215,   215,
   215,   215,   215,   215,   215,   215,   215,   215,   215,   215,
   216,   216,   216,   216,   218,   217,   219,   220,   220,   222,
   223,   221,   224,   224,   225,   227,   228,   226,    -1,   230,
   229,   231,   232,   231,   231,    -1,    -1,   234,   233,   233,
   235,   236,   235,   237,   239,   238,   241,   240,   242,   240,
   244,   245,   243,   247,   246,   248,   249,   248,   251,   252,
   250,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1
}

Definition at line 360 of file ytable.cpp.

const short yyr2[] [static]
 

Initial value:

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

Definition at line 390 of file ytable.cpp.

const short yytable[] [static]
 

Definition at line 552 of file ytable.cpp.

const char yytranslate[] [static]
 

Definition at line 138 of file ytable.cpp.