////////////////////////////////////////////////////////////////////////// Execute -- attempts to parse input to create list of fcospecs on failure, it will throw an error (binding failed, or parse error) on success, the list will be populated //////////////////////////////////////////////////////////////////////////
| 116 | // on success, the list will be populated |
| 117 | /////////////////////////////////////////////////////////////////////////////// |
| 118 | void cPolicyParser::Execute(cGenreSpecListVector& policy, cErrorBucket* pError) //throw( eParserHelper ) |
| 119 | { |
| 120 | cParserHelper::Init(pError); |
| 121 | |
| 122 | std::basic_stringstream<char> in(ConvertMultibyte(mIn)); |
| 123 | tw_yy_scan lexer(in); |
| 124 | |
| 125 | // start the parsing |
| 126 | if (mParser.yyparse(&lexer) != 0) |
| 127 | throw eParseFailed(_T("")); |
| 128 | |
| 129 | cParserHelper::Finit(&policy); |
| 130 | } |
| 131 | |
| 132 | |
| 133 | // NOTE: this version ALWAYS IGNORES the va_list!! Even though it says "...", |