Add support for custom functions

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

View File

@@ -2,4 +2,4 @@ from smnp.token.tools import tokenizeKeyword
from smnp.token.type import TokenType
def tokenizeFunction(input, current, line):
return tokenizeKeyword(TokenType.FUNCTION, 'library', input, current, line)
return tokenizeKeyword(TokenType.FUNCTION, 'function', input, current, line)