5 minutes Lisp in Python
gist.github.com
gist.github.com
(loop (print (eval (read))))
3-second Lisp ;-)This is just Python syntax in S-expressions.
Wikipedia: Lisp or LISP is a family of computer programming languages with a long history and a distinctive, fully parenthesized syntax.
The name LISP derives from "LISt Processing". Linked lists are one of Lisp languages' major data structures, and Lisp source code is itself made up of lists. As a result, Lisp programs can manipulate source code as a data structure, giving rise to the macro systems that allow programmers to create new syntax or even new domain-specific programming languages embedded in Lisp.
It also lists the following under "Syntax and semantics":
Symbolic expressions — Check
Lists — Check
Operators — Check
Lambda expressions — Check
Atoms — Check
Conses and lists — Nope (not linked lists)
S-expressions represent lists — Nope
List-processing procedures — Check
Shared structure — Nope (not linked lists)
Self-evaluating forms and quoting — Nope
Scope and closure — Kinda
List structure of program code — Nope
Evaluation and the Read-Eval-Print Loop — Nope
Control structures — Nope
The biggest difference which doesn't really make this a Lisp is probably that the code isn't a list, it's just a series of yield expressions. You can't really parse it as a list or manipulate it as a list. It's also missing cons/car/cdr which is sort-of the building block of Lisp languages!