Skip to content

Commit

Permalink
parsing/tokenizer: partial revert of 5141f7c (#735)
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Sep 23, 2021
1 parent 14b5ad1 commit e00ec8c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vunit/parsing/tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
from vunit.ostools import read_file, file_exists, simplify_path


TokenType = collections.namedtuple("Token", ["kind", "value", "location"])


def Token(kind, value="", location=None): # pylint: disable=invalid-name
return collections.namedtuple("Token", ["kind", "value", "location"])(kind, value, location)
return TokenType(kind, value, location)


class TokenKind:
Expand Down

0 comments on commit e00ec8c

Please sign in to comment.