https://github.com/yahialm/lisp-interpreter
https://github.com/yahialm/lisp-interpreter
interpreter python
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yahialm/lisp-interpreter
- Owner: yahialm
- Created: 2024-04-30T15:54:06.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-30T15:57:20.000Z (about 1 year ago)
- Last Synced: 2025-01-11T04:51:16.586Z (4 months ago)
- Topics: interpreter, python
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python Lisp Interpreter
## Description of the project
This is a simple *Lisp interpreter* built using *Python* in *~ 420 lines* . It supports various features of Lisp, including data types, functions, loops, and arithmetic operations, also logic operators.
## Features
1. **Data Types** : Supports basic data types such as integers, floats, strings, and lists.
2. **Functions** : Define and call functions within the interpreter.
3. **Loops** : Support for loop constructs such as while, for ... etc
4. **Operators** : Arithmetic operators (+, -, *, /) and logic operators (and, or, not) are implemented.
## Get Started
1. Clone the project :
```
git clone https://github.com/yahialm/lisp-interpreter.git
```2. You can run the project using:
```
python3 main.py
```## Credits
*This project was inspired by the "Build Your Own compiler by Build your own X" book, where the initial chapters focus on building an interpreter before delving into compiler construction.*