Commit 8d96dab8 authored by kruger's avatar kruger
Browse files

Ajout des fichiers générés par le .l et .y

parent 0d7a963c
This diff is collapsed.
#ifndef _EASEALEX_H
#define _EASEALEX_H
#include <clex.h>
#line 67 "EaseaLex.l"
// forward references
class CEASEAParser;
class CSymbolTable;
#line 13 "EaseaLex.h"
#define GENOME_ANALYSIS 2
#define TEMPLATE_ANALYSIS 4
#define MACRO_IDENTIFIER 6
#define MACRO_DEFINITION 8
#define COPY_USER_DECLARATIONS 10
#define COPY_INITIALISATION_FUNCTION 12
#define ANALYSE_USER_CLASSES 14
#define COPY_EO_INITIALISER 16
#define COPY 18
#define COPY_INITIALISER 20
#define COPY_CROSSOVER 22
#define COPY_MUTATOR 24
#define COPY_EVALUATOR 26
#define COPY_OPTIMISER 28
#define COPY_FINALIZATION_FUNCTION 30
#define COPY_DISPLAY 32
#define COPY_USER_FUNCTION 34
#define COPY_USER_GENERATION 36
#define PARAMETERS_ANALYSIS 38
#define GET_PARAMETERS 40
#define COPY_USER_FUNCTIONS 42
#define COPY_GENERATION_FUNCTION_BEFORE_REPLACEMENT 44
#define GET_METHODS 46
#define COPY_MAKEFILE_OPTION 48
#define COPY_BOUND_CHECKING_FUNCTION 50
#define COPY_BEG_GENERATION_FUNCTION 52
#define COPY_END_GENERATION_FUNCTION 54
#define COPY_INSTEAD_EVAL 56
/////////////////////////////////////////////////////////////////////////////
// CEASEALexer
#ifndef YYDECLSPEC
#define YYDECLSPEC
#endif
class YYFAR YYDECLSPEC CEASEALexer : public yyflexer {
public:
CEASEALexer();
protected:
void yytables();
virtual int yyaction(int action);
public:
#line 81 "EaseaLex.l"
protected:
CSymbolTable *pSymbolTable; // the symbol table
bool bSymbolInserted,bWithinEvaluator, bWithinOptimiser; // used to change evalutor type from double to float
bool bInitFunction,bDisplayFunction,bFunction, bNotFinishedYet, bWithinEO_Function;
bool bDoubleQuotes,bWithinDisplayFunction,bWithinInitialiser,bWithinMutator,bWithinXover;
bool bWaitingForSemiColon,bFinishNB_GEN,bFinishMINIMISE,bFinishMINIMIZE,bGenerationReplacementFunction;
bool bCatchNextSemiColon,bWaitingToClosePopulation, bMethodsInGenome, bFinalizationFunction;
bool bWithinCUDA_Initializer, bWithinMAKEFILEOPTION, bWithinCUDA_Evaluator, bBoundCheckingFunction;
bool bIsParentReduce, bIsOffspringReduce, bEndGeneration, bBeginGeneration, bEndGenerationFunction, bBeginGenerationFunction, bGenerationFunctionBeforeReplacement;
CSymbol *pASymbol;
public:
int create(CEASEAParser* pParser, CSymbolTable* pSymbolTable);
int yywrap();
double myStrtod() const;
#line 76 "EaseaLex.h"
};
#ifndef YYLEXNAME
#define YYLEXNAME CEASEALexer
#endif
#ifndef INITIAL
#define INITIAL 0
#endif
#endif
This diff is collapsed.
#ifndef _EASEAPARSE_H
#define _EASEAPARSE_H
#include <cyacc.h>
#line 63 "EaseaParse.y"
// forward references
class CSymbol;
#line 12 "EaseaParse.h"
#ifndef YYSTYPE
union tagYYSTYPE {
#line 69 "EaseaParse.y"
CSymbol* pSymbol;
double dValue;
int ObjectQualifier;
int nValue;
char *szString;
#line 23 "EaseaParse.h"
};
#define YYSTYPE union tagYYSTYPE
#endif
#define UMINUS 257
#define CLASSES 258
#define GENOME 259
#define USER_CTOR 260
#define USER_XOVER 261
#define USER_MUTATOR 262
#define USER_EVALUATOR 263
#define USER_OPTIMISER 264
#define MAKEFILE_OPTION 265
#define END_OF_FUNCTION 266
#define END_METHODS 267
#define IDENTIFIER 268
#define IDENTIFIER2 269
#define BOOL 270
#define INT 271
#define DOUBLE 272
#define FLOAT 273
#define CHAR 274
#define POINTER 275
#define NUMBER 276
#define NUMBER2 277
#define METHODS 278
#define STATIC 279
#define NB_GEN 280
#define NB_OPT_IT 281
#define BALDWINISM 282
#define MUT_PROB 283
#define XOVER_PROB 284
#define POP_SIZE 285
#define SELECTOR 286
#define RED_PAR 287
#define RED_OFF 288
#define RED_FINAL 289
#define OFFSPRING 290
#define SURVPAR 291
#define SURVOFF 292
#define MINIMAXI 293
#define ELITISM 294
#define ELITE 295
#define PRINT_STATS 296
#define PLOT_STATS 297
#define GENERATE_CSV_FILE 298
#define GENERATE_GNUPLOT_SCRIPT 299
#define GENERATE_R_SCRIPT 300
#define TIME_LIMIT 301
#line 139 "EaseaParse.y"
#include "EaseaSym.h"
#include "EaseaLex.h"
#line 79 "EaseaParse.h"
/////////////////////////////////////////////////////////////////////////////
// CEASEAParser
#ifndef YYDECLSPEC
#define YYDECLSPEC
#endif
class YYFAR YYDECLSPEC CEASEAParser : public yyfparser {
public:
CEASEAParser();
protected:
void yytables();
virtual void yyaction(int action);
#ifdef YYDEBUG
void YYFAR* yyattribute1(int index) const;
void yyinitdebug(void YYFAR** p, int count) const;
#endif
public:
#line 146 "EaseaParse.y"
protected:
CEASEALexer EASEALexer; // the lexical analyser
public:
CSymbolTable SymbolTable; // the symbol table
int create();
double assign(CSymbol* pIdentifier, double dValue);
double divide(double dDividend, double dDivisor);
CSymbol* insert() const;
#line 114 "EaseaParse.h"
};
#ifndef YYPARSENAME
#define YYPARSENAME CEASEAParser
#endif
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment