• Home
  • Raw
  • Download

Lines Matching refs:fout

50 ESR_ReturnCode process_single_key_line(SR_Grammar* grammar, PFile* fin, PFile* fout);
51 …rnCode process_multi_key_line(SR_Grammar* grammar, const LCHAR* rootrule, PFile* fin, PFile* fout);
79 void display_results(SR_SemanticResult *result, PFile* fout) in display_results() argument
94 pfprintf(fout, "{%s : %s}\n", keys[i], value); in display_results()
96 pfprintf(fout, "Error: %s\n", ESR_rc2str(rc)); in display_results()
98 pfprintf(fout, "--Done--\n"); in display_results()
101 pfprintf(fout, "Error: %s\n", ESR_rc2str(rc)); in display_results()
104 ESR_ReturnCode Parse(SR_Grammar* grammar, LCHAR* trans, PFile* fout, Opts* opts) in Parse() argument
124 Parse(grammar, trans, fout, &myopts); in Parse()
183 pfprintf(fout, "error (%s)\n\n", trans); in Parse()
189 pfprintf(fout, "no parse (%s)\n\n", trans); in Parse()
195 pfprintf(fout, "parse ok (%d results) (%s) (%d)\n", result_count, trans, key_count); in Parse()
197 display_results(semanticResults[i], fout); in Parse()
211 …ParseTestSet(SR_Grammar* grammar, LCHAR* trans, LCHAR* key, LCHAR* ref, LCHAR* result, PFile* fout) in ParseTestSet() argument
227 pfprintf(fout, "checking (%s) ref(%s) res(%s)\n", trans, ref, result); in ParseTestSet()
237 pfprintf(fout, "NO PARSE FOR: %s|%s|%s| |", trans, key, ref); in ParseTestSet()
239 pfprintf(fout, "PASSED (%s)\n", trans); in ParseTestSet()
241 pfprintf(fout, "FAILED (%s)\n", trans); in ParseTestSet()
250 pfprintf(fout, "%s|%s|%s|%s|", trans, key, ref, value); in ParseTestSet()
253 pfprintf(fout, "PASSED\n"); in ParseTestSet()
255 pfprintf(fout, "FAILED\n"); in ParseTestSet()
259 pfprintf(fout, "ERROR: %s, while checking key='%s'\n", ESR_rc2str(rc), key); in ParseTestSet()
283 PFile *fin = NULL, *fout = NULL; in main() local
294 fout = PSTDOUT; in main()
344 if ((fout = pfopen(outfilename, "w")) == NULL) in main()
354 rc = Parse(grammar, NULL, fout, &opts); in main()
383 pfprintf(fout, "Transcription: %s\n", trans); in main()
384 if ((rc = Parse(grammar, trans, fout, &opts)) != ESR_SUCCESS) in main()
386 pfprintf(fout, "\n"); in main()
403 if (0) rc = process_single_key_line(grammar, fin, fout); in main()
404 else rc = process_multi_key_line(grammar, rootrule, fin, fout); in main()
431 if ((rc = Parse(grammar, trans, fout, &opts)) != ESR_SUCCESS) in main()
438 if (fout && fout != PSTDOUT) in main()
439 pfclose(fout); in main()
448 ESR_ReturnCode process_single_key_line(SR_Grammar* grammar, PFile* fin, PFile* fout) in process_single_key_line() argument
481 pfprintf(fout, "INVALID FORMAT for input line 1 \n"); in process_single_key_line()
493 pfprintf(fout, "INVALID FORMAT for input line 2\n"); in process_single_key_line()
505 pfprintf(fout, "INVALID FORMAT for input line 3\n"); in process_single_key_line()
518 pfprintf(fout, "INVALID FORMAT for input line, use either PASS or FAIL\n"); in process_single_key_line()
523 if ((rc = ParseTestSet(grammar, trans, key, refValue, result, fout)) != ESR_SUCCESS) in process_single_key_line()
528 if ((rc = ParseTestSet(grammar, trans, key, refValue, "PASS", fout)) != ESR_SUCCESS) in process_single_key_line()
536 …urnCode process_multi_key_line(SR_Grammar* grammar, const LCHAR* rootrule, PFile* fin, PFile* fout) in process_multi_key_line() argument
593 pfprintf(fout, "%s|%s| |", trans, keyvals); in process_multi_key_line()
595 pfprintf(fout, "PASSED\n"); in process_multi_key_line()
597 pfprintf(fout, "FAILED\n"); in process_multi_key_line()
629 pfprintf(fout, "%s|%s|%s|%s|", trans, refkey, refval, value); in process_multi_key_line()
631 pfprintf(fout, "PASSED\n"); in process_multi_key_line()
633 pfprintf(fout, "FAILED\n"); in process_multi_key_line()