Skip to content

Commit 4657f1e

Browse files
SwampertXopenorclose
authored andcommitted
SUBST (#320)
* WIP: Yarn Build works * WORKING: Add treeifier * Working prototype: Source 1 substituter * Fix blockExpression in source 1, started source 2 * Fix block expression and logical expression 1. Now logical expressions are evaluated into expressions 2. Block expressions with a single statement as body, and if the statement is an Expression Statement with irreducible expression, the block will be reduced into undefined. * Bump version (#325) * Added builtin functions for source 1, 2. * Add tests for substituter * Add ArrayExpression as an irreducibleNode Fix stringify. * Add constants prelude Fix also the complications of Infinity and NaN * Remove debugging statements and update tests * Fix problems with builtin functions * Add tests * Add substituter and treeifier for LogicalExpr and update test snapshots * Fix return values of builtin math functions with refactoring * Fix builtin math on neg argument and is_function * Function equality uses javascript's === update tests * Remove debugging statements and update test snapshots * 0.3.0 * Eliminate substituter hangs from using libraries * 0.3.1
1 parent f2f1013 commit 4657f1e

File tree

12 files changed

+117809
-7
lines changed

12 files changed

+117809
-7
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "js-slang",
3-
"version": "0.2.6",
3+
"version": "0.3.1",
44
"description": "Javascript-based interpreter for slang, written in Typescript",
55
"author": {
66
"name": "Source Academy",
@@ -14,7 +14,7 @@
1414
"source-map": "^0.7.3"
1515
},
1616
"main": "dist/index",
17-
"types": "dist/index",
17+
"types": "dist/index",
1818
"files": [
1919
"dist"
2020
],

0 commit comments

Comments
 (0)