"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/inputdata.h" between
ragel-7.0.0.11.tar.gz and ragel-7.0.0.12.tar.gz

About: Ragel compiles executable finite state machines from regular languages (C, C++, Obj-C, C#, D, Java, Go and Ruby). Development version.

inputdata.h  (ragel-7.0.0.11):inputdata.h  (ragel-7.0.0.12)
skipping to change at line 37 skipping to change at line 37
#include <iostream> #include <iostream>
#include <sstream> #include <sstream>
#include <vector> #include <vector>
struct ParseData; struct ParseData;
struct Parser6; struct Parser6;
struct CondSpace; struct CondSpace;
struct CondAp; struct CondAp;
struct ActionTable; struct ActionTable;
struct Section; struct Section;
struct LangFuncs;
void translatedHostData( ostream &out, const string &data ); void translatedHostData( ostream &out, const string &data );
struct InputItem struct InputItem
{ {
InputItem() InputItem()
: :
section(0), section(0),
pd(0), pd(0),
parser(0), parser(0),
skipping to change at line 171 skipping to change at line 172
char *data; char *data;
int len; int len;
}; };
struct InputData struct InputData
: :
public FsmGbl public FsmGbl
{ {
InputData( const HostLang *hostLang, struct colm_sections *rlhcSections = InputData( const HostLang *hostLang,
0 ) struct colm_sections *frontendSections, struct colm_secti
ons *rlhcSections )
: :
FsmGbl(hostLang), FsmGbl(hostLang),
frontendSections(frontendSections),
rlhcSections(rlhcSections), rlhcSections(rlhcSections),
inputFileName(0), inputFileName(0),
outputFileName(0), outputFileName(0),
nextMachineId(0), nextMachineId(0),
inStream(0), inStream(0),
outStream(0), outStream(0),
outFilter(0), outFilter(0),
curItem(0), curItem(0),
lastFlush(0), lastFlush(0),
codeStyle(GenBinaryLoop), codeStyle(GenBinaryLoop),
dotGenPd(0), dotGenPd(0),
machineSpec(0), machineSpec(0),
machineName(0), machineName(0),
generateDot(false), generateDot(false),
noLineDirectives(false), noLineDirectives(false),
maxTransitions(LONG_MAX), maxTransitions(LONG_MAX),
numSplitPartitions(0), numSplitPartitions(0),
rubyImpl(MRI),
rlhc(false), rlhc(false),
rlhcShowCmd(false), rlhcShowCmd(false),
noIntermediate(false), noIntermediate(false),
frontendSpecified(false), frontendSpecified(false),
backendSpecified(false), backendSpecified(false),
featureSpecified(false), featureSpecified(false),
saveTemps(false), saveTemps(false),
condsCheckDepth(-1), condsCheckDepth(-1),
transSpanDepth(6), transSpanDepth(6),
stateLimit(0), stateLimit(0),
checkBreadth(0), checkBreadth(0),
varBackend(false), varBackend(false),
histogramFn(0), histogramFn(0),
histogram(0), histogram(0),
input(0), input(0),
forceLibRagel(false) forceVar(false)
{ {}
}
~InputData(); ~InputData();
void usage(); void usage();
void version(); void version();
void showHostLangNames();
void showHostLangArgs();
void showFrontends(); void showFrontends();
void showBackends(); void showBackends();
struct colm_sections *frontendSections;
struct colm_sections *rlhcSections; struct colm_sections *rlhcSections;
std::string dirName; std::string dirName;
/* The name of the root section, this does not change during an include. */ /* The name of the root section, this does not change during an include. */
const char *inputFileName; const char *inputFileName;
const char *outputFileName; const char *outputFileName;
string comm; string comm;
int nextMachineId; int nextMachineId;
skipping to change at line 273 skipping to change at line 272
const char *machineSpec; const char *machineSpec;
const char *machineName; const char *machineName;
bool generateDot; bool generateDot;
bool noLineDirectives; bool noLineDirectives;
long maxTransitions; long maxTransitions;
int numSplitPartitions; int numSplitPartitions;
/* Target ruby impl */
RubyImplEnum rubyImpl;
bool rlhc; bool rlhc;
bool rlhcShowCmd; bool rlhcShowCmd;
bool noIntermediate; bool noIntermediate;
bool frontendSpecified; bool frontendSpecified;
RagelFrontend frontend; RagelFrontend frontend;
bool backendSpecified; bool backendSpecified;
bool featureSpecified; bool featureSpecified;
skipping to change at line 302 skipping to change at line 298
bool varBackend; bool varBackend;
const char *histogramFn; const char *histogramFn;
double *histogram; double *histogram;
const char *input; const char *input;
Vector<const char**> streamFileNames; Vector<const char**> streamFileNames;
bool forceLibRagel; bool forceVar;
void verifyWriteHasData( InputItem *ii ); void verifyWriteHasData( InputItem *ii );
void verifyWritesHaveData(); void verifyWritesHaveData();
void makeTranslateOutputFileName(); void makeTranslateOutputFileName();
void flushRemaining(); void flushRemaining();
void makeFirstInputItem(); void makeFirstInputItem();
void writeOutput(); void writeOutput();
void makeDefaultFileName(); void makeDefaultFileName();
void createOutputStream(); void createOutputStream();
skipping to change at line 350 skipping to change at line 346
bool processReduce(); bool processReduce();
bool process(); bool process();
bool parseReduce(); bool parseReduce();
char *readInput( const char *inputFileName ); char *readInput( const char *inputFileName );
const char **makeIncludePathChecks( const char *curFileName, const char * fileName ); const char **makeIncludePathChecks( const char *curFileName, const char * fileName );
std::ifstream *tryOpenInclude( const char **pathChecks, long &found ); std::ifstream *tryOpenInclude( const char **pathChecks, long &found );
int main( int argc, const char **argv ); int main( int argc, const char **argv );
void wait( const char *what, pid_t pid );
int rlhcRun( int argc, const char **argv ); int rlhcRun( int argc, const char **argv );
int rlhcMain( int argc, const char **argv ); int rlhcMain( int argc, const char **argv );
}; };
#endif #endif
 End of changes. 10 change blocks. 
13 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)