Giter Club home page Giter Club logo

sicp's Introduction

Scheme in Rust

This is an experimental Scheme in Rust. It serves as an accompaniment to reading SICP, and has no purpose outside of that.

Tasks

EvaluationResult needs spans

Error reporting could be improved by adding spans to EvaluationResult

Test for error messages reporting locations

Any error about evaluation or parsing should always carry positional information. Refactor ReplError to carry a span and implement fmt::Display

Refactor

(+12) should not give invalid function head expression Int(12)

+12 should be parsed as a symbol. It’s also weird that +12 doesn’t just work now, because shouldn’t it be a Sym(+) followed by Int(12)? CAVEAT: our behaviour mirrors that of Scheme’s reference interpreter exactly, so I don’t know that it’s a bug at all.

Ignore this for now.

Add other basic arithmetic operations

subtraction, division multiplication

Add floating point numbers

floating point numbers “pollute” i.e. if there’s one floating point number anywhere in the expression, the result is fp, otherwise int.

Evaluate thiserr and eyre

Created: [2020-08-26 Wed 17:58] Ref: main.org RustConf talks

sicp's People

Contributors

adimit avatar

Watchers

 avatar James Cloos 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.