Initial commit of newLISP.
[newlisp.git] / guiserver / word-count.lsp
blobde3e0271236d1cf978ff9e01e4765e90865d764e
1 ;; demo script: word-count.lsp
2 ;; this script is registered in the Tool menu of newlisp-edit.lsp
4 (set 'content (read-file (main-args 2)))
6 (println
7 "Words: " (length (find-all "\\w+" content))
8 " Bytes: " ((file-info (main-args 2)) 0))
10 (exit)