tree-sitter/test/helpers/read_test_entries.h
Max Brunsfeld 17bc3dfaf7 Add a benchmark command
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.
2017-07-05 14:14:38 -07:00

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