Get generated parsers building under gcc

This commit is contained in:
Max Brunsfeld 2014-04-08 21:53:13 -07:00
parent 6a0a28f4b3
commit bd5ec68c96
7 changed files with 26 additions and 32 deletions

View file

@ -171,8 +171,8 @@ namespace tree_sitter {
string state_and_symbol_counts() {
return join({
"STATE_COUNT = " + to_string(parse_table.states.size()) + ";",
"SYMBOL_COUNT = " + to_string(parse_table.symbols.size()) + ";"
"#define STATE_COUNT " + to_string(parse_table.states.size()),
"#define SYMBOL_COUNT " + to_string(parse_table.symbols.size())
});
}