Make test symbol_names array accessible in specs
This commit is contained in:
parent
9d5a260e5b
commit
b99c257e9e
2 changed files with 2 additions and 2 deletions
|
|
@ -7,14 +7,13 @@ using std::string;
|
|||
using std::to_string;
|
||||
using std::ostream;
|
||||
|
||||
static const char *symbol_names[24] = {
|
||||
const char *symbol_names[24] = {
|
||||
"ERROR", "END", "two", "three", "four", "five", "six", "seven", "eight",
|
||||
"nine", "ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen",
|
||||
"sixteen", "seventeen", "eighteen", "nineteen", "twenty", "twenty-one",
|
||||
"twenty-two", "twenty-three"
|
||||
};
|
||||
|
||||
|
||||
TSTree ** tree_array(std::vector<TSTree *> trees) {
|
||||
TSTree ** result = (TSTree **)calloc(trees.size(), sizeof(TSTree *));
|
||||
for (size_t i = 0; i < trees.size(); i++)
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
extern const char *symbol_names[24];
|
||||
TSTree ** tree_array(std::vector<TSTree *> trees);
|
||||
|
||||
std::ostream &operator<<(std::ostream &stream, const TSTree *tree);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue