Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdearman committed Jun 23, 2024
1 parent ec4ca65 commit ccda8f9
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions examples/scratch.scm
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
;; Lust is a simple Lisp-like language based on the idea of term rewriting.
;; It is a functional language with a simple syntax and semantics.
;; Terms are rewritten using pattern matching and substitution.
;; The language is dynamically typed and has first-class functions.

;; Special Forms:
;; - def: define a variable
;; - let: bind variables in a scope
;; - match: pattern match a term
;; - list: create a list
;; - fn: create a lambda function
;; - and: short-circuiting logical and
;; - or: short-circuiting logical or
;; - quote: prevent evaluation of a term
;; - quasiquote: prevent evaluation of a term, except for unquoted terms
;; - unquote: evaluate a term in a quasiquote
;; - unquote-splicing: evaluate a term in a quasiquote and splice the result
;; - module: define a module

;; def declarations
(def x 42)

(def (fib n)
Expand Down

0 comments on commit ccda8f9

Please sign in to comment.