Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rickbutton/smoljs
`JavaScript`, but smol.
https://github.com/rickbutton/smoljs
ecmascript interpreter javascript metacircular-interpreter self-hosted
Last synced: 5 days ago
JSON representation
`JavaScript`, but smol.
- Host: GitHub
- URL: https://github.com/rickbutton/smoljs
- Owner: rickbutton
- License: mit
- Created: 2020-02-19T03:59:39.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T07:41:34.000Z (almost 2 years ago)
- Last Synced: 2024-04-15T02:59:22.751Z (7 months ago)
- Topics: ecmascript, interpreter, javascript, metacircular-interpreter, self-hosted
- Language: JavaScript
- Size: 749 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# smoljs
`smoljs` is a metacircular interpreter for a subset of `JavaScript`, written in `smoljs`.
It's not done yet.
The goal of `smoljs` is to design a very small and easy to understand interpreter
for a subset of `JavaScript` that is implemented only in that subset, which
makes for an infintely recursive metacircular interpreter.This will be hopefully used as the basis for a conference talk on compilers and interpreters
in `JavaScript`, and fun stuff like self-hosting and metacircular interpreters.# TODO
- finish parser
- tree-walking evaluator
- bytecode emitter?
- bytecode interpreter?
- wasm?# DONE
- a `smoljs` compatible lexer
- most of a parser