Commit Graph

1560 Commits

Author SHA1 Message Date
Berker Peksag
f63f7a96a4 Merge pull request #530 from rwtolbert/rwtolbert/bugfix/hy2py_test_windows
Enabling hy2py test on Windows
2014-03-15 03:54:10 +02:00
Brendan Curran-Johnson
a210a673a2 and/or now short-circuit
Updated to reflect that and/or actually short-circuit now.
2014-03-14 16:53:10 -05:00
Bob Tolbert
bb567aab3e Enabling hy2py test on Windows 2014-03-14 10:21:07 -04:00
Berker Peksag
b598684dd9 Merge pull request #529 from rwtolbert/rwtolbert/features/hy_code_in_docs
All our code(-blocks) is belong to us.
2014-03-14 15:28:22 +02:00
Bob Tolbert
4798863e0f This change updates the required Pygments version to 1.6, which
supports Hy code.

All code-blocks in the documentation have been changed from
clojure to hy.

Also added docs/make.bat for Windows, so the top-level docs
target now works on Windows as well.
2014-03-14 09:01:47 -04:00
Berker Peksag
66dadf2d1a Add @bcj to AUTHORS. 2014-03-13 04:52:34 +02:00
Brendan Curran-Johnson
ec4607d644 Quoting works
Hy seems to support quoting. I'm not familiar enough with lisp/hy to say much more
2014-03-13 04:51:43 +02:00
Berker Peksag
a11f92da37 Merge pull request #492 from theanalyst/fix/coll
Replace forgotten instances of coll? function
2014-03-08 18:42:38 +02:00
Christian Weilbach
1a6b484ccb Remove profile export. 2014-03-02 12:24:05 +01:00
schuster-rainer
c1b83c0265 Fixed flake8 blank line issue 2014-03-01 01:00:46 +01:00
schuster-rainer
a49047b7a3 Added name and keyword functions to core 2014-03-01 00:34:45 +01:00
schuster-rainer
7fe997e9f7 Added name and keyword functions to core 2014-03-01 00:23:49 +01:00
Christian Weilbach
2e4b77267e Remove profile fn.
https://github.com/hylang/hy/pull/522#issuecomment-35972534
2014-02-26 00:03:42 +01:00
Christian Weilbach
46d77f69e6 Fix disassembly, add butlast, profile 2014-02-24 23:08:40 +01:00
Berker Peksag
8fe3b0edb1 Merge pull request #521 from theanalyst/docs/typos
Typo fixes in internals doc
2014-02-24 19:51:53 +02:00
Abhishek L
eae5cf08f4 Typo fixes in internals doc 2014-02-24 21:42:36 +05:30
Christopher Allan Webber
6bc1bee24a Answer the question: is Hy a lisp flavored python or vice versa? The latter! 2014-02-24 09:55:11 -06:00
Christian Weilbach
d388ee2fd5 Merge https://github.com/hylang/hy
Conflicts:
	hy/cmdline.py
2014-02-24 02:00:52 +01:00
Christopher Allan Webber
d93f304220 Fix errors on Python 3.
Some unicode issues were fixed for Python 2 in 75748eb05d
but broke pretty much all Python 3 exceptions in Hy.
2014-02-23 17:16:56 -06:00
Christopher Allan Webber
ecfd737fb9 Document how to supply docstrings to classes and class methods / lambdas
We want to encourage good practice, documentation-wise, amongst Hy
users!
2014-02-23 15:20:43 -06:00
Berker Peksag
6829d6fb3a Tweak the zipwith doc a bit and add @kirbyfan64 to AUTHORS. 2014-02-22 02:21:34 +02:00
kirbyfan64
d282d65cde Add zipwith 2014-02-22 02:14:27 +02:00
Berker Peksag
243a93499f Merge pull request #504 from algernon/h/import-error-reporting
hy/compiler.py: import only handles HySymbol and HyList, bail on others
2014-02-21 16:47:13 +02:00
James King
b97e0258e1 Fix for #497
One would expect the form:

    > (defmacro a (&rest b) b)
    > (a 1 2)

To return a tuple object but we have no Hy model so it returns a HyList.
Not sure if this is the right thing to do.
2014-02-19 00:09:37 -05:00
Morten Linderud
c1147c93a8 Merge pull request #510 from paultag/paultag/bugfix/fix-quoting-keywords
Fix up quoting keywords.
2014-02-18 00:14:53 +01:00
Paul Tagliamonte
e219973853 Fix up quoting keywords.
Fixes this:

