sexpressions
S-expressions, or symbolic expressions, are a notation for representing nested list data that is used to encode both program code and data in Lisp and many Lisp-inspired languages. An S-expression is either an atom or a list. A list is written as a sequence of one or more elements enclosed in parentheses, where each element can be an atom or another list. Atoms commonly include symbols, numbers, strings, and keywords.
Originating in the 1950s with John McCarthy for the Lisp language, S-expressions provide a simple, uniform syntax
Syntax and evaluation: In Lisp, the meaning of an S-expression depends on context. A list beginning with
Usage and impact: S-expressions are central to Common Lisp, Scheme, Clojure, Emacs Lisp, and other Lisp dialects.
Example: A simple function definition in Lisp style: (define (square x) (* x x)). A nested expression