Evaluating the lexter:giving error for this line let tokens = lexer.lex()


#1

func evaluate (input: String)
{
print(“Evaluating: (input)”)
let lexer = Lexer(input: input)
let tokens = lexer.lex() //Error Description: call can throw, but it is not marked with ‘try’ and the error is not handled
print(“Lexer output: (tokens)”)
}

could you help me to correct the line


#2

sorry :slight_smile: I did not read to after the document. it is my fault.