"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/gendata.h" between
ragel-7.0.0.9.tar.gz and ragel-7.0.0.10.tar.gz

About:

gendata.h  (ragel-7.0.0.9):gendata.h  (ragel-7.0.0.10)
/* /*
* Copyright 2005-2007 Adrian Thurston <thurston@complang.org> * Copyright 2005-2007 Adrian Thurston <thurston@colm.net>
*/
/* This file is part of Ragel.
* *
* Ragel is free software; you can redistribute it and/or modify * Permission is hereby granted, free of charge, to any person obtaining a copy
* it under the terms of the GNU General Public License as published by * of this software and associated documentation files (the "Software"), to
* the Free Software Foundation; either version 2 of the License, or * deal in the Software without restriction, including without limitation the
* (at your option) any later version. * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
* *
* Ragel is distributed in the hope that it will be useful, * The above copyright notice and this permission notice shall be included in al
* but WITHOUT ANY WARRANTY; without even the implied warranty of l
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * copies or substantial portions of the Software.
* GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* along with Ragel; if not, write to the Free Software * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/ */
#ifndef _GENDATA_H #ifndef _GENDATA_H
#define _GENDATA_H #define _GENDATA_H
#include <iostream> #include <iostream>
#include <string> #include <string>
#include <vector> #include <vector>
#include "config.h" #include "config.h"
#include "redfsm.h" #include "redfsm.h"
skipping to change at line 381 skipping to change at line 382
sourceFileName(args.sourceFileName), sourceFileName(args.sourceFileName),
fsmName(args.fsmName), fsmName(args.fsmName),
keyOps(red->keyOps), keyOps(red->keyOps),
alphType(args.alphType), alphType(args.alphType),
out(args.out), out(args.out),
noEnd(false), noEnd(false),
noPrefix(false), noPrefix(false),
noFinal(false), noFinal(false),
noError(false), noError(false),
noCS(false), noCS(false),
lineDirectives(args.lineDirectives) lineDirectives(args.lineDirectives),
cleared(false)
{ {
} }
/* /*
* The interface to the code generator. * The interface to the code generator.
*/ */
virtual void genAnalysis() = 0; virtual void genAnalysis() = 0;
/* These are invoked by writeStatement and are normally what are used to /* These are invoked by writeStatement and are normally what are used to
* implement the code generators. */ * implement the code generators. */
virtual void writeData() {}; virtual void writeData() {};
virtual void writeInit() {}; virtual void writeInit() {};
virtual void writeExec() {}; virtual void writeExec() {};
virtual void writeExports() {}; virtual void writeExports() {};
virtual void writeStart() {}; virtual void writeStart() {};
virtual void writeFirstFinal() {}; virtual void writeFirstFinal() {};
virtual void writeError() {}; virtual void writeError() {};
virtual void writeClear();
/* Show some stats after a write data. */ /* Show some stats after a write data. */
virtual void statsSummary() = 0; virtual void statsSummary() = 0;
/* This can also be overridden to modify the processing of write /* This can also be overridden to modify the processing of write
* statements. */ * statements. */
virtual void writeStatement( InputLoc &loc, int nargs, virtual void writeStatement( InputLoc &loc, int nargs,
std::vector<std::string> &args, bool generateDot, const H ostLang *hostLang ); std::vector<std::string> &args, bool generateDot, const H ostLang *hostLang );
/********************/ /********************/
skipping to change at line 440 skipping to change at line 443
/* Write options. */ /* Write options. */
bool noEnd; bool noEnd;
bool noPrefix; bool noPrefix;
bool noFinal; bool noFinal;
bool noError; bool noError;
bool noCS; bool noCS;
void write_option_error( InputLoc &loc, std::string arg ); void write_option_error( InputLoc &loc, std::string arg );
bool lineDirectives; bool lineDirectives;
bool cleared;
}; };
/* Selects and constructs the codegen based on the output options. */ /* Selects and constructs the codegen based on the output options. */
CodeGenData *makeCodeGen( const HostLang *hostLang, const CodeGenArgs &args ); CodeGenData *makeCodeGen( const HostLang *hostLang, const CodeGenArgs &args );
typedef AvlMap<char *, CodeGenData*, CmpStr> CodeGenMap; typedef AvlMap<char *, CodeGenData*, CmpStr> CodeGenMap;
typedef AvlMapEl<char *, CodeGenData*> CodeGenMapEl; typedef AvlMapEl<char *, CodeGenData*> CodeGenMapEl;
#endif #endif
 End of changes. 7 change blocks. 
16 lines changed or deleted 21 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS