https://github.com/honix/Lire
Visual programming tool based on Common Lisp
https://github.com/honix/Lire
lisp visual-programming
Last synced: about 1 month ago
JSON representation
Visual programming tool based on Common Lisp
- Host: GitHub
- URL: https://github.com/honix/Lire
- Owner: honix
- License: mit
- Created: 2016-08-22T20:12:31.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-11-06T17:55:02.000Z (over 5 years ago)
- Last Synced: 2024-10-28T05:59:28.673Z (6 months ago)
- Topics: lisp, visual-programming
- Language: Common Lisp
- Size: 2.22 MB
- Stars: 85
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lire
*"Maybe if lisp started today, we would a syntax of lisp look like trees"* -- **Hal Abelson** ([1986 lecture](https://www.youtube.com/watch?v=XYKRVNQ_MqE&feature=youtu.be&t=34m33s))
## In short
Lire is a Lisp expressions visual editor, it allows you to write programs using kind of [abstract syntax tree (AST)](https://en.wikipedia.org/wiki/Abstract_syntax_tree). It runs on top of Common Lisp.Lire is work in progress project. It is also my diploma thesis.
## Modeling list
Try to enter
```+ Enter 10 Enter * Enter Enter 25 Enter 2```This will make list
```(+ 10 (* 25 2))```## Try it out!
Check the [releases page](https://github.com/honix/Lire/releases). There is ready to go Windows executable, as it is little hard to build on this system.## Run from source
Lire is well tested to work with [SBCL](http://www.sbcl.org). Before run Lire check that you dependencies ready:**Linux (x86 and x64)**
- Ubuntu (apt-get): ```sudo apt-get install libffi6 libffi-dev libsdl2 libsdl2-image libsdl2-ttf```
- Fedora (dnf): ```sudo dnf install libffi libffi-devel SDL2 SDL2_image SDL2_ttf```
- ArchLinux (pacman): ```sudo pacman -S libffi sdl2 sdl2_ttf sdl2_image```
**Windows (x86)**
- Install [MinGW](https://sourceforge.net/projects/mingw/files/Installer) with ```mingw32-base``` package, and copy ```ffi.h``` and ```ffitarget.h``` from ```deps/windows``` to ```...\MinGW\include```
- Add ```...\MinGW\bin``` to the PATH environment variable (make able Common Lisp to call ```gcc```)
- Put the dll's to your SBCL folder, right with ```sbcl.exe``` (for x86 there is collected already, check ```deps/windows```)
**Lets go**
```cd your/path/to/Lire``` *and* ```sbcl --load lire.lisp```
## Controls
Action | Bind
-------|------
Place cursor (blue cross) or select node | Left-mouse-button click
Select area or drag node | Left-mouse-button drag
Accumulative select | Shift
Copy selected nodes | Ctrl-C
Paste copied nodes | Ctrl-V
Pan | Right-mouse-button drag
Zoom | Scroll
Create new node | (enter node name) Enter
Create list node (wraps arguments) | Space Enter
Create dot node (does nothing with argument) | . Enter
Switch to last node | Enter
Evaluate tree | Tab or Double-left click
Delete node | Delete
Connect nodes | Right-mouse-button drag from children to parent
Connect selected (last is a parent)| Ctrl-L
Lost connections | Ctrl-K
Move cursor up & down | Up-arrow & Down-arrow
Move cursor left & right | Left-arrow & Right-arrow