Lines Matching refs:grammar
50 ESR_ReturnCode process_single_key_line(SR_Grammar* grammar, PFile* fin, PFile* fout);
51 ESR_ReturnCode process_multi_key_line(SR_Grammar* grammar, const LCHAR* rootrule, PFile* fin, PFile* fout);
104 ESR_ReturnCode Parse(SR_Grammar* grammar, LCHAR* trans, PFile* fout, Opts* opts)
110 SR_GrammarImpl* pgrammar = (SR_GrammarImpl*)grammar;
124 Parse(grammar, trans, fout, &myopts);
138 rc = grammar->checkParse(grammar, trans, semanticResults, (size_t*) & result_count);
209 /* tests the transcription against the grammar and then decided based on what was expected of the test
211 ESR_ReturnCode ParseTestSet(SR_Grammar* grammar, LCHAR* trans, LCHAR* key, LCHAR* ref, LCHAR* result, PFile* fout)
228 rc = grammar->checkParse(grammar, trans, semanticResults, (size_t*) & result_count);
277 SR_Grammar* grammar = NULL;
338 rc = SR_GrammarLoad(base, &grammar);
354 rc = Parse(grammar, NULL, fout, &opts);
384 if ((rc = Parse(grammar, trans, fout, &opts)) != ESR_SUCCESS)
403 if (0) rc = process_single_key_line(grammar, fin, fout);
404 else rc = process_multi_key_line(grammar, rootrule, fin, fout);
431 if ((rc = Parse(grammar, trans, fout, &opts)) != ESR_SUCCESS)
440 if (grammar) grammar->destroy(grammar);
448 ESR_ReturnCode process_single_key_line(SR_Grammar* grammar, PFile* fin, PFile* fout)
523 if ((rc = ParseTestSet(grammar, trans, key, refValue, result, fout)) != ESR_SUCCESS)
528 if ((rc = ParseTestSet(grammar, trans, key, refValue, "PASS", fout)) != ESR_SUCCESS)
536 ESR_ReturnCode process_multi_key_line(SR_Grammar* grammar, const LCHAR* rootrule, PFile* fin, PFile* fout)
584 rc = grammar->checkParse(grammar, trans, semanticResults, (size_t*) & result_count);