source-academy / sicp

XML sources of SICP and SICP JS, and support for generating Interactive SICP JS, PDF, e-book and comparison editions
https://sourceacademy.org/sicpjs
Creative Commons Attribution Share Alike 4.0 International
890 stars 115 forks source link

Fixes #999 #1001

Closed PossibilityZero closed 1 week ago

PossibilityZero commented 1 month ago

Fixes issues described in #999:

  1. Simple syntax errors with unmatched parentheses
  2. A problem with the built in member function that only happens with the Source §2 interpreter
  3. A logic error in the current solution, where the selectors return single-item lists (eg. list("x")) that deriv can't handle.

Also fixes an typo in the problem description (unnecessary parentheses for number literal).