Lines Matching refs:fsm
136 struct ts_fsm *fsm = ts_config_priv(conf);
160 strict = fsm->tokens[0].recur != TS_FSM_HEAD_IGNORE;
165 for (tok_idx = 0; tok_idx < fsm->ntokens; tok_idx++) {
166 cur = &fsm->tokens[tok_idx];
168 if (likely(tok_idx < (fsm->ntokens - 1)))
169 next = &fsm->tokens[tok_idx + 1];
260 struct ts_fsm *fsm;
263 size_t priv_size = sizeof(*fsm) + len;
287 fsm = ts_config_priv(conf);
288 fsm->ntokens = ntokens;
289 memcpy(fsm->tokens, pattern, len);
291 for (i = 0; i < fsm->ntokens; i++) {
292 struct ts_fsm_token *t = &fsm->tokens[i];
304 struct ts_fsm *fsm = ts_config_priv(conf);
305 return fsm->tokens;
310 struct ts_fsm *fsm = ts_config_priv(conf);
311 return fsm->ntokens * sizeof(struct ts_fsm_token);
315 .name = "fsm",