=> :foo
'\ufdd0:foo'
=> `:foo
'\ufdd0\ufdd0:foo'
2014-02-17 18:00:31 -05:00
Berker Peksag
6e0486ba78 Update copyright year in docs. 2014-02-15 19:22:53 +02:00
Paul Tagliamonte
2a8a7f3f79 Merge branch 'master' into pr/484
Conflicts:
	AUTHORS
2014-02-15 11:57:43 -05:00
Paul Tagliamonte
b4b8fb44cf Merge branch 'master' into pr/487 2014-02-15 11:55:27 -05:00
Paul Tagliamonte
2f751df0f6 Merge branch 'master' into pr/489 2014-02-15 11:49:12 -05:00
Paul Tagliamonte
3c9947a3f6 add @microamp to authors 2014-02-12 23:59:36 -05:00
Paul Tagliamonte
58ebe4efec Merge pull request #501 from microamp/master
Fix issue #498
2014-02-12 23:57:24 -05:00
Gergely Nagy
6c846a24b1
hy/compiler.py: import only handles HySymbol and HyList, bail on others
When (import) encounters anything but a HySymbol or HyList, raise an
exception, as that is not valid in Hy. Previously, anything other than a
HySymbol or HyList was simply ignored, turning that particular import
into a no-op, which was both wrong and confusing.

Reported-by: Richard Parsons <richard.lee.parsons@gmail.com>
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2014-02-11 17:29:50 +01:00
Berker Peksag
d37bc10f93 Merge pull request #503 from rlp10/master
updated import documentation
2014-02-11 18:22:14 +02:00
Richard Parsons
6b4e3940aa updated import documentation 2014-02-11 15:54:55 +00:00
han semaj
24a1567b00 Implement every? and some 2014-02-11 21:42:56 +13:00
Paul Tagliamonte
fed3ec302c Merge pull request #499 from sdegutis/patch-1
Making readme more friendly
2014-02-10 18:38:42 -05:00
Steven Degutis
1af8e47a20 Making readme more friendly 2014-02-10 17:29:35 -06:00
Foxboron
66366b5bc9 Added defmulti 2014-02-05 16:07:48 +01:00
Berker Peksag
e6a6249eab Merge pull request #494 from theanalyst/fix/distinct
faster distinct: maintain seen items in a set
2014-02-03 21:22:03 -08:00
Abhishek L
a41a3c7edc faster distinct: maintain seen items in a set
* hy/core/language.hy: maintain the seen items in a set instead of a
  list in `distinct`. This is much faster for lookups.
2014-02-04 01:35:41 +05:30
Abhishek L
4432c00c59 Replace forgotten instances of coll? function
Replacing coll? wherever applicable
2014-02-03 21:48:30 +05:30
Gergely Nagy
e8dfe5bfb2
hy.contrib.walk: Add support for walking cons cells
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2014-02-01 18:36:57 +01:00
Gergely Nagy
fa24042cb0 hy.contrib.walk: Add (macroexpand-all)
This function will recursively perform all possible macroexpansions in
the supplied form. Unfortunately, it also traverses into quasiquoted
parts, where it shouldn't, but it is a useful estimation of macro
expansion anyway.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2014-02-01 18:34:12 +01:00
Gergely Nagy
817b4688d8 hy.contrib.walk: New contrib module for walking the Hy AST
The hy.contrib.walk module provides a few functions to walk the Hy AST,
and potentially transform it along the way. The main entry point
is (walk), which takes two functions and a form as arguments, and
applies the first (inner) function to each element of the form, building
up a data structure of the same type as the original. Then applies outer
(the second function) to the result.

Two convenience functions are provided: (postwalk) and (prewalk), which
do a depth-first, post/pre-order traversal of the form.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2014-02-01 18:34:12 +01:00
Berker Peksag
a318afea3a Port update_coreteam.py to Hy. 2014-01-31 03:43:03 +02:00
Abhishek L
4b54e3c748 Merge master onto pr/471
Conflicts:
	hy/core/language.hy
2014-01-30 21:50:23 +05:30
Abhishek L
6a497886b0 Merge master onto pr/486 2014-01-30 19:28:10 +05:30
halit
afff5fd93b Add new author 2014-01-30 15:55:30 +02:00
Berker Peksag
f0dd5ba74c Move all badges to top of README. 2014-01-30 08:31:59 +02:00