@stopify/elementary-js v1.3.3
ElementaryJS
ElementaryJS is JavaScript, but with sharp edges removed. We use it in the Ocelot JavaScript IDE. For an overview of what ElementaryJS does, see this page
Building
On initialization (or when you update package.json):
npm installTo build:
npm run-script buildTo lint:
npm run-script lintTo test:
npm run-script testDevelopment
src/types.ts: Types used throughout the codebase.src/visitor.ts: The heart of the ElementaryJS compiler. This code performs static checks and inserts dynamic checks that ElementaryJS enforces.src/runtime.ts: The ElementaryJS runtime system. This module has the implementations of the dynamic checks that the compiler inserts.src/index.ts: Entrypoint of the ElementaryJS package. This is the interface to ElementaryJS.tests/: Unit tests.eval/: Scripts and files used for evaluating ElementaryJS effectiveness.
Unsupported Features
ElementaryJS does not support some JavaScript features, not because we intend to omit them, but because we haven't done the work to support them:
- Array spread syntax
- Destructuring assignment
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago