GithubHelp home page GithubHelp logo

jamespfennell / rustilocks Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 52 KB

Rust implemention of the Lox bytecode intepreter in Crafting Interpreters

License: MIT License

Rust 99.35% Dockerfile 0.65%

rustilocks's Introduction

Rustilocks

Work in progress implemention of the Lox bytecode intepreter in Robert Nystrom's book Crafting Interpreters.

This is a Rust binary crate built with the clap CLI library, so cargo run help will print useful things. The binary operates on 3 file formats:

  • .lox: Lox source code.

  • .loxa: Lox assembly. This is similar to the disassembly output in Crafting Interpreters except it can also be parsed back in and compiled to bytecode.

  • .rlks: Lox binary code. This is a serialization of a compiled Lox program, and can be run directly by the Rustilocks interpreter.

Goals

  • Fully implement the interpreter to really understand how such interpreters work.

  • Gain more experience with Rust.

Non-goals

  • Performance; prefer to use simple idiomatic Rust.

  • Implementing hash maps, stacks, etc. by hand, as is done in the book; instead, use the Rust standard library.

Status

  • Chapter 14-21: done

  • Chapter 22: in progress.

  • Chapter 24-29: to be started

rustilocks's People

Contributors

jamespfennell avatar

Watchers

 avatar  avatar  avatar

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.