This command measures the speed of parsing each grammar's examples. It also uses each grammar to parse all of the *other* grammars' examples in order to measure error recovery performance with fairly large files.
22 lines
490 B
C++
22 lines
490 B
C++
#ifndef HELPERS_READ_TEST_ENTRIES_H_
|
|
#define HELPERS_READ_TEST_ENTRIES_H_
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
struct TestEntry {
|
|
std::string description;
|
|
std::string input;
|
|
std::string tree_string;
|
|
};
|
|
|
|
struct ExampleEntry {
|
|
std::string file_name;
|
|
std::string input;
|
|
};
|
|
|
|
std::vector<TestEntry> read_real_language_corpus(std::string name);
|
|
std::vector<TestEntry> read_test_language_corpus(std::string name);
|
|
std::vector<ExampleEntry> examples_for_language(std::string name);
|
|
|
|
#endif
|