Lines Matching full:loc
47 int loc;
60 loc = forwardList[ii];
61 switch ( arc[loc]->inputLabel ) {
63 outfile << arc[loc]->fromId << std::endl;
66 outfile << arc[loc]->fromId << separator << arc[loc]->toId << separator << Eps << std::endl;
78 // if (!p_Doc.findLabel( arc[loc]->inputLabel, inLabel ) ) {
79 if (!p_Doc.findSortedLabel( arc[loc]->inputLabel, inLabel ) ) {
81 ss << arc[loc]->inputLabel;
84 outfile << arc[loc]->fromId << separator << arc[loc]->toId << separator << inLabel.c_str() << std::endl;
99 int loc;
116 loc= forwardList[ii];
118 switch ( arc[loc]->inputLabel ) {
126 if (!p_Doc.findRule( arc[loc]->outputLabel, outLabel ) ) {
128 ss << arc[loc]->outputLabel;
142 ss << SCRIPT_LABEL_PREFIX << arc[loc]->outputLabel;
156 // if (!p_Doc.findLabel( arc[loc]->inputLabel, inLabel ) ) {
157 if (!p_Doc.findSortedLabel( arc[loc]->inputLabel, inLabel ) ) {
158 inLabel = arc[loc]->inputLabel;
162 if (arc[loc]->outputLabel == -1)
166 ss << SCRIPT_LABEL_PREFIX << arc[loc]->outputLabel;
172 outfile << arc[loc]->fromId << std::endl;
174 outfile << arc[loc]->fromId << Separator << arc[loc]->toId << Separator << inLabel.c_str() << Separator << outLabel.c_str() << std::endl;
186 int loc;
206 loc = forwardList[ii];
207 switch ( arc[loc]->inputLabel ) {
209 outfile << arc[loc]->fromId << std::endl;
212 if (arc[loc]->outputLabel >= 0) {
213 if (!p_Doc.findLabel( arc[loc]->outputLabel, outLabel ) ) {
215 ss << arc[loc]->outputLabel;
218 outfile << arc[loc]->fromId << separator << arc[loc]->toId << separator << Eps << separator << outLabel.c_str() << std::endl;
221 outfile << arc[loc]->fromId << separator << arc[loc]->toId << separator << Eps << separator << Eps << std::endl;
224 if (arc[loc]->outputLabel >= 0) {
225 if (!p_Doc.findLabel( arc[loc]->outputLabel, outLabel ) ) {
227 ss << arc[loc]->outputLabel;
230 outfile << arc[loc]->fromId << separator << arc[loc]->toId << separator << ".wb" << separator << outLabel.c_str() << std::endl;
233 outfile << arc[loc]->fromId << separator << arc[loc]->toId << separator << ".wb" << separator << Eps << std::endl;
244 if (arc[loc]->outputLabel >= 0) {
245 if (!p_Doc.findLabel( arc[loc]->outputLabel, outLabel ) ) {
247 ss << arc[loc]->outputLabel;
251 else if (arc[loc]->outputLabel == INITIAL_LABEL)
253 else if (arc[loc]->outputLabel == FINAL_LABEL)
269 int loc;
280 loc = forwardList[ii];
281 switch ( arc[loc]->inputLabel ) {
283 outfile << arc[loc]->fromId << std::endl;
286 if (arc[loc]->outputLabel >= 0) {
287 if (!p_Doc.findLabel( arc[loc]->outputLabel, outLabel ) ) {
289 ss << arc[loc]->outputLabel;
292 outfile << arc[loc]->fromId << separator << arc[loc]->toId << separator << Eps << separator << outLabel.c_str() << std::endl;
295 outfile << arc[loc]->fromId << separator << arc[loc]->toId << separator << Eps << separator << Eps << std::endl;
298 if (arc[loc]->outputLabel >= 0) {
299 if (!p_Doc.findLabel( arc[loc]->outputLabel, outLabel ) ) {
301 ss << arc[loc]->outputLabel;
304 outfile << arc[loc]->fromId << separator << arc[loc]->toId << separator << ".wb" << separator << outLabel.c_str() << std::endl;
307 outfile << arc[loc]->fromId << separator << arc[loc]->toId << separator << ".wb" << separator << Eps << std::endl;
317 if ( arc[loc]->inputLabel >= 0) {
322 if (!p_Doc.findLabel( -arc[loc]->inputLabel, inLabel ) ) {
324 ss << arc[loc]->inputLabel;
327 outfile << arc[loc]->fromId << separator << arc[loc]->toId << separator << inLabel.c_str() << separator << Eps << std::endl;
341 int loc;
347 loc= forwardList[ii];
348 if (!p_Doc.findLabel( arc[loc]->inputLabel, inLabel ) ) {
349 inLabel = arc[loc]->inputLabel;
351 //ss << arc[loc]->inputLabel;
354 if (!p_Doc.findTag( arc[loc]->outputLabel, outLabel ) ) {
355 outLabel = arc[loc]->outputLabel;
357 //ss << arc[loc]->outputLabel;
360 std::cout << arc[loc]->fromId <<" " << arc[loc]->toId << " " << inLabel.c_str() <<" " << outLabel.c_str() << std::endl;