Lines Matching refs:tok
407 tok = self.tokens[self._index]
408 print "%d:%d: %s" % (tok.location.line, tok.location.column, msg)
650 for tok in param:
651 par += str(tok)
967 tok = Token()
968 tok.id = tokDEFINED
969 tokens = [tok] + tokens
1107 for tok in self.tokens:
1108 result += repr(tok)
1111 for tok in self.tokens:
1112 result += repr(tok)
1136 expr = strip_space(' '.join([tok.id for tok in self.tokens]))
1144 result = "#error %s" % ' '.join([tok.id for tok in self.tokens])
1150 result += ''.join([tok.id for tok in self.tokens])
1413 tok = b.tokens[i]
1414 if (tok.kind == TokenKind.KEYWORD and tok.id == 'struct'
1431 if tok.kind == TokenKind.IDENTIFIER:
1432 if tok.id in replacements:
1433 tok.id = replacements[tok.id]