"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/actexp.cc" 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.

actexp.cc  (ragel-7.0.0.11):actexp.cc  (ragel-7.0.0.12)
skipping to change at line 91 skipping to change at line 91
if ( redAct->numFromStateRefs > 0 ) { if ( redAct->numFromStateRefs > 0 ) {
/* Write the entry label. */ /* Write the entry label. */
out << "\t " << CASE( STR( redAct->actListId+1 ) ) << " { \n"; out << "\t " << CASE( STR( redAct->actListId+1 ) ) << " { \n";
/* Write each action in the list of action items. */ /* Write each action in the list of action items. */
for ( GenActionTable::Iter item = redAct->key; item.lte() ; item++ ) { for ( GenActionTable::Iter item = redAct->key; item.lte() ; item++ ) {
ACTION( out, item->value, IlOpts( 0, false, false ) ); ACTION( out, item->value, IlOpts( 0, false, false ) );
out << "\n\t"; out << "\n\t";
} }
out << "\n\t" << CEND() << "}\n"; out << "\n\t" << CEND() << "\n}\n";
} }
} }
return out; return out;
} }
/* Write out the function switch. This switch is keyed on the values /* Write out the function switch. This switch is keyed on the values
* of the func index. */ * of the func index. */
std::ostream &ActExp::ACTION_SWITCH() std::ostream &ActExp::ACTION_SWITCH()
{ {
skipping to change at line 114 skipping to change at line 114
if ( redAct->numTransRefs > 0 ) { if ( redAct->numTransRefs > 0 ) {
/* Write the entry label. */ /* Write the entry label. */
out << "\t " << CASE( STR( redAct->actListId+1 ) ) << " { \n"; out << "\t " << CASE( STR( redAct->actListId+1 ) ) << " { \n";
/* Write each action in the list of action items. */ /* Write each action in the list of action items. */
for ( GenActionTable::Iter item = redAct->key; item.lte() ; item++ ) { for ( GenActionTable::Iter item = redAct->key; item.lte() ; item++ ) {
ACTION( out, item->value, IlOpts( 0, false, false ) ); ACTION( out, item->value, IlOpts( 0, false, false ) );
out << "\n\t"; out << "\n\t";
} }
out << "\n\t" << CEND() << "}\n"; out << "\n\t" << CEND() << "\n}\n";
} }
} }
return out; return out;
} }
/* Write out the function switch. This switch is keyed on the values /* Write out the function switch. This switch is keyed on the values
* of the func index. */ * of the func index. */
std::ostream &ActExp::TO_STATE_ACTION_SWITCH() std::ostream &ActExp::TO_STATE_ACTION_SWITCH()
{ {
skipping to change at line 137 skipping to change at line 137
if ( redAct->numToStateRefs > 0 ) { if ( redAct->numToStateRefs > 0 ) {
/* Write the entry label. */ /* Write the entry label. */
out << "\t " << CASE( STR( redAct->actListId+1 ) ) << " { \n"; out << "\t " << CASE( STR( redAct->actListId+1 ) ) << " { \n";
/* Write each action in the list of action items. */ /* Write each action in the list of action items. */
for ( GenActionTable::Iter item = redAct->key; item.lte() ; item++ ) { for ( GenActionTable::Iter item = redAct->key; item.lte() ; item++ ) {
ACTION( out, item->value, IlOpts( 0, false, false ) ); ACTION( out, item->value, IlOpts( 0, false, false ) );
out << "\n\t"; out << "\n\t";
} }
out << "\n\t" << CEND() << "}\n"; out << "\n\t" << CEND() << "\n}\n";
} }
} }
return out; return out;
} }
std::ostream &ActExp::EOF_ACTION_SWITCH() std::ostream &ActExp::EOF_ACTION_SWITCH()
{ {
/* Loop the actions. */ /* Loop the actions. */
for ( GenActionTableMap::Iter redAct = redFsm->actionMap; redAct.lte(); r edAct++ ) { for ( GenActionTableMap::Iter redAct = redFsm->actionMap; redAct.lte(); r edAct++ ) {
if ( redAct->numEofRefs > 0 ) { if ( redAct->numEofRefs > 0 ) {
/* Write the entry label. */ /* Write the entry label. */
out << "\t " << CASE( STR( redAct->actListId+1 ) ) << " { \n"; out << "\t " << CASE( STR( redAct->actListId+1 ) ) << " { \n";
/* Write each action in the list of action items. */ /* Write each action in the list of action items. */
for ( GenActionTable::Iter item = redAct->key; item.lte() ; item++ ) { for ( GenActionTable::Iter item = redAct->key; item.lte() ; item++ ) {
ACTION( out, item->value, IlOpts( 0, true, false ) ); ACTION( out, item->value, IlOpts( 0, true, false ) );
out << "\n\t"; out << "\n\t";
} }
out << "\n\t" << CEND() << "}\n"; out << "\n\t" << CEND() << "\n}\n";
} }
} }
return out; return out;
} }
void ActExp::FROM_STATE_ACTIONS() void ActExp::FROM_STATE_ACTIONS()
{ {
if ( redFsm->anyFromStateActions() ) { if ( redFsm->anyFromStateActions() ) {
out << out <<
 End of changes. 4 change blocks. 
4 lines changed or deleted 4 lines changed or added

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