Skip to content

LIshy2/schema.zip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Schema.zip

This is a simple interpreter for the Scheme programming language written in Scala. It supports basic Scheme features such as arithmetic operations, conditionals, and function definitions.

Usage

The interpreter also supports the following command-line options:

  • --i: Launches the REPL (Read-Evaluate-Print Loop), which allows you to interactively enter and evaluate Scheme expressions.
  • --file <filename>: Reads the Scheme program from the specified file and executes it.

For example, to launch the REPL, run:

schemezip --i

To execute a Scheme program from a file named myprogram.scm, run:

schemezip --file myprogram.scm --i

Alt Text

Supported Features

The interpreter supports the following Scheme R5RS features:

Feature Supported
define
lambda
arithmetic
lists
vectors
ports
macros
call/cc

Running Tests

The interpreter comes with a suite of tests to ensure that it works correctly. To run the tests, run the Test class:

sbt test

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Scheme interpreter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages