Git Product home page Git Product logo

super-tiny-interpreter's Introduction

THE SUPER TINY INTERPREER

Welcome to The Super Tiny Interpreter. It's an ultra simplified example of all the major pieces of a modern interpreter written in easy to read JavaScript. Reading through it can help you learn about how most interpreters work end to end.

Why should I care?

That's fair, most people don't really have to think about interpreters in their day jobs. However, interpreters are all around you, tons of the tools you use are based on concepts borrowed from interpreters.

But interpreters are scary!

Yes, they are. But that's our fault (the people who write interpreters), we've taken something that is reasonably straightforward and made it so scary that most think of it as this totally unapproachable thing that only the nerdiest of the nerds are able to understand.

Okay so where do I begin?

Awesome! Head on over to the super-tiny-interpreter.js file.

I'm back, that didn't make sense

Ouch, I'm really sorry. I'm planning on doing a lot more work on this to add inline annotations. If you want to come back when that's done, you can watch/star this repo for updates.

Tests

Run with node test.js


cc-by-4.0

super-tiny-interpreter's People

Contributors

nicholasantonov avatar

Stargazers

Alita Pan avatar Tyler Romeo avatar Dipen avatar Trevor avatar 周丰 avatar Lin Ran avatar David Aguilar avatar Jamal Boulhous avatar  avatar Yassine MADDOURI avatar Jason Ajmo avatar Bradley Bossard avatar Johan Andberger avatar Nikolay Kolev avatar Lawrence Peng avatar  avatar James Benner avatar Adam Miller avatar Minho Ryang avatar  avatar

Watchers

James Cloos avatar Mayiawo Aken'Ova avatar  avatar Jason Ajmo avatar  avatar

super-tiny-interpreter's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.