Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.541.842 Times

Shelisp 2

  Date Added: April 02, 2010  |  Visits: 608

Shelisp

Report Broken Link
Printer Friendly Version


Product Homepage
Download (76 downloads)



Shelisp is a very short program that provides mechanisms for composing and running Unix shell (particularly bash) commands and constructs from Common Lisp. To run shelisp, say at the command prompt: lisp -load shelisp.lisp This should start CMU Common Lisp and provide the prompt, *. A more convenient form could be to start emacs, and issue the command M-x cmulisp that will start an `inferior lisp mode with cmu; then, say: (load "shelisp.lisp") The bang (!) escape to shell Now you can say (the * is already put there by cmulisp): * !ls And it will execute the shell ls command (by running a bash instance and passing the command to it. Of course, you are actually in Lisp. You can try this: * (defun factorial (x) (if (zerop x) 1 (* x (factorial (1- x))))) FACTORIAL * (factorial 33) 8683317618811886495518194401280000000 So, if you enter ``! the rest of the line (until the first end of line that is not escaped with a ``) is interpreted as a bash command and the result is printed on the standard output. Now try: * !echo ?(+ 2 3) zuzu 5zuzu The `? is the lisp escape. It is followed by an s-expression which is read, executed and printed (with princ) and the printed result replaces the `? and the expression in the shell command. It can be any Lisp expression. * !echo ?(+ 2/3 2/11) " <- this is a fraction" 28/33 <- this is a fraction * !echo ?(factorial 100) " <- this is a beegnum" 933262154439441526816992388562667004907159682643816 21468592963895217599993229915608941463 97615651828625369792082722375825118521091686400 0000000000000000000000 <- this is a beegnum Provided that you already entered the factorial definition above. You may escape the `? with a to have it transfered to the shell command. for example: * !echo ?(+ 2 3) ?(+ 2 3) Whats New in This Release: - Syntax for template strings was added, as well as wrappers for TeX/LaTeX, gs, ls, md5sum, mktemp, and other commands. - A recursive version of md5sum that can also compute signatures of directory contents is included.. Home page of the R2cl, the R (Splus) to Common Lisptranslator

Requirements: No special requirements
Platforms: Linux
Keyword: Command Lisp Running Shelisp Shell Shells Short Program System Unix
Users rating: 0/10

License: Freeware Size: 5.12 KB
USER REVIEWS
More Reviews or Write Review


SHELISP RELATED
Libraries  -  SQL::Shell 1.13
SQL::Shell is a command interpreter for DBI shells. SYNOPSIS use SQL::Shell; #Initialise and configure my $sqlsh = new SQL::Shell(%settings); $sqlsh->set($setting, $new_value); $value = $sqlsh->get($setting); #Interpret commands...
30.72 KB  
Libraries  -  libtecla 1.6.1
The tecla library provides UNIX and LINUX programs with interactive command line editing facilities, similar to those of the unix tcsh shell. In addition to simple command-line editing, it supports recall of previously entered command lines, TAB...
512 KB  
Utilities  -  Run with Parameters 1.0
Run with Parameters is a free utility that allows to run programs with arguments directly from Windows Explorer. There is no need to run a program from the command prompt. This free shell extension, adds a menu item to the right click context...
8.22 MB  
Utilities  -  dispatch 0.0.2a
dispatch is a multi-tier architecture object-oriented framework that allows access to methods and variables at the command line and in shell scripts or via a GUI. The project is in an early stage and you will probably not be able to compile it...
12.29 KB  
Miscellaneous  -  Avoid running multiple copies of pine 1.0
Avoid running multiple copies of pine script shows how to stop yourself from running multiple copies of a program (in this case, pine).
 
Development Tools  -  LMS Adaptation Training Equalizer 1.0
This is a short program that demonstrates how LMS adapatation works. Other (more complex) models exist and can be downloaded from Mathworks. This particular implementation is useful for someone trying to first understand the algorithm and how it...
10 KB  
Utilities  -  Iron Bars SHell 0.3a
Iron Bars SHell, or short ibsh is my first attempt to create a restricted working environment for Linux/Unix. I'm sure that many system administrators wish or have wished for a way to lock some/all users into a safe dungeon, where they can only do...
20.48 KB  
Utilities  -  Batch Login 2.0.1
BatchLogin is a shell connection virtualization program. It allows a user on a complex network to connect and execute scripts and commands upon groups of machines without having to deal with the connection specifics every time.
204.8 KB  
Utilities  -  Gnuplot 3.8.0
A command-driven interactive function and data plotting program. Visit Web site for complete set of features, documentation, tutorials and more.
3.06 MB  
Shell Enhancements  -  BackgroundCMD 1.0
BackgroundCMD is a command prompt folder background shell extension. It allows you to start a command prompt (an instance of cmd.exe) from within any directory that you're currently browsing. Simply right-click the directory background, and select...
117 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, SHELL & DESKTOP
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Linux Software  -  SLAX 6.0+
Slax is a modern, portable, small and fast Linux operating system with a modular approach and outstanding design. Despite its small size, Slax provides a wide collection of pre-installed software for daily use, including a well organized graphical...
190 KB  
Linux Software  -  GTK+ 2.5
GTK+, which stands for the GIMP Toolkit, is a library for creating graphical user interfaces for the X Window System. It is designed to be small, efficient, and flexible. GTK+ is written in C with a very object-oriented approach. Language bindings...
60 MB  
Shell & Desktop  -  Glunarclock 0.32.4
GNOME Lunar Clock Applet displays the current phase of the Moon as an applet for the gnome panel. In the properties box you can choose between a real image Features Pointing with the mouse at the applet...
522.24 KB  
Shell & Desktop  -  KOpenBabel 0.2
KOpenBabel is a graphical interface to Open Babel.[1] KOpenBabel can handle and convert over 70 chemical file formats. At this time, it can convert files, guess input file type and convert a large number of files with a single click. The user...
20.48 KB  
Shell & Desktop  -  Fekete 5
Icon theme for Linux For all possible desktop, and Linux distro Special additives: Suse's Yast icons. Xfce system icons, and archaic mimetypes icons Mandriva "special placed" status icons. Libreoffice icons.
71.59 MB  
Shell & Desktop  -  DesktopTools 02-alpha
DesktopTools is a collection of small utillities which help to make your daily life easier. Since the tools themself are rather small (projectwise) I keep them not as individual projects, but have them under this collective name.
102.4 KB  
Shell & Desktop  -  XFast 0.9
XFast is a slim and lightweighted desktop environment that incorporates X and Window Manager within the same project.
1.15 MB