Rename type ts_parse_action -> TSParseAction

This commit is contained in:
Max Brunsfeld 2014-06-28 19:06:37 -07:00
parent 26f612a20d
commit 27f6eb725d
6 changed files with 17 additions and 17 deletions

View file

@ -1,6 +1,6 @@
#include "runtime/helpers/dummy_parser.h"
const ts_parse_action parse_table[3][5] = {
const TSParseAction parse_table[3][5] = {
[0] = {
[dummy_sym2] = SHIFT(12),
[dummy_sym3] = SHIFT(12),
@ -32,7 +32,7 @@ const int hidden_symbols[5] = {
struct test_parser dummy_parser = {
.state_count = 3,
.symbol_count = 5,
.parse_table = (const ts_parse_action **)parse_table,
.parse_table = (const TSParseAction **)parse_table,
.lex_states = lex_states,
.hidden_symbols = hidden_symbols,
};

View file

@ -16,7 +16,7 @@ enum {
struct test_parser {
size_t state_count;
size_t symbol_count;
const ts_parse_action **parse_table;
const TSParseAction **parse_table;
const TSStateId *lex_states;
const int *hidden_symbols;
};

View file

@ -22,7 +22,7 @@ describe("LR Parsers", [&]() {
before_each([&]() {
reader = new SpyReader("some structured text", 5);
parser = ts_lr_parser_make(dummy_parser.symbol_count,
(const ts_parse_action *)dummy_parser.parse_table,
(const TSParseAction *)dummy_parser.parse_table,
dummy_parser.lex_states,
fake_lex,
dummy_parser.hidden_symbols);