The Hy Manual¶

PyPI: | https://pypi.python.org/pypi/hy |
---|---|
Source: | https://github.com/hylang/hy |
List: | hylang-discuss |
IRC: | irc://chat.freenode.net/hy |
Stack Overflow: | The [hy] tag |
Hy is a Lisp dialect that’s embedded in Python. Since Hy transforms its Lisp code into Python abstract syntax tree (AST) objects, you have the whole beautiful world of Python at your fingertips, in Lisp form.
To install the latest stable release of Hy, just use the command pip3 install
--user hy
. Then you can start an interactive read-eval-print loop (REPL) with
the command hy
, or run a Hy program with hy myprogram.hy
.
- Why Hy?
- Tutorial
- Hy Style Guide
- Documentation Index
- Command Line Interface
- Hy <-> Python interop
- Syntax
- Built-Ins
- ^
- .
- ->
- ->>
- and
- as->
- assert
- assoc
- await
- break
- cmp
- comment
- cond
- continue
- do
- doc / #doc
- dfor
- setv
- setx
- defclass
- defn
- defn/a
- defmain
- defmacro
- defmacro/g!
- defmacro!
- deftag
- del
- doto
- eval-and-compile
- eval-when-compile
- first
- for
- gensym
- get
- gfor
- global
- if / if* / if-not
- lif and lif-not
- import
- fn
- fn/a
- last
- lfor
- nonlocal
- not
- or
- of
- py
- pys
- quasiquote
- quote
- require
- rest
- return
- sfor
- cut
- raise
- try
- unless
- unpack-iterable, unpack-mapping
- unquote
- unquote-splice
- when
- while
- with
- with/a
- with-decorator
- with-gensyms
- xor
- yield
- yield-from
- Hy Core
- Model Patterns
- Internal Hy Documentation
- Extra Modules Index
- Contributor Modules Index
- Hacking on Hy