Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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