tisp

tiny lisp
git clone git://edryd.org/tisp
Log | Files | Refs | README | LICENSE

tisp.1 (1334B)


      1 .TH TISP 1 "March 2021" "tisp 0.0.0" 
      2 .PP
      3 .SH NAME
      4 tisp \- tiny lisp
      5 .PP
      6 .SH SYNOPSIS
      7 tisp [-hv] [-c COMMAND] [-] [FILE ...]
      8 .PP
      9 .SH DESCRIPTION
     10 .PP
     11 Tisp programming language interpreter.  Read and evaluate all files in order given, if file name is '-' read from 'stdin'. If no files are supplied launch REPL.
     12 .PP
     13 .SH OPTIONS
     14 .TP
     15 \fB-c COMMAND\fP
     16 Read \fICOMMAND\fP as a line of Tisp code and print result
     17 .PP
     18 .TP
     19 \fB-h\fP
     20 Print help and exit
     21 .PP
     22 .TP
     23 \fB-v\fP
     24 Print version info and exit
     25 .PP
     26 .SH USAGE
     27 .PP
     28 Run the program from the command line to type a single command and press enter to see the result.
     29 .PP
     30 .RS 4
     31 .EX
     32 
     33 $ tisp
     34 > (cons 1 2)
     35 (1 . 2)
     36 
     37 .EE
     38 .RE
     39 Alternatively you can pass a file name which will be opened and run, outputting the result before exiting.
     40 .PP
     41 .RS 4
     42 .EX
     43 
     44 $ echo '((lambda (x) (+ x 1)) 10)' > inc.tsp
     45 $ tisp inc.tsp
     46 11
     47 
     48 .EE
     49 .RE
     50 Commands can also be piped directing into Tisp through the command line.
     51 .PP
     52 .RS 4
     53 .EX
     54 
     55 $ echo '(= "foo" "foo")' | tisp
     56 t
     57 
     58 .EE
     59 .RE
     60 Or given directly to Tisp as an argument:
     61 .PP
     62 .RS 4
     63 .EX
     64 
     65 $ tisp -c "(reverse '(1/2 1/4 1/8 1/16))"
     66 (1/16 1/8 1/4 1/2)
     67 
     68 .EE
     69 .RE
     70 .SH AUTHOR
     71 .PP
     72 Ed van Bruggen <ed@edryd.org>
     73 .PP
     74 .SH SEE ALSO
     75 .PP
     76 tisp(7) tsp(1)
     77 .PP
     78 See project at <https://edryd.org/projects/tisp>
     79 .PP
     80 View source code at <https://git.edryd.org/tisp>
     81 .PP
     82 .SH LICENSE
     83 .PP
     84 zlib License 
     85 .PP
     86