Enable extending existing types to add custom methods

This commit is contained in:
Bartłomiej Pluta
2019-07-06 00:36:54 +02:00
parent f11b3b67f2
commit bf40c5130c
8 changed files with 86 additions and 6 deletions

View File

@@ -0,0 +1,6 @@
from smnp.token.tools import tokenizeKeyword
from smnp.token.type import TokenType
def tokenizeExtend(input, current, line):
return tokenizeKeyword(TokenType.EXTEND, "extend", input, current, line)