Tags: arsalan0c/js-slang
Tags
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
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
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
Use build script for pre-publish hook (source-academy#109) * Use build script for prepublishOnly * Bump version
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
Re-enable function expressions (source-academy#106) * Revert "Disable function expressions (source-academy#96)" This reverts commit 615fb51. * Bump version
Parser export fix (source-academy#104) * Bump version * Use ES5 export for parser.js * Use createParser export
Fix bug in Block Statements (source-academy#102) Fix bug in Block Statements
PreviousNext