Skip to content

Tags: arsalan0c/js-slang

Tags

v0.3.4

Toggle v0.3.4's commit message

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
Name anonymous functions with more details (source-academy#355)

* name anonymous functions more detailed

* Update src/closure.ts

Co-Authored-By: Open O. Close <[email protected]>

* anonyomous functions identified by their parameters

* single parameter prettier now

* single parameter prettier now

0.3.2

Toggle 0.3.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Change variable storage to a function that returns that variable (sou…

…rce-academy#332)

* Change variable storage to a function that returns that variable

* Improve naming

* 0.3.2

v0.3.1

Toggle v0.3.1's commit message
SUBST (source-academy#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 (source-academy#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

v0.2.6

Toggle v0.2.6's commit message
Fix let (requires prelude to be merged first) (BREAKING CHANGE) (sour…

…ce-academy#321)

* Add prelude, that predeclares Source-implementable functions

List and stream functions that can be implemented in Source
now are put in the prelude, and are no longer native JS functions.

* Update tests

* Add tests for stream

* Add tests for stream

* Add tests for stream

* Fix bug where mutating variables in a outer scope didn't work properly

* Make mutating let variables in outer scopes propagate properly

* Order imports

* Remove redundant assigning for constant

* Revert yarn.lock

* Remove inconsistent snapshot

* Add check for undefined variables too

* Update tests

v0.2.5

Toggle v0.2.5's commit message
Bump version to 0.2.5 (source-academy#315)

v0.1.16

Toggle v0.1.16's commit message
Use build script for pre-publish hook (source-academy#109)

* Use build script for prepublishOnly

* Bump version

v0.1.15

Toggle v0.1.15's commit message
Fix parser arrow functions (source-academy#108)

* arrow syntax fixed

* quote added

* Fix syntax error

* fix imports and add arrow function test

* bump version

* Move MCI parser tests to new file

* fix reference issues with parser

* silence typescript whining

* Add tests for parse in js-slang

* Add Metacircular interpreter test within context

v0.1.14

Toggle v0.1.14's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Re-enable function expressions (source-academy#106)

* Revert "Disable function expressions (source-academy#96)"

This reverts commit 615fb51.

* Bump version

v0.1.13

Toggle v0.1.13's commit message
Parser export fix (source-academy#104)

* Bump version

* Use ES5 export for parser.js

* Use createParser export

v0.1.11

Toggle v0.1.11's commit message
Fix bug in Block Statements (source-academy#102)

Fix bug in Block Statements