javascript run in javascript using acorn
Go to file
Michal Szczepanski 9d3031e92d fix: README typo 2023-05-05 23:45:00 +02:00
docs fix:docs 2023-05-05 23:34:38 +02:00
src fix: log binary visitor 2023-05-05 23:23:35 +02:00
test doc: update README 2023-05-05 22:57:15 +02:00
.eslintignore initial commit 2023-05-05 07:01:04 +02:00
.eslintrc initial commit 2023-05-05 07:01:04 +02:00
.gitignore initial commit 2023-05-05 07:01:04 +02:00
.parcelrc initial commit 2023-05-05 07:01:04 +02:00
.prettierrc.json initial commit 2023-05-05 07:01:04 +02:00
LICENSE initial commit 2023-05-05 07:01:04 +02:00
README.md fix: README typo 2023-05-05 23:45:00 +02:00
jest.config.js initial commit 2023-05-05 07:01:04 +02:00
package-lock.json initial commit 2023-05-05 07:01:04 +02:00
package.json feat: add docs 2023-05-05 23:29:33 +02:00
tsconfig.json initial commit 2023-05-05 07:01:04 +02:00

README.md

browser-js

Description

javascript interpreter in javascript - poc
I saw that JS-Interpreter is single file so grabbed example fibonacci and wrote acorn parser from scratch.

Run in browser

visit page https://vane.github.io/browser-js/

Basic tests

npm run test

> @szczepano/browser-js@0.0.1 test
> jest

 PASS  src/js.interpreter.test.ts
 PASS  src/visitors/array.test.ts
 PASS  src/decorators/loop.test.ts
 PASS  src/functions.test.ts
 PASS  src/decorators/condition.test.ts

Test Suites: 5 passed, 5 total
Tests:       17 passed, 17 total
Snapshots:   0 total
Time:        1.336 s, estimated 2 s
Ran all test suites.

Build docs

npm run build:html

Enable debug log

Constraints.IS_DEBUG = true