Janet: A Practical, Embeddable Lisp

News

  • New Steel Bank Common Lisp (SBCL) release:

    https://www.sbcl.org/news.htmlj

  • Next week (really?): New System Crafters video on workflows for managing many tasks with Org agenda bulk actions!

Let's Look at Janet!

https://janet-lang.org/

The code we worked on near the end:

(def get-command-grammar
  '{:target (<- (some (range "az")))
    :get "get "
    :main (* :get :target)})

(defn process-command []
  (def input (file/read stdin :line))
  (print "The command was: " input)
  (pp (peg/match get-command-grammar input))

  # Recursive loop!
  (process-command))

(defn main
  [& args]
  (process-command))

Enjoyed this stream? Explore our hands-on courses for deeper, structured learning on Guile Scheme and more.

Get the System Crafters Newsletter
Updates on open source tools, tutorials, and community projects. We'll also occasionally let you know about new courses and resources.
Name (optional)
Email Address