mkasberg / script-seed

🌱 Seed scripts for popular (& unpopular) scripting languages.
https://mkasberg.github.io/script-seed/
MIT License
11 stars 23 forks source link

Add a Lisp Script Seed #54

Open mkasberg opened 3 years ago

mkasberg commented 3 years ago

Add a Lisp "seed" script to the seeds folder. Basically, this would be an executable Lisp file (with #!/usr/bin/env sbcl --script or similar) that parses some simple command-line arguments (like -h or -t, see other scripts as examples) and prints a sentence or two to the command line. It's intended to demonstrate how to parse command line arguments and print something to the console in Lisp.

This might help:

See CONTRIBUTING.md, and feel free to ask for help or clarification here.

As a rough example, see #26.

mkasberg commented 2 years ago

E.x. Install sbcl with apt-get in the Dockerfile and use this script as a starting point:

#!/usr/bin/env -S sbcl --script

(write-line "Hello, world!")