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 025dc5c commit 60462cc
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 60462cc

Please sign in to comment.