Giter VIP home page Giter VIP logo

simple_scheme's Introduction

This is simple scheme.

A scheme implementation by c++.

I refer Anthony C. Hay's code.
[Lisp interpreter in 90 lines of C++] (http://howtowriteaprogram.blogspot.tw/2010/11/lisp-interpreter-in-90-lines-of-c.html)

It looks like sicp 4.1.1 ~ 4.1.4 example. [Metacircular Evaluator (sections 4.1.1-4.1.4)] (http://mitpress.mit.edu/sicp/code/index.html)

environment relative function:

  • extend_environment
  • create_primitive_procedure
  • set_variable
  • set_variable_value // set!
  • lookup_variable_value
  • print_env_content

simple scheme has bare-metal version, support:

  • stm32f4discovery
  • p103 qemu
  • rpi2

compile step: p103:
cd p103
./ln.sh
make

you can use p103 qemu to run it
(https://github.com/beckus/qemu_stm32.git)
qemu_stm32/arm-softmmu/qemu-system-arm -M stm32-p103 -kernel mymain.bin -nographic
qemu_stm32/arm-softmmu/qemu-system-arm -M stm32-p103 -kernel mymain.bin -display sdl [demo video] (https://youtu.be/P7K5zxa5MlE)

On linux, you can compile by make RL=1 for readline version.

simple_scheme's People

Contributors

descent avatar

Stargazers

Eli avatar Eason Wang avatar  avatar gitkeniwo avatar  avatar Kvar Izunia avatar BlancosWay avatar  avatar  avatar shuhung avatar

Watchers

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.