source-academy / js-slang

Implementations of sublanguages of JavaScript, TypeScript, Scheme and Python
https://source-academy.github.io/source/
Apache License 2.0
70 stars 104 forks source link

CSE Machine: sequences show extra brackets #1593

Closed martin-henz closed 8 months ago

martin-henz commented 8 months ago

The display of statement sequences currently includes brackets which are not part of of JavaScripts statement syntax.

Screenshot 2024-03-21 at 8 26 54 PM
NhatMinh0208 commented 8 months ago

The square brackets are added in the astToString function that gives string representation of nodes.

It's in js-slang - I'll fix it there.