[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: [ANN] lcl - a command-line evaluator library
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sun, 31 Jan 2010 17:49:15 -0200
Although Lua is nice :-), sometimes it's best to provide the user with a
simple shell-like command-line interface. But if you do so, you'll have
to parse and execute the line. lcl does that for you. A line like
print us $me and $you
is evaluated in Lua as
print("us",me,"and",you)
lcl also supports s-expressions (but in immediate mode with no support
for special forms). An expression like
(print 'us' me "and" you)
is evaluated in Lua as
print("us",me,"and",you)
lcl is in the public domain and is available at
http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lcl
Checksum and other data at
http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/release.txt
Enjoy. All feedback welcome.
--lhf