8000 GitHub - fisherdarling/rslisp: Slytherlisp (LISP-like) Implementation built with Rust
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jun 8, 2022. It is now read-only.

fisherdarling/rslisp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SlytherLisp D7

This is the extra credit deliverable for Joseph and Fisher.

The deliverable is an experimental implementation of SlytherLisp in the Rust programming language. To run the main.rs executable:

First install the latest nightly rust:

curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly

And then run the code with:

cargo run

The slytherlisp code that is executed is:

(define (add-new x y) 
    (+ x y)) 

(add-new 1 1)

The features are very minimal, but there is a handwritten, lookahead-based parser, and a couple of builtin functions. The current environment supports define, +, and *.

About

Slytherlisp (LISP-like) Implementation built with Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0