"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/inputdata.cc" between
ragel-7.0.3.tar.gz and ragel-7.0.4.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.cc  (ragel-7.0.3):inputdata.cc  (ragel-7.0.4)
skipping to change at line 587 skipping to change at line 587
" -n Do not perform minimization\n" " -n Do not perform minimization\n"
" -m Minimize at the end of the compilation\n" " -m Minimize at the end of the compilation\n"
" -l Minimize after most operations (default)\n" " -l Minimize after most operations (default)\n"
" -e Minimize after every operation\n" " -e Minimize after every operation\n"
"visualization:\n" "visualization:\n"
" -V Generate a dot file for Graphviz\n" " -V Generate a dot file for Graphviz\n"
" -p Display printable characters on labels\n" " -p Display printable characters on labels\n"
" -S <spec> FSM specification to output (for graphviz output)\n" " -S <spec> FSM specification to output (for graphviz output)\n"
" -M <machine> Machine definition/instantiation to output (for\n" " -M <machine> Machine definition/instantiation to output (for\n"
" graphviz output)\n" " graphviz output)\n"
"host language:\n" "host language binaries:\n"
" -C C, C++, Obj-C or Obj-C++ (default)\n" " ragel, ragel-c C, C++, Obj-C or Obj-C++\n"
" All code styles supported.\n" " All code styles supported.\n"
" --asm --gas-x86-64-sys-v\n" " ragel-asm GNU AS, x86_64, System V ABI.\n"
" GNU AS, x86_64, System V ABI.\n"
" Generated in a code style equivalent to -G2\n" " Generated in a code style equivalent to -G2\n"
" -D D All code styles supported\n" " ragel-d D All code styles supported\n"
" -Z Go All code styles supported\n" " ragel-go Go All code styles supported\n"
" -A C# -T0 -T1 -F0 -F1 -G0 -G1\n" " ragel-csharp C# -T0 -T1 -F0 -F1 -G0 -G1\n"
" -J Java -T0 -T1 -F0 -F1\n" " ragel-java Java -T0 -T1 -F0 -F1\n"
" -R Ruby -T0 -T1 -F0 -F1\n" " ragel-ruby Ruby -T0 -T1 -F0 -F1\n"
" -O OCaml -T0 -T1 -F0 -F1\n" " ragel-ocaml OCaml -T0 -T1 -F0 -F1\n"
" -U Rust -T0 -T1 -F0 -F1\n" " ragel-rust Rust -T0 -T1 -F0 -F1\n"
" -Y Julia -T0 -T1 -F0 -F1\n" " ragel-julia Julia -T0 -T1 -F0 -F1\n"
" -K Crack -T0 -T1 -F0 -F1\n" " ragel-crack Crack -T0 -T1 -F0 -F1\n"
" -P JavaScript -T0 -T1 -F0 -F1\n" " ragel-js JavaScript -T0 -T1 -F0 -F1\n"
"line directives:\n" "line directives:\n"
" -L Inhibit writing of #line directives\n" " -L Inhibit writing of #line directives\n"
"code style:\n" "code style:\n"
" -T0 Binary search (default)\n" " -T0 Binary search (default)\n"
" -T1 Binary search with expanded actions \n" " -T1 Binary search with expanded actions \n"
" -F0 Flat table\n" " -F0 Flat table\n"
" -F1 Flat table with expanded actions\n" " -F1 Flat table with expanded actions\n"
" -G0 Switch-driven\n" " -G0 Switch-driven\n"
" -G1 Switch-driven with expanded actions\n" " -G1 Switch-driven with expanded actions\n"
" -G2 Goto-driven with expanded actions\n" " -G2 Goto-driven with expanded actions\n"
skipping to change at line 1205 skipping to change at line 1204
if ( in.gcount() != st.st_size ) { if ( in.gcount() != st.st_size ) {
error() << inputFileName << ": could not read in force-libragel m ode"; error() << inputFileName << ": could not read in force-libragel m ode";
delete[] input; delete[] input;
return 0; return 0;
} }
input[st.st_size] = 0; input[st.st_size] = 0;
return input; return input;
} }
int InputData::main( int argc, const char **argv )
{
int code = 0;
try {
parseArgs( argc, argv );
checkArgs();
if ( !generateDot )
makeDefaultFileName();
if ( !process() )
abortCompile( 1 );
}
catch ( const AbortCompile &ac ) {
code = ac.code;
}
return code;
}
int InputData::runFrontend( int argc, const char **argv ) int InputData::runFrontend( int argc, const char **argv )
{ {
if ( !process() ) if ( !process() )
return -1; return -1;
return 0; return 0;
} }
int InputData::runRlhc( int argc, const char **argv ) int InputData::runRlhc( int argc, const char **argv )
{ {
struct colm_program *prg; struct colm_program *prg;
skipping to change at line 1269 skipping to change at line 1249
error() << what << " stopped by signal: " << WTERMSIG(sta tus) << std::endl; error() << what << " stopped by signal: " << WTERMSIG(sta tus) << std::endl;
return -1; return -1;
} }
return WEXITSTATUS( status ); return WEXITSTATUS( status );
} }
#endif #endif
return (this->*idProcess)( argc, argv ); return (this->*idProcess)( argc, argv );
} }
int InputData::main( int argc, const char **argv )
{
int code = 0;
try {
parseArgs( argc, argv );
checkArgs();
if ( !generateDot )
makeDefaultFileName();
if ( !process() )
abortCompile( 1 );
}
catch ( const AbortCompile &ac ) {
code = ac.code;
}
return code;
}
int InputData::rlhcMain( int argc, const char **argv ) int InputData::rlhcMain( int argc, const char **argv )
{ {
parseArgs( argc, argv ); int code = 0;
checkArgs(); try {
makeDefaultFileName(); parseArgs( argc, argv );
makeTranslateOutputFileName(); checkArgs();
makeDefaultFileName();
int es = runJob( "frontend", &InputData::runFrontend, 0, 0 ); makeTranslateOutputFileName();
if ( es != 0 ) int es = runJob( "frontend", &InputData::runFrontend, 0, 0 );
return es;
if ( es != 0 )
/* rlhc <input> <output> */ return es;
const char *_argv[] = { "rlhc",
genOutputFileName.c_str(),
origOutputFileName.c_str(), 0 };
return runJob( "rlhc", &InputData::runRlhc, 3, _argv ); /* rlhc <input> <output> */
const char *_argv[] = { "rlhc",
genOutputFileName.c_str(),
origOutputFileName.c_str(), 0 };
return runJob( "rlhc", &InputData::runRlhc, 3, _argv );
}
catch ( const AbortCompile &ac ) {
code = ac.code;
}
return code;
} }
 End of changes. 7 change blocks. 
48 lines changed or deleted 54 lines changed or added

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