Skip to content

Commit

Permalink
Update parser to new scm-slang parser (#1584)
Browse files Browse the repository at this point in the history
* Prepare scheme files for new parser

* update JS version for js-slang

* proper formatting of files

* fix separate program environments across REPL eval calls

* remove logger messages from interpreter

* Enable variadic continuations for future

* Remove Infinity and NaN representation from Scheme

* Change scm-slang to follow forked version

* update scm-slang to newest parser

* resolve linting problems

* add test cases to verify proper chapter validation, decoded representation

* update scm-slang

* Move scheme-specific tests to scm-slang

* make scheme test names more obvious

* Revert "Move scheme-specific tests to scm-slang"

This reverts commit 42e184e.

* move scm-slang to dedicated alt-lang folder

* remove duplicate code between scm-slang and js-slang

* ignore alt langs coverage

---------

Co-authored-by: Martin Henz <[email protected]>
  • Loading branch information
s-kybound and martin-henz authored Mar 21, 2024
1 parent 89b726c commit 46317e3
Show file tree
Hide file tree
Showing 21 changed files with 387 additions and 2,931 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/dist/
/src/scm-slang/
/src/alt-langs/
/src/py-slang/
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[submodule "src/scm-slang"]
path = src/scm-slang
url = https://github.com/source-academy/scm-slang.git
[submodule "src/alt-langs/scheme/scm-slang"]
path = src/alt-langs/scheme/scm-slang
url = https://github.com/source-academy/scm-slang
[submodule "src/py-slang"]
path = src/py-slang
url = https://github.com/source-academy/py-slang
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/src/scm-slang/
/src/alt-langs/
/src/py-slang/
/src/**/__tests__/**/__snapshots__
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
"/node_modules/",
"/src/typings/",
"/src/utils/testing.ts",
"/src/scm-slang",
"/src/alt-langs",
"/src/py-slang/"
],
"reporters": [
Expand Down
Loading

0 comments on commit 46317e3

Please sign in to comment.