Skip to content

Replace Source §3 Non-Det in SICP JS 4.3.1 and 4.3.2 by the interpreter from SICP JS 4.3.3 #990

Open
@martin-henz

Description

@martin-henz

This will allow us to retire the folder src/interpreter and reduce the number of execution engines we need to support. To make the examples of 4.3.1 and 4.3.2 work, the repl module will come in handy.

Currently, Source §3 Non-Det is not working. Older version works. E.g. the first example in SICP JS 4.3
https://sourceacademy.nus.edu.sg/sicpjs/4.3.1
works without error (but with spacing issues). (currently deployment of SA@NUS of today)

The newest version in SA.org gives a runtime error:
https://share.sourceacademy.org/s9irv
gives:

main.13f449e4.js:2 RangeError: Maximum call stack size exceeded

This is regardless whether the amb operator is used.

display(1);

gives the same error. Source §3 Non-Det does not work at all, currently.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions