1.3.3 • Published 3 years ago

@stopify/elementary-js v1.3.3

Weekly downloads
4
License
BSD-3-Clause
Repository
github
Last release
3 years ago

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 install

To build:

npm run-script build

To lint:

npm run-script lint

To test:

npm run-script test

Development

  • 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:

  1. Array spread syntax
  2. Destructuring assignment
1.3.3

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.24

5 years ago

1.0.23

5 years ago

1.0.22

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago