← Questions
Parse and evaluate a Lisp-like expression with error handling
0
I was asked this
No reports yet. Sign in to say where you were asked it.
Evaluate expressions such as (add 1 2), (mult 3 (add 2 3)) and (let x 2 (mult x 5)), where let binds variables in nested scopes.
Unlike the classic version, the input may be invalid: detect malformed expressions and report an error instead of crashing or returning a wrong value.
No official answer yet. Write yours on the right and run it.
Nothing published yet.
Sign in to submit your code; every attempt is kept here.
Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding
