Get generated parsers building under gcc
This commit is contained in:
parent
6a0a28f4b3
commit
bd5ec68c96
7 changed files with 26 additions and 32 deletions
|
|
@ -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())
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue