Skip to content

Commit

Permalink
Remove Non-Det Interpreter (#1725)
Browse files Browse the repository at this point in the history
* Remove non-det

* Continue removing non-det

* Update eslint and fix linting errors

* Fix bug where cleaning docs would remove the gitignore

* Add ts-check and tseslint helper as requested

* Add explanation for ts-expect-error

* Remove jsdoc stuff pertaining to non-det

* Remove from non-det from the script

* Replace docs scripts with javascript code

* Misc change

* Get make to output to stdio

* Update to use the proper functions from child_process

* Add documentation and silent option for prepare

* Make autocomplete exit with error code

* Put the query parameter back for module importing

* Update eslint import

* Merge from main

* Update docs

* Update scm-slang

---------

Co-authored-by: Kyriel Abad <abadkyriel@gmail.com>
  • Loading branch information
leeyi45 and s-kybound authored Feb 27, 2025
1 parent 1ec7669 commit a50f7dc
Show file tree
Hide file tree
Showing 48 changed files with 706 additions and 3,215 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

65 changes: 0 additions & 65 deletions .eslintrc.json

This file was deleted.

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
node_modules
*.js

# docs
!docs/jsdoc/templates/**/*.js
!docs/lib/**/*.js
docs/source

*.map
dist/
.idea/
Expand Down
27 changes: 14 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,19 @@ Open-source implementations of the programming language _Source_. Source is a se

## Table of Contents

- [Prerequisites](#prerequisites)
- [Usage](#usage)
- [Documentation](#documentation)
- [Requirements](#requirements)
- [Testing](#testing)
- [Error messages](#error-messages)
- [Using your js-slang in Source Academy](#using-your-js-slang-in-source-academy)
- [Using your js-slang in your local Source Academy](#using-your-js-slang-in-your-local-source-academy)
- [Building and publishing SICP package](#building-and-publishing-sicp-package)
- [Talks and Presentations](#talks-and-presentations)
- [License](#license)
- [js-slang](#js-slang)
- [Table of Contents](#table-of-contents)
- [Prerequisites](#prerequisites)
- [Usage](#usage)
- [Documentation](#documentation)
- [Requirements](#requirements)
- [Testing](#testing)
- [Error messages](#error-messages)
- [Using your js-slang in Source Academy](#using-your-js-slang-in-source-academy)
- [Using your js-slang in your local Source Academy](#using-your-js-slang-in-your-local-source-academy)
- [Building and publishing SICP package](#building-and-publishing-sicp-package)
- [Talks and Presentations](#talks-and-presentations)
- [License](#license)

## Prerequisites

Expand Down Expand Up @@ -62,7 +64,7 @@ You can set additional options:
Usage: js-slang [PROGRAM_STRING] [OPTION]
-c, --chapter=CHAPTER set the Source chapter number (i.e., 1-4) (default: 1)
-v, --variant=VARIANT set the Source variant (i.e., default, interpreter, substituter, typed, lazy, non-det, concurrent, wasm, gpu) (default: default)
-v, --variant=VARIANT set the Source variant (i.e., default, interpreter, substituter, typed, lazy, concurrent, wasm, gpu) (default: default)
-h, --help display this help
-e, --eval don't show REPL, only display output of evaluation
```
Expand All @@ -82,7 +84,6 @@ Currently, valid CHAPTER/VARIANT combinations are:
- `--chapter=2 --variant=typed`
- `--chapter=3 --variant=default`
- `--chapter=3 --variant=concurrent`
- `--chapter=3 --variant=non-det`
- `--chapter=3 --variant=interpreter`
- `--chapter=3 --variant=typed`
- `--chapter=4 --variant=default`
Expand Down
89 changes: 0 additions & 89 deletions docs/lib/non-det.js

This file was deleted.

105 changes: 0 additions & 105 deletions docs/md/README_3_NON-DET.md

This file was deleted.

10 changes: 0 additions & 10 deletions docs/md/README_NON-DET.md

This file was deleted.

4 changes: 0 additions & 4 deletions docs/md/README_top.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ the members of our learning community.

#### <a href="source_2_typed/">Source §2 Typed</a>

#### <a href="source_3_non-det/">Source §3 Non-Det</a>

#### <a href="source_3_concurrent/">Source §3 Concurrent</a>

#### <a href="source_3_typed/">Source §3 Typed</a>
Expand Down Expand Up @@ -70,8 +68,6 @@ the Source Academy.

#### <a href="source_2_typed.pdf">Specification of Source §2 Typed</a>

#### <a href="source_3_nondet.pdf">Specification of Source §3 Non-Det</a>

#### <a href="source_3_concurrent.pdf">Specification of Source §3 Concurrent</a>

#### <a href="source_3_typed.pdf">Specification of Source §3 Typed</a>
Expand Down
2 changes: 0 additions & 2 deletions docs/source/.gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion docs/specs/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PDFLATEX = latexmk -pdf

SPECSNUMS = 1 1_lazy 1_wasm 1_type_inference 1_infinite_loop_detection 1_typed 2 2_lazy 2_typed 3_type_inference 3 3_nondet 3_concurrent 3_typed 4 4_explicitcontrol 4_gpu 4_typed styleguide 2_stepper studio_2 python_1
SPECSNUMS = 1 1_lazy 1_wasm 1_type_inference 1_infinite_loop_detection 1_typed 2 2_lazy 2_typed 3_type_inference 3 3_concurrent 3_typed 4 4_explicitcontrol 4_gpu 4_typed styleguide 2_stepper studio_2 python_1

SPECS = $(SPECSNUMS:%=source_%)

Expand Down
Loading

0 comments on commit a50f7dc

Please sign in to comment.