Giter Site home page Giter Site logo

cl-repl's Introduction

CL-REPL

Build Status License GitHub tag Quicklisp dist

Warning; WIP

The software is still alpha quality.
The functionalities are incomplete and may cause unkown bugs.

Overview

This project aims to provide a beginner-friendly REPL for Common Lisp with rich functionalities, such as IPython for Python.

What this project tries to achieve are listed here.

  • powerful line editting with gnu readline.
  • tab-completion of symbols.
  • simple installation instruction.
  • code editting with text editor.
  • useful debugger & inspector. (incomplete)
  • syntax highlighting of input texts.
  • implementation independence. (only SBCL supported)

Screenshots can be found here.

Installation

We recommend to use roswell.
CL-REPL can be installed via roswell as follows.

$ ros install koji-kojiro/cl-repl

Before installation, please ensure that gnu readline is installed.
If you use OSX, you might need to execute following command.

$ brew link --force readline

Also, ensure that your terminal support 256 colors.

Note about installation via Roswell

If you installed roswell with normal configurations, cl-repl will be located in ~/.roswell/bin.   To use cl-repl from the command line, please ensure the PATH variable includes ~/.roswell/bin.

Usage

$ cl-repl

or

$ ros repl

Some useful magic commands are ready to use. To list available commands:

CL-USER> %help

Configuration

You can customize CL-REPL by editting ~/.replrc. You can change appearance, add your own commands, and do anything you want when startup.
An example can be found here.

Syntax highlighting

Syntax highlighiting of input area is new in v0.5.0. If you want to disable it, put the following in your .replrc.

(disable-syntax)

execute shell

If the line starts with !, excute it as shell command, e.g. !ls -a.

%edit magic

Line editting in repl is sometimes painful. CL-REPL allows yot to edit code with your favorite text editor.

CL-REPL> %edit <filename>

CL-REPL invokes a text editor specified by $EDITOR.
After editting code, save and close it. Then repl will start to evaluate it.
If <filename> is not supplied, a temporary file will be created and deleted after evaluation.

We've be sure the following editors work properly.

  • vi & vim
  • GNU Emacs
  • joe's own editor
  • Lem

Contributing

Don't hesitate to open issues or to send PRs.
Any suggestions are always welcomed.

Author

TANI Kojiro ([email protected])

License

CL-REPL is distributed under GPLv3.

cl-repl's People

Contributors

koji-kojiro avatar vindarel avatar celaleddin avatar fukamachi avatar ryukinix avatar egao1980 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.