Create new parser (works for lists so far)
This commit is contained in:
@@ -4,7 +4,7 @@ from smnp.token.type import TokenType
|
||||
|
||||
# string -> STRING
|
||||
def parseString(input, parent):
|
||||
if input.current().type == TokenType.STRING:
|
||||
if input.isCurrent(TokenType.STRING):
|
||||
string = StringLiteralNode(input.current().value[1:len(input.current().value) - 1], parent, input.current().pos)
|
||||
input.ahead()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user