Home | History | Annotate | Download | only in tool

Lines Matching refs:buf

260 		StringBuffer buf = new StringBuffer();
268 if (i>0) buf.append('\t');
269 buf.append(s);
276 return buf.toString();
280 StringBuffer buf = new StringBuffer();
281 buf.append("Backtracking report:");
282 buf.append(newline);
283 buf.append("Number of decisions that backtrack: ");
284 buf.append(grammar.decisionsWhoseDFAsUsesSynPreds.size());
285 buf.append(newline);
286 buf.append(getDFALocations(grammar.decisionsWhoseDFAsUsesSynPreds));
287 return buf.toString();
292 StringBuffer buf = new StringBuffer();
301 buf.append("Rule ");
302 buf.append(dfa.decisionNFAStartState.enclosingRule.name);
303 buf.append(" decision ");
304 buf.append(dfa.decisionNumber);
305 buf.append(" location ");
308 buf.append(decisionAST.getLine());
309 buf.append(":");
310 buf.append(decisionAST.getCharPositionInLine());
311 buf.append(newline);
313 return buf.toString();
353 StringBuffer buf = new StringBuffer();
354 buf.append("ANTLR Grammar Report; Stats Version ");
355 buf.append(data.version);
356 buf.append('\n');
357 buf.append("Grammar: ");
358 buf.append(data.gname);
359 buf.append('\n');
360 buf.append("Type: ");
361 buf.append(data.gtype);
362 buf.append('\n');
363 buf.append("Target language: ");
364 buf.append(data.language);
365 buf.append('\n');
366 buf.append("Output: ");
367 buf.append(data.output);
368 buf.append('\n');
369 buf.append("Grammar option k: ");
370 buf.append(data.grammarLevelk);
371 buf.append('\n');
372 buf.append("Grammar option backtrack: ");
373 buf.append(data.grammarLevelBacktrack);
374 buf.append('\n');
375 buf.append("Rules: ");
376 buf.append(data.numRules);
377 buf.append('\n');
378 buf.append("Outer productions: ");
379 buf.append(data.numOuterProductions);
380 buf.append('\n');
381 buf.append("Decisions: ");
382 buf.append(data.numberOfDecisions);
383 buf.append('\n');
384 buf.append("Decisions (ignoring decisions in synpreds): ");
385 buf.append(data.numberOfDecisionsInRealRules);
386 buf.append('\n');
387 buf.append("Fixed k DFA decisions: ");
388 buf.append(data.numberOfFixedKDecisions);
389 buf.append('\n');
390 buf.append("Cyclic DFA decisions: ");
391 buf.append(data.numberOfCyclicDecisions);
392 buf.append('\n');
393 buf.append("LL(1) decisions: "); buf.append(data.numLL1);
394 buf.append('\n');
395 buf.append("Min fixed k: "); buf.append(data.mink);
396 buf.append('\n');
397 buf.append("Max fixed k: "); buf.append(data.maxk);
398 buf.append('\n');
399 buf.append("Average fixed k: "); buf.append(data.avgk);
400 buf.append('\n');
401 // buf.append("Standard deviation of fixed k: "); buf.append(fields[12]);
402 // buf.append('\n');
403 // buf.append("Min acyclic DFA states: "); buf.append(fields[13]);
404 // buf.append('\n');
405 // buf.append("Max acyclic DFA states: "); buf.append(fields[14]);
406 // buf.append('\n');
407 // buf.append("Average acyclic DFA states: "); buf.append(fields[15]);
408 // buf.append('\n');
409 // buf.append("Standard deviation of acyclic DFA states: "); buf.append(fields[16]);
410 // buf.append('\n');
411 // buf.append("Total acyclic DFA states: "); buf.append(fields[17]);
412 // buf.append('\n');
413 // buf.append("Min cyclic DFA states: "); buf.append(fields[18]);
414 // buf.append('\n');
415 // buf.append("Max cyclic DFA states: "); buf.append(fields[19]);
416 // buf.append('\n');
417 // buf.append("Average cyclic DFA states: "); buf.append(fields[20]);
418 // buf.append('\n');
419 // buf.append("Standard deviation of cyclic DFA states: "); buf.append(fields[21]);
420 // buf.append('\n');
421 // buf.append("Total cyclic DFA states: "); buf.append(fields[22]);
422 // buf.append('\n');
423 buf.append("DFA creation time in ms: ");
424 buf.append(data.DFACreationWallClockTimeInMS);
425 buf.append('\n');
427 // buf.append("Number of syntactic predicates available (including synpred rules): ");
428 // buf.append(data.num_synpreds);
429 // buf.append('\n');
430 buf.append("Decisions with available syntactic predicates (ignoring synpred rules): ");
431 buf.append(data.blocksWithSynPreds);
432 buf.append('\n');
433 buf.append("Decision DFAs using syntactic predicates (ignoring synpred rules): ");
434 buf.append(data.decisionsWhoseDFAsUsesSynPreds);
435 buf.append('\n');
437 buf.append("Number of semantic predicates found: ");
438 buf.append(data.numberOfSemanticPredicates);
439 buf.append('\n');
440 buf.append("Decisions with semantic predicates: ");
441 buf.append(data.blocksWithSemPreds);
442 buf.append('\n');
443 buf.append("Decision DFAs using semantic predicates: ");
444 buf.append(data.decisionsWhoseDFAsUsesSemPreds);
445 buf.append('\n');
447 buf.append("Number of (likely) non-LL(*) decisions: ");
448 buf.append(data.numNonLLStarDecisions);
449 buf.append('\n');
450 buf.append("Number of nondeterministic decisions: ");
451 buf.append(data.numNondeterministicDecisions);
452 buf.append('\n');
453 buf.append("Number of nondeterministic decisions resolved with predicates: ");
454 buf.append(data.numNondeterministicDecisionNumbersResolvedWithPredicates);
455 buf.append('\n');
457 buf.append("Number of manual or forced fixed lookahead k=value options: ");
458 buf.append(data.numberOfManualLookaheadOptions);
459 buf.append('\n');
461 buf.append("Vocabulary size: ");
462 buf.append(data.numTokens);
463 buf.append('\n');
464 buf.append("Number of errors: ");
465 buf.append(data.errors);
466 buf.append('\n');
467 buf.append("Number of warnings: ");
468 buf.append(data.warnings);
469 buf.append('\n');
470 buf.append("Number of infos: ");
471 buf.append(data.infos);
472 buf.append('\n');
473 return buf.toString();