Go to the source code of this file.
Classes | |
struct | _generator< T > |
Defines | |
#define | generator(NAME) struct NAME : public _generator<NAME> |
#define | emit(T) |
#define | stop } _line = 0; if(_pop()) goto $START; return false; } |
#define | restart(WITH) { _push(); _stack->_line = __LINE__; _line=0; WITH; goto $START; case __LINE__:; } |
#define | yield(V) |
#define emit | ( | T | ) |
Value:
bool operator()(T& _rv) { \ if(_line < 0) _line=0; \ $START: switch(_line) { case 0:;
Definition at line 22 of file generator.hh.
#define generator | ( | NAME | ) | struct NAME : public _generator<NAME> |
Definition at line 20 of file generator.hh.
#define restart | ( | WITH | ) | { _push(); _stack->_line = __LINE__; _line=0; WITH; goto $START; case __LINE__:; } |
Definition at line 28 of file generator.hh.
#define stop } _line = 0; if(_pop()) goto $START; return false; } |
Definition at line 26 of file generator.hh.
Referenced by Moses::TranslationOptionCollection::CacheLexReordering(), Moses::LRState::ComparePrevScores(), sapt::Ttrack< TKN >::count_tokens(), getoccs(), sapt::imTSA< TOKEN >::imTSA(), lookup_phrase(), lookup_source(), main(), nbest(), Moses::FastLoader::operator()(), Moses::operator<<(), sapt::Ttrack< TKN >::pid2str(), Moses::ScoreComponentCollection::PlusEquals(), mdiadaptlm::saveASR(), stringdist::StringDiff::Segment::Segment(), sapt::TSA< TKN >::setTokenBits(), and sapt::Ttrack< TKN >::str().
#define yield | ( | V | ) |
Value:
do {\ _line=__LINE__;\ _rv = (V); return true; case __LINE__:;\ } while (0)
Definition at line 30 of file generator.hh.
Referenced by Moses::Syntax::Manager::OutputBest().