Scheme is a dialect of the Lisp programming language known for its simplicity and elegance. It's a functional language with a strong emphasis on recursion and higher-order functions. Scheme is often used for teaching programming concepts and as a foundation for other languages.
This Python-based interpreter provides a basic implementation of the Scheme language. It supports a subset of Scheme features, allowing you to explore the language's core concepts and syntax.
- Basic Arithmetic: +, -, *, /
- Comparison Operators: =, <, >, <=, >=
- Boolean Values: #t, #f
- Conditional Expressions: if, cond
- Definitions: define
- Lambda Expressions: lambda
- Procedure Application: Function calls
- Lists: Creation, manipulation, and access
- Special Forms: quote, car, cdr, cons
To run the interpreter, execute the interpreter.py script from your terminal. This will start a read-eval-print loop (REPL) where you can enter Scheme expressions.