Refactor tokenizer
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from smnp.token.tools import regexPatternTokenizer
|
||||
from smnp.token.type import TokenType
|
||||
|
||||
def tokenizeIdentifier(input, current, line):
|
||||
def identifierTokenizer(input, current, line):
|
||||
# TODO: Disallow to create identifiers beggining from a number
|
||||
return regexPatternTokenizer(TokenType.IDENTIFIER, r'\w')(input, current, line)
|
||||
|
||||
Reference in New Issue
Block a user