Lines Matching refs:tix
350 unsigned tix, lineno; in tokenise() local
360 tix = 0; in tokenise()
407 tokens[tix].line = lineno; in tokenise()
420 tokens[tix].size = q - p; in tokenise()
423 tokens[tix].content = malloc(tokens[tix].size + 1); in tokenise()
424 if (!tokens[tix].content) { in tokenise()
428 memcpy(tokens[tix].content, start, tokens[tix].size); in tokenise()
429 tokens[tix].content[tokens[tix].size] = 0; in tokenise()
434 if (islower(tokens[tix].content[0])) { in tokenise()
435 tokens[tix++].token_type = TOKEN_ELEMENT_NAME; in tokenise()
442 dir = bsearch(&tokens[tix], directives, in tokenise()
447 tokens[tix++].token_type = dir - directives; in tokenise()
451 tokens[tix++].token_type = TOKEN_TYPE_NAME; in tokenise()
461 tokens[tix].size = q - p; in tokenise()
463 tokens[tix].content = malloc(tokens[tix].size + 1); in tokenise()
464 if (!tokens[tix].content) { in tokenise()
468 memcpy(tokens[tix].content, start, tokens[tix].size); in tokenise()
469 tokens[tix].content[tokens[tix].size] = 0; in tokenise()
470 tokens[tix++].token_type = TOKEN_NUMBER; in tokenise()
477 tokens[tix].size = 3; in tokenise()
478 tokens[tix].content = "::="; in tokenise()
479 tokens[tix++].token_type = TOKEN_ASSIGNMENT; in tokenise()
487 tokens[tix].size = 2; in tokenise()
488 tokens[tix].content = "({"; in tokenise()
489 tokens[tix++].token_type = TOKEN_OPEN_ACTION; in tokenise()
494 tokens[tix].size = 2; in tokenise()
495 tokens[tix].content = "})"; in tokenise()
496 tokens[tix++].token_type = TOKEN_CLOSE_ACTION; in tokenise()
502 tokens[tix].size = 1; in tokenise()
506 tokens[tix].content = "{"; in tokenise()
507 tokens[tix++].token_type = TOKEN_OPEN_CURLY; in tokenise()
511 tokens[tix].content = "}"; in tokenise()
512 tokens[tix++].token_type = TOKEN_CLOSE_CURLY; in tokenise()
516 tokens[tix].content = "["; in tokenise()
517 tokens[tix++].token_type = TOKEN_OPEN_SQUARE; in tokenise()
521 tokens[tix].content = "]"; in tokenise()
522 tokens[tix++].token_type = TOKEN_CLOSE_SQUARE; in tokenise()
526 tokens[tix].content = ","; in tokenise()
527 tokens[tix++].token_type = TOKEN_COMMA; in tokenise()
540 nr_tokens = tix; in tokenise()