tisp.1.md (1088B)
1 # tisp \- tiny lisp 2 3 Tisp programming language interpreter. Read and evaluate all files in order given, if file name 4 is `-` read from `stdin`. If no files are supplied launch REPL. 5 6 ## Options 7 8 #### -c COMMAND 9 10 Read *COMMAND* as a line of Tisp code and print result 11 12 #### -h 13 14 Print help and exit 15 16 #### -v 17 18 Print version info and exit 19 20 ## Usage 21 22 Run the program from the command line to type a single command and press enter 23 to see the result. 24 25 ``` 26 $ tisp 27 > (cons 1 2) 28 (1 . 2) 29 ``` 30 31 Alternatively you can pass a file name which will be opened and run, outputting 32 the result before exiting. 33 34 ``` 35 $ echo '((lambda (x) (+ x 1)) 10)' > inc.tsp 36 $ tisp inc.tsp 37 11 38 ``` 39 40 Commands can also be piped directing into Tisp through the command line. 41 42 ``` 43 $ echo '(= "foo" "foo")' | tisp 44 t 45 ``` 46 47 Or given directly to Tisp as an argument: 48 49 ``` 50 $ tisp -c "(reverse '(1/2 1/4 1/8 1/16))" 51 (1/16 1/8 1/4 1/2) 52 ``` 53 54 ## Author 55 56 Ed van Bruggen <ed@edryd.org> 57 58 ## See Also 59 60 tisp(7) 61 tsp(1) 62 63 See project at <https://edryd.org/projects/tisp> 64 65 View source code at <https://git.edryd.org/tisp> 66 67 ## License 68 69 zlib License