Skip to content

Commit

Permalink
SUBST (#320)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
SwampertX authored and openorclose committed Aug 21, 2019
1 parent f2f1013 commit 4657f1e
Show file tree
Hide file tree
Showing 12 changed files with 117,809 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "js-slang",
"version": "0.2.6",
"version": "0.3.1",
"description": "Javascript-based interpreter for slang, written in Typescript",
"author": {
"name": "Source Academy",
Expand All @@ -14,7 +14,7 @@
"source-map": "^0.7.3"
},
"main": "dist/index",
"types": "dist/index",
"types": "dist/index",
"files": [
"dist"
],
Expand Down
Loading

0 comments on commit 4657f1e

Please sign in to comment.