Paul Tagliamonte
6d25237093
Merge branch 'master' into pr/658
2014-11-15 07:54:24 -05:00
Tianon Gravi
96410f506e
Add a dedicated lisp-if-not
/ lif-not
macro
...
This is in parallel to `if` / `if-not` (so not without precedent). :)
2014-11-06 12:44:15 -07:00
Berker Peksag
377c3ec5ee
Update versionadded directive for merge-with.
2014-10-09 02:58:42 +03:00
bismigalis
76d7e3479a
Added merge-with
2014-10-02 18:50:04 +04:00
Foxboron
89dec9ef44
Fixed example to be streamlined
2014-09-08 16:57:52 +02:00
Paul Tagliamonte
e3646bb874
add @microamp
2014-09-06 08:49:05 -04:00
han semaj
99db02668b
Fix 'some' (first logical true value or nil)
2014-09-04 21:29:38 +12:00
Morten Linderud
bc0ef3ea14
Merge pull request #641 from microamp/issue-638
...
Fix #638 : Make nth return default value when out of bounds
2014-09-03 14:28:01 +02:00
han semaj
6ca47df34c
Include optional arg in docs (nth)
2014-09-03 20:53:28 +12:00
Foxboron
325f873f1e
Fixed (read) docs as mentioned inn #641
2014-09-02 22:26:47 +02:00
han semaj
ecc664337d
Make nth return default value when out of bounds
2014-08-23 23:35:31 +12:00
han semaj
23f31d4ac1
Reimplement butlast in terms of drop-last
2014-08-22 21:51:12 +12:00
han semaj
7f5c8e39d8
Implement drop-last
2014-08-22 21:09:59 +12:00
Tianon Gravi
8d893ead07
Add more complex example of (read) usage
2014-08-19 03:04:08 -06:00
Tianon Gravi
cf7e5ed3c0
Fix RST code-block rendering for (read) examples
...
Also removed trailing whitespace and added a blank line to separate the discrete examples
2014-08-19 02:55:47 -06:00
Paul Tagliamonte
37fc9e08d0
Merge branch 'master' into pr/635
2014-08-18 12:10:08 -04:00
han semaj
3f1a24bfe3
Implement interleave and interpose
2014-08-17 14:53:57 +12:00
Foxboron
c8adf9b726
Renamed stdin -> from-file and removed apply from tests + docs
2014-08-14 18:18:05 +02:00
Foxboron
f7675c829e
Added read and tests
2014-08-12 18:37:46 +02:00
Abhishek L
1da6d0af43
docs: fix decorator to reflect multiple decorators
...
* docs/language/api.rst: the `with-decorator' builtin supports multiple
decorators which it applies in order. Docs are updated to reflect this
2014-05-24 17:35:39 +05:30
Berker Peksag
0f0c4227b6
Merge pull request #604 from Duta/master
...
Minor typo
2014-05-17 22:29:44 +03:00
Bertie Wheen
02fa251175
Minor typo
...
Sorry for tiny commits :P
2014-05-17 19:04:41 +01:00
Bertie Wheen
a102a268a9
Rephrased confusing comment
2014-05-17 18:46:01 +01:00
Tuukka Turto
726d1735db
Merge branch 'master' into pr/571
...
Conflicts:
AUTHORS
tests/native_tests/core.hy
2014-05-13 09:32:51 +03:00
Abhishek L
4f74652c73
the mega typo fix commit
...
Wow! much typos! such fix!
2014-05-05 23:47:14 +05:30
Abhishek L
f2beef6e70
Move contributing from hacking docs to repo root
...
A CONTRIBUTING.rst is added to the root of the repo, as Github
automatically recognizes this for incoming PRs
(ref: https://github.com/blog/1184-contributing-guidelines )
Most of the information is directly borrowed from the existing hacking
docs, which is restructured to refer to this file instead for
contribution guidelines
2014-05-03 17:37:30 +05:30
Abhishek L
ad0191f343
Merge master onto pr/580
2014-05-02 19:37:54 +05:30
Tuukka Turto
d539f73d4d
correct ..versionadded:: for defmain
...
my mistake, should have spotted before merging and pushing
2014-05-02 12:27:19 +03:00
Tuukka Turto
b1a928037e
Merge branch 'master' into pr/526
2014-05-02 10:34:37 +03:00
Tuukka Turto
ddcf192da4
Merge branch 'master' into pr/524
2014-04-30 10:16:30 +03:00
Berker Peksag
cdea12b276
Make hy2py public.
2014-04-30 01:51:21 +03:00
pyos
f02e044719
Move the documentation for zipwith
to the correct place.
2014-04-29 18:04:21 +04:00
pyos
8e4b21103c
Reimplement some built-ins in terms of the standard library.
...
As a result:
* functions such as `nth` should work correctly on iterators;
* `nth` will raise `IndexError` (in a fashion consistent with `get`)
when the index is out of bounds;
* `take`, etc. will raise `ValueError` instead of returning
an ambiguous value if the index is negative;
* `map`, `zip`, `range`, `input`, `filter` work the same way (Py3k one)
on both Python 2 and 3 (see #523 and #331 ).
2014-04-29 18:03:43 +04:00
Tuukka Turto
01fa9d6a3c
document set-comp
2014-04-28 21:35:28 +03:00
Tuukka Turto
3a66a2d1be
document dict-comp and genexpr
2014-04-28 21:09:06 +03:00
Matthew Wampler-Doty
fa5f51e0f1
Adding Version Added 0.10.1
2014-04-25 08:19:22 -05:00
Ryan Gonzalez
4f8ab5af8c
Changed conf.py to use RTD theme if available
2014-04-24 00:17:58 +03:00
Matthew Wampler-Doty
834b0019a7
Fixing doto
to be API compatible with Clojure's doto
2014-04-21 12:35:56 -07:00
Tuukka Turto
f4b67e8bd8
documentation for doto
...
relates #567
2014-04-21 13:28:08 +03:00
Allison Kaptur
a76c3d1f51
add make flow to the hacking docs
2014-04-16 13:40:21 -04:00
Morten Linderud
e5e1489f0f
Merge pull request #553 from berkerpeksag/missing-versionadded
...
Add a missing versionadded directive to the lisp-if/lif documentation.
2014-04-13 17:33:20 +02:00
Berker Peksag
c5dfba3c4f
Fix a code-block in the lambda documentation.
2014-04-13 18:04:42 +03:00
Berker Peksag
07b9371cb8
Add a missing versionadded directive to the lisp-if/lif documentation.
2014-04-13 17:42:48 +03:00
Paul Tagliamonte
217f3ad65f
Merge branch 'master' into pr/515
2014-04-10 22:52:41 -04:00
Christopher Allan Webber
d5194f23fa
Properly add yield-from, using python's real "yield from".
...
The yield-from that existed previously wasn't actually implementing the
full complexity of "yield from":
http://legacy.python.org/dev/peps/pep-0380/#formal-semantics
... this includes passing along errors, and many other things.
Also removes the yield-from backport macro, since it does not seem
possible at present to conditionally build macros.
Thus, there is no longer yield-from on pre-python-3.3 systems.
Includes updated docs and tests to reflect all this.
2014-04-10 14:07:49 -05:00
Christopher Allan Webber
774aad2ca8
defmain macro; handles the whole if __name__ == __main__ / main function dance
...
Example:
(defmain [&rest args]
(print "now we're having a fun time!")
(print args))
Which outputs:
$ hy test.hy
now we're having a fun time!
(['test.hy'],)
Includes documentation and tests.
2014-04-10 13:58:38 -05:00
Christopher Allan Webber
f3d978c5a3
Added lisp-if (or lif), with tests and documentation.
...
Now everyone can get along and everyone can have a pony, and that pony is
actually a unicorn that shoots rainbows from its horn.
2014-04-10 13:51:28 -05:00
Abhishek L
378ffae6f7
Fix versionadded in docs to 0.10.0 release
2014-04-10 23:51:32 +05:30
Berker Peksag
3528cc8278
Kill kwapply.
...
Closes #433 .
2014-04-09 20:10:31 +03:00
Christopher Allan Webber
fa69d80b8d
Merge pull request #528 from bcj/patch-2
...
and/or now short-circuit
2014-03-16 15:27:05 -05: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
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
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
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
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
6e0486ba78
Update copyright year in docs.
2014-02-15 19:22:53 +02:00
Paul Tagliamonte
2f751df0f6
Merge branch 'master' into pr/489
2014-02-15 11:49:12 -05:00
Paul Tagliamonte
58ebe4efec
Merge pull request #501 from microamp/master
...
Fix issue #498
2014-02-12 23:57:24 -05: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
Foxboron
66366b5bc9
Added defmulti
2014-02-05 16:07:48 +01:00
Abhishek L
4b54e3c748
Merge master onto pr/471
...
Conflicts:
hy/core/language.hy
2014-01-30 21:50:23 +05:30
Berker Peksag
b8ef4ccc3c
Update tutorial.
...
- Fix a couple of typos
- Use open() built-in instead of file()
- Update (for) and (with) examples
2014-01-30 08:27:25 +02:00
Abhishek L
bb5dac8af9
Merge master onto pr/473
2014-01-29 19:31:46 +05:30
Berker Peksag
65f8bd2b91
Document hyc command line options.
2014-01-25 21:43:08 +02:00
Berker Peksag
d842426308
Reorganize documentation.
2014-01-25 21:01:16 +02:00
Nicolas Dandrimont
52144820ca
Add a cons object and related mechanisms
...
Closes : #183
2014-01-23 23:08:52 +01:00
Nicolas Dandrimont
fad67bd8f5
Merge branch 'master' into pr/468
2014-01-23 22:14:23 +01:00
Nicolas Dandrimont
b99af411c8
Merge branch 'master' into pr/461
...
Conflicts:
tests/native_tests/native_macros.hy
2014-01-23 21:57:17 +01:00
Nicolas Dandrimont
7b8f6fa9e4
Merge branch 'master' into pr/456
2014-01-23 21:43:09 +01:00
Abhishek L
10f1f24a18
Adding a simple `identity' function
...
* hy/core/language.hy: Adding a simple `identity` function that returns
the argument supplied to it
* docs/language/core.rst: Updated docs with identity function
2014-01-22 00:56:28 +05:30
Abhishek L
fdd2ed39f0
Merge master onto pr/460
2014-01-20 21:15:43 +05:30
Jack Hooper
ca40113e37
Corrected --spy cmdoption (I think)
...
For the --spy commmand line option, it currently says '''Print equivalent Hy code...'''. Now, I haven't actually gotten around to installing Hy on my computer yet, so I haven't had a chance to test this out to make sure, but from the looks of the code example, it looks as though it is printing out the equivalent Python code of the executed Hy code, not the other way around. This would certainly make more sense. As such, I have changed the word 'Hy' to 'Python' so that the documentation more accurately reflects what (one assumes) is going on.
2014-01-20 14:29:57 +11:00
Gergely Nagy
e90b24b73a
hy/core/macros.hy: Add an (if-not) macro
...
Sometimes it is better to start with the false condition, sometimes that
makes the code clearer. For that, the (if-not) macro, which simply
reverses the order of the condition blocks, can be of great use.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2014-01-18 22:56:20 +01:00
Gergely Nagy
21709f0199
hy/core/macros.hy: Add defn-alias / defun-alias
...
In the same vein as defmacro-alias, this implements defn-alias /
defun-alias, which does essentially the same thing as defmacro-alias,
but for functions.
Signed-off-by: Gergely Nagy <algernon@balabit.hu>
2014-01-18 16:09:35 +01:00
Jack Hooper
d028b8a7b2
Added closing bracket ']'
2014-01-18 22:22:33 +11:00
Jack Hooper
06d41f7cd0
Corrected chessboard example
...
A chessboard is 8 x 8. Yours was 8 x 9.
2014-01-18 16:33:40 +11:00
Nicolas Dandrimont
8447a9dfdb
Merge branch 'master' into pr/455
2014-01-17 20:35:44 +01:00
Nicolas Dandrimont
331165da32
Merge branch 'master' into pr/450
2014-01-17 20:31:01 +01:00
Nicolas Dandrimont
27962fb441
Light copy-editing
2014-01-17 20:28:24 +01:00
Nicolas Dandrimont
eedebd12b3
Merge branch 'master' into pr/443
2014-01-17 20:25:09 +01:00
rubberduckdev
d273ad112f
Rewording and reformatting plaintext
...
Is this rewording unwieldy?
2014-01-17 18:20:41 +02:00
Gergely Nagy
59ca6e4cd0
docs: Document (defmacro-alias)
...
Signed-off-by: Gergely Nagy <algernon@balabit.hu>
2014-01-17 12:05:35 +01:00
Gergely Nagy
ac49818956
docs: Correct the defmacro syntax in the API docs
...
Signed-off-by: Gergely Nagy <algernon@balabit.hu>
2014-01-17 12:02:19 +01:00
f
8ec2719e2d
Visual and text changes in quickstart page. Kind of beautifying. It also
...
includes transparent versions of Cuddles.
2014-01-17 04:02:33 +02:00
Foxboron
a35ecc41bd
Fix reader macros to actually be macros
2014-01-17 01:07:47 +01:00
Gergely Nagy
8de61c65e7
Merge pull request #447 from rubberduckdev/patch-2
...
Missing comma
2014-01-16 05:14:58 -08:00
Berker Peksag
685a1b80fa
Silence a "Title underline too short" warning.
2014-01-16 14:08:18 +02:00
Berker Peksag
60e66476f5
Merge pull request #449 from rubberduckdev/patch-3
...
Correcting a typo
2014-01-15 18:01:50 -08:00
Berker Peksag
e919f75aaf
Merge pull request #446 from rubberduckdev/patch-1
...
Missing "of"
2014-01-15 17:59:01 -08:00
Yuval Langer
e50ca4fc07
Correcting typos.
2014-01-16 03:54:44 +02:00
rubberduckdev
cd66f18e2e
Rewording
...
Not sure if the rewording is much better.
2014-01-16 02:40:46 +02:00
rubberduckdev
6c15f14ff7
Correcting a typo
2014-01-16 02:13:05 +02:00
rubberduckdev
7d5399570c
Missing comma
2014-01-16 01:45:34 +02:00
rubberduckdev
65e9d5ae7e
Missing "of"
2014-01-16 01:25:43 +02:00
Berker Peksag
94e1fc40f7
Fix a markup error in the apply doc.
...
See http://docs.hylang.org/en/latest/language/api.html#apply
for the example.
2014-01-14 06:08:54 +02:00
Paul Tagliamonte
8ababcb905
add clinton
2014-01-13 20:24:12 -05:00
Clinton N. Dreisbach
47d67b0062
Added loop/recur macro for tail-call optimization
2014-01-12 14:02:27 -05:00
Abhishek L
bd53416a72
docs: update docs with coll? functionality
2014-01-12 15:52:14 +05:30
Clinton N. Dreisbach
3907c5bc53
Added docs for unquote and unquote-splice
2014-01-11 23:29:48 -05:00
Clinton N. Dreisbach
18c19043c7
Add note about underscore/dash shadowing
2014-01-11 09:58:47 -05:00
Clinton N. Dreisbach
977b47d3b4
Noted that args are optional with apply
2014-01-10 16:14:20 -05:00
Clinton N. Dreisbach
c03e798356
Added docs for apply
2014-01-10 16:09:56 -05:00
Nicolas Dandrimont
5017e3c211
Add documentation for the attribute access DSL
2014-01-09 18:36:24 +02:00
Paul Tagliamonte
d4357fe35c
Add @kenanb's logo to the docs. It's so amazing.
...
Thanks so much! Read more at:
http://www.kenanb.com/posts/Hy-Programming-Language-Logo.html
2014-01-08 20:51:17 -05:00
Will Kahn-Greene
0999886d35
Update quickstart.rst
...
Nixing the float: left inducing thing so that it looks better
on RTD.
2014-01-06 17:13:04 -05:00
Berker Peksag
d9d113670e
Add versionadded directives for macroexpand and macroexpand-1.
2014-01-05 22:16:29 +05:30
Vasudev Kamath
5b3f6879c6
Added .. versionadded: 0.9.13 and quoted the arguments. Also added
...
missing true for python code generation example.
Signed-off-by: Vasudev Kamath <kamathvasudev@gmail.com>
2014-01-05 19:55:41 +05:30
Vasudev Kamath
1bdf0d04c3
Added documentation for new core function disassemble
...
Signed-off-by: Vasudev Kamath <kamathvasudev@gmail.com>
2014-01-05 19:41:38 +05:30
Nicolas Dandrimont
a1895f635c
reword the four steps a bit
2014-01-03 17:19:06 +01:00
Nicolas Dandrimont
1d5847823b
more precise disclaimer
2014-01-03 17:19:06 +01:00
Nicolas Dandrimont
72a300c6e3
Add some documentation about models
2014-01-03 17:19:06 +01:00
Nicolas Dandrimont
9e02eaca26
Whitespace fix
2014-01-03 17:19:06 +01:00
Nicolas Dandrimont
88451bbeaa
Merge branch 'better-macroexpand' of https://github.com/sbp/hy into sbp-better-macroexpand
...
Conflicts:
hy/core/language.hy
tests/native_tests/language.hy
2014-01-02 00:49:40 +01:00
Bob Tolbert
032200bcb4
Some small doc fixes
...
This cleans up a number of doc warnings, including a bad
underline for zero?
While there, added a nil? function to match up with the
new nil is None.
Also un-hid myself from coreteam.
2013-12-31 16:14:05 -07:00
Paul Tagliamonte
eeef65b505
Change the signature of (for) and (with).
...
(for) is restored to clojure-like flatness.
(with) can be used without the nested list if you don't care about the
name.
Tests and examples updated.
2013-12-31 13:35:31 -05:00
Bob Tolbert
05899423df
Changing --show_tracebacks to --show-tracebacks
2013-12-31 09:56:03 -07:00
Bob Tolbert
5040c29946
Cleaning up some comments from berker
2013-12-31 09:56:03 -07:00
Paul Tagliamonte
931ce889f9
s/rply/rpython/
2013-12-31 11:26:31 -05:00
Bob Tolbert
a5e46fdc04
Merge pull request #402 from paultag/paultag/docs/compiler
...
Paultag/docs/compiler
2013-12-31 08:25:37 -08:00
Berker Peksag
9b1990901c
Fix |Unknown directive type "todo"| error.
2013-12-31 15:51:58 +02:00
Foxboron
426d34288f
Added docs and one small bug fix in defreader
2013-12-31 15:46:21 +02:00
Paul Tagliamonte
b011048b41
allow one-shot merge
2013-12-30 18:02:03 -05:00
Paul Tagliamonte
a5b56be83e
Merge branch 'master' of github.com:hylang/hy
2013-12-30 17:33:07 -05:00
Paul Tagliamonte
67fd0ddbbe
Document the compiler a little.
2013-12-30 17:32:57 -05:00
Bob Tolbert
d7956d03c3
Adding documentation for flatten
2013-12-31 03:49:37 +05:30
Paul Tagliamonte
893c2bc46e
Merge branch 'master' into pr/400
2013-12-30 16:49:32 -05:00
Bob Tolbert
4e3b6fd4cf
Add some docs for gensym and siblings
2013-12-30 14:42:55 -07:00
Foxboron
d82636958b
added for and with macros
...
Fixed up anaphoric.hy and added the tests too native_tests/__init__.py
added __init__.hy
2013-12-29 16:50:21 +01:00
Paul Tagliamonte
29c9e566e1
Merge branch 'paultag/ana/if' of github.com:paultag/hy into paultag/ana/if
2013-12-26 17:57:52 -05:00
Abhishek L
c69c14cc7d
contrib/anaphoric: More anaphoric macros added
...
* hy/contrib/anaphoric.hy: The following anaphoric macros have been
added
`ap-reject` : Opposite of ap-filter, yields the elements when a `pred`
evaluates to false
`ap-dotimes` : Execute body forms (possibly for side-effects) n times
with `it` bound from 0 to n-1
`ap-first` : return the first element that passes predicate
`ap-last` : return the last element that passes predicate
`ap-reduce`: anaphoric form of reduce that allows `acc` and `it` to
create a function that is applied over the list
* docs/contrib/anaphoric.rst: updated docs to reflect these changes
* tests/__init__.py: updated to explicitly include tests for anaphoric
macros
2013-12-26 05:57:06 +02:00
Paul Tagliamonte
c7070f82b5
Add ap-if docs.
2013-12-25 20:28:32 -05:00
Nicolas Dandrimont
799c39ffad
Implement del
...
Closes #385 .
2013-12-22 20:26:57 +02:00
Berker Peksag
abcd97b1f1
Add update_coreteam script.
2013-12-17 18:50:01 +02:00
Vasudev Kamath
58313884b2
Added information about core team members
...
Signed-off-by: Vasudev Kamath <kamathvasudev@gmail.com>
2013-12-17 14:36:19 +02:00
Berker Peksag
ecd13ef659
Add versionadded directive to cli.rst.
2013-12-06 07:51:32 +02:00
Joe H. Rahme
61112138ca
Adds try-hy to the docs
...
As requested in PR #350 .
This commit also adds Joe "rahmu" Hakim Rahme to the AUTHORS file
2013-12-05 23:07:46 +05:30
Berker Peksag
2c76d8ec90
Document command line options.
2013-12-05 22:03:05 +05:30
Guillermo Vaya
3cc0f8a717
Added info about tox, so people can use it prior to a PR
2013-12-02 12:07:05 +01:00
Paul Tagliamonte
9531d772cf
add the start of hacking rules
2013-12-01 12:56:26 -05:00
Abhishek L
d8c29f51d6
docs/api:formatting fixes in quote' and
unquote'
...
A newline was omitted which caused the examples not to render for quote
and unquote forms
2013-12-01 01:20:58 +05:30
agentultra
3773be1d1a
Rename anaphoirc.rst to anaphoric.rst
2013-11-30 10:47:08 -05:00
agentultra
cb6889314a
Add documentation and doc strings
2013-11-29 19:59:20 -05:00
Abhishek L
63a9e35f7f
Document eval
, quasiquote' and
quote'.
...
Also, fix the usage of `setv`.
2013-11-27 12:14:49 +02:00
Christopher Allan Webber
8348b2b0fd
Fix the repo location
2013-10-17 15:35:17 -05:00
Joe H. Rahme
3856467bf6
Uses square brackets for conds in docs
2013-10-16 18:31:18 +02:00
Sean B. Palmer
defccc6853
Added macroexpand-1
2013-10-11 13:50:10 +01:00
Sean B. Palmer
033198a90e
Added documentation for macroexpand
2013-10-11 12:06:22 +01:00
Paul Tagliamonte
656d646198
change virtualenv name to be `hy'
2013-10-10 17:17:43 -04:00
Paul Tagliamonte
a70bcc1f2f
Merge branch 'master' into pr/306
2013-10-10 17:17:20 -04:00
Sean B. Palmer
6364296a7b
Documented punycode conversion more thoroughly using a compound case
2013-10-10 15:59:19 +01:00
Berker Peksag
221a9b4918
Mention virtualenvwrapper in the hacking guide.
2013-10-09 12:36:35 +03:00
Berker Peksag
0248e42633
Update hacking guide.
2013-10-08 06:00:25 +03:00
Bob Tolbert
d9dee8ec67
One more commit to change the test for Python 2/3 to a macro
...
Note that this can't use the macro in hy.core.macros so there
is a local copy in language.hy
2013-09-03 18:41:11 -06:00
Bob Tolbert
399ea1889a
Second (smaller) set of native core functions
...
This rounds out the first pass at a set of core functions, adding
some that were not in the first PR.
From here I'm working on a contrib.seq and contrib.io module to
hold less obvious but maybe interesting native functions that can
move to core if desired.
This should also close out issure #150 asking for some core
functions like these.
2013-09-03 13:52:00 -06:00
kaizoku
b892ec4e66
Add zero? predicate to check if an object is zero
2013-09-02 02:28:21 -07:00
Tuukka Turto
e845287941
fix def / setv example
2013-08-25 21:29:24 +03:00
Tuukka Turto
99ba2880a6
minor fix
2013-08-05 23:30:03 +03:00
Tuukka Turto
7709509ed3
documenting defn / defun
2013-08-05 23:23:35 +03:00
Tuukka Turto
635e47b2cb
documentation for defun / defn and let
2013-08-05 21:56:57 +03:00
Paul Tagliamonte
acfc5c6aa5
Merge branch 'master' into pr/236
2013-07-27 10:22:38 -04:00
Paul Tagliamonte
6d9b93567d
Merge branch 'master' into pr/262
2013-07-23 00:08:32 -04:00
Paul Tagliamonte
7aa000b6a0
Merge branch 'master' into pr/263
2013-07-23 00:07:11 -04:00
Tuukka Turto
6665a2b490
clarified rest / cdr, cleaned up require
2013-07-23 06:39:29 +03:00
Tuukka Turto
151ac69ce8
working on documenting builtins
2013-07-23 00:36:34 +03:00
Tuukka Turto
c6410b7050
cond documentation
2013-07-22 23:59:21 +03:00
Tuukka Turto
ec76c6bee0
documentation for require
...
working on documenting macros
2013-07-22 23:36:59 +03:00
Guillermo Vaya
82e8598cd6
fix to assoc docs + new multiassoc definition
2013-07-22 18:48:21 +02:00
Joe H. Rahme
b761c7dc83
Fixes a mistake (most probably a typo) in the tutorial.
2013-07-21 02:59:35 +02:00
Tuukka Turto
a786577a8b
documentation for global
2013-07-19 15:57:25 +03:00
Tuukka Turto
22d8a78330
better macro example
2013-07-19 12:06:23 +03:00
Tuukka Turto
d580351b41
initial macrodef documentation
2013-07-18 15:00:24 +03:00
Paul Tagliamonte
d3e3334bb4
Merge branch 'master' into pr/252
2013-07-16 21:11:12 -04:00
Paul Tagliamonte
967bb95534
Merge branch 'master' into pr/237
2013-07-16 21:05:31 -04:00
Paul Tagliamonte
3dde930ede
Merge branch 'master' into pr/236
2013-07-16 20:57:29 -04:00
Tuukka Turto
624dfdc8c9
clarified foreach - else
2013-07-16 20:23:38 +03:00
Joe H. Rahme
a85ba71a20
Removes link to interactive demo from docs
2013-07-15 10:45:42 +02:00
Bob Tolbert
62f1f40830
Add set of new core functions
...
Add set of new core functions to the stdlib.
Moved the auto-import code from compile_expression to
HySymbol so that "even?' in this style expression will
be found and imported.
(list (filter even? [1 2 3 4 5]))
The core functions are documented in 2 sections, one
for basic functions like (even?..) and (nth ...) and
one for all the sequence functions.
Update: This removes all the caching decorators, misnamed as
'lazy-seq' from the core. All sequence methods now just use
yield to return a generator, so they are Python-lazy
Further refinements of core functions
Cleaned up the docs to use 'iterator' instead of 'generator'
Fixed drop to just return the iterator instead of an extra
yield loop. But also added a test to catch dropping too
many.
2013-07-13 09:55:16 -06:00
Tuukka Turto
6dc424007f
removed setf
2013-07-10 11:39:27 +03:00
Tuukka Turto
e09a89b7cf
foreach - else clarification
2013-07-10 08:24:58 +03:00
Tuukka Turto
08734602ca
defclass clarification
2013-07-10 07:11:11 +03:00
Joe H. Rahme
236ebccc74
Removes setf
in favor of setv
2013-07-10 02:16:49 +02:00
Tuukka Turto
9c31e34a26
documentation for builtins
...
relates #18
2013-07-09 12:04:53 +03:00
Tuukka Turto
35e28e52ac
documentation for some of the builtins
...
references #18
2013-07-06 19:48:09 +03:00
Tuukka Turto
cabf40bd2a
documented else / finally syntax for try / catch
2013-06-30 08:27:15 +03:00
Joe H. Rahme
22370b9fcc
Removes the repetition of the comment section in the tutorial
2013-06-21 17:30:23 +02:00
Thomas Ballinger
00f655c3a1
grammar in api.rst
2013-06-07 00:53:53 -03:00
Paul Tagliamonte
2c582fbd52
I'm an idiot, Sorry, @aldeka
2013-06-01 22:04:55 -04:00
Paul Tagliamonte
8cb3102365
Adding in @aldeka 's cuddles image!
2013-06-01 22:03:30 -04:00
Christopher Allan Webber
0f266fee9b
Move TODO from being an actual block of visible text to a comment
...
This is cleaner and more respectable :)
2013-05-20 18:26:36 -05:00
Christopher Allan Webber
e5de92178d
We should introdeuce people to the tutorial before we toss them at hacking
2013-05-20 18:25:26 -05:00
Christopher Allan Webber
c3811b5e71
Replacing cuddles ascii art with the cuddles drawing, restoring hy logo
2013-05-20 18:17:11 -05:00
Paul Tagliamonte
c463489584
thanks @olasd
2013-05-20 15:49:51 -04:00
Paul Tagliamonte
2b655d59ae
fixing the image src
2013-05-20 15:45:43 -04:00
rogererens
65585434db
Update tutorial.rst
...
I did some elaborate math checking...
2013-05-13 18:39:29 +02:00
Nicolas Dandrimont
938d783e3b
Symbols get mangled without double-underscores now
2013-05-09 23:42:54 +02:00
Nicolas Dandrimont
c4ca00a485
Fix the PDF docs build
2013-05-09 23:42:54 +02:00
Christopher Allan Webber
0571bab382
Return None in --init-- because due to a syntax flaw we have to!
2013-05-09 16:08:39 -05:00
Christopher Allan Webber
204bc9c39e
Fixing *args and **kwargs notation in docs
2013-05-09 16:04:12 -05:00
Christopher Allan Webber
c5dbc39ee1
Fixing documentation error with extra double-colon
2013-05-09 16:02:25 -05:00
Christopher Allan Webber
b68d5ac3a3
Remove document classes TODO
2013-05-09 16:01:07 -05:00
Christopher Allan Webber
b4b3ab89f7
Documenting classes!
2013-05-09 16:00:30 -05:00
Christopher Allan Webber
5bd5620dd0
Dictionary style keyword arguments documentation
2013-05-09 15:48:02 -05:00
Christopher Allan Webber
0a362a2120
oh yeah, make this a clojure syntax block in the docs
2013-05-09 15:40:32 -05:00
Christopher Allan Webber
b6d730c044
Documenting: tuples and argument formatting
2013-05-09 15:35:47 -05:00
Christopher Allan Webber
60c1a1ba06
Docs: "Much more readable, no! -> Much more readable, no?"
2013-05-09 15:11:42 -05:00
Paul Tagliamonte
14d33633e1
RST syntax fix
2013-05-08 22:32:11 -04:00
Clinton N. Dreisbach
d76d011b11
Added documentation about import
2013-05-08 22:16:03 -04:00
Paul Tagliamonte
feabe3ff4a
Merge branch 'master' into pr/125
2013-04-21 10:58:08 -04:00
John Jacobsen
3f6bf5f27b
more TODOs
2013-04-21 09:27:11 -05:00
John Jacobsen
38051ef96b
whitespace in doc
2013-04-21 09:04:52 -05:00
John Jacobsen
44329227db
Remove unneeded line from TODO section
2013-04-21 09:04:13 -05:00
John Jacobsen
499ec7697c
Add context manger / 'with' statement to tutorial
2013-04-21 09:03:19 -05:00
Gergely Nagy
494bf0e8ad
Remove the import-as and import-from builtins
...
The new and improved (import) can handle all cases import-as and
import-from did, so drop the latter two from the language. To do this,
the import builtin had to be changed a little: if there's a single
import statement to return, return it as-is, otherwise return a list of
imports.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2013-04-20 16:06:32 +02:00
Paul R. Tagliamonte
403be35aa3
use hy
2013-04-14 18:24:37 -04:00
Paul R. Tagliamonte
4e61ae59fd
small internals tweak
2013-04-08 21:53:06 -04:00
Christopher Browne
4ce3081933
Typo in tutorial
2013-04-08 17:09:00 -04:00
Christopher Browne
1c14a69fc9
example was missing function parameter name
2013-04-08 17:01:12 -04:00
Will Kahn-Greene
3dabc1a72a
Update example to be more relevant to users
2013-04-08 12:03:42 -04:00
Paul R. Tagliamonte
4629501628
Addining some initial docs.
2013-04-07 11:35:10 -04:00
Will Kahn-Greene
2724478f13
Fix clone url in hacking docs
2013-04-07 07:55:25 -04:00
Will Kahn-Greene
485c98c799
Add important pause in quickstart to regain composure
2013-04-05 21:50:56 -04:00
Will Kahn-Greene
9178d541fd
Add necessary conclusion to quickstart
2013-04-05 21:38:18 -04:00
Will Kahn-Greene
3cfaf0af1e
Tweak runline for easier reading
2013-04-05 21:27:30 -04:00
Will Kahn-Greene
f9f99a430b
Linkificate the other Python virtual environment text
2013-04-05 21:22:47 -04:00
Will Kahn-Greene
4ddae38a8b
Linkificate the Python virtual environment text
2013-04-05 16:39:46 -04:00
Will Kahn-Greene
b37f5f21d5
Fix to be more friendly
2013-04-05 16:34:25 -04:00
Will Kahn-Greene
6fbba17158
Add quickstart and hacking docs
2013-04-05 16:30:12 -04:00
Will Kahn-Greene
57f764ebfe
Cosmetic: Fix header formatting
...
This tweaks the header formatting in reST so that we can use ---
for 3rd level headers.
2013-04-05 14:56:59 -04:00
Christopher Allan Webber
d5d05c1dba
Removing accidental 1 insertion. Sorry paultag!
2013-04-03 16:27:20 -05:00
Christopher Allan Webber
39bc7e0b97
Replacing "quirks and eccentricities" with a "welcome"
...
We love welcoming people!
2013-04-03 16:27:01 -05:00
Christopher Allan Webber
976d8b5bf1
Renaming "language spec" to "tutorial"
2013-04-03 16:21:31 -05:00
Christopher Allan Webber
c627fad5e2
No documentation of one of .hy's coolest features, bidirectional imports!
2013-04-03 11:59:52 -05:00
Christopher Allan Webber
4a6fa15099
There's no reason for the " ; and a little more complex" comment
2013-04-03 11:30:22 -05:00
Christopher Allan Webber
ab1f30def5
Add hy logo to frontpage of docs
2013-04-03 11:27:40 -05:00
Christopher Allan Webber
3537a8285d
New (hy) logo!
2013-04-03 11:00:35 -05:00
Paul R. Tagliamonte
4e7362848a
adding in a bit about the double rainbow
2013-04-02 20:56:10 -04:00
Christopher Allan Webber
a878a7f7d5
List comprehensions example
2013-04-02 19:12:33 -05:00
Christopher Allan Webber
65b162cda2
Hy is lisp-stick on a python!
2013-04-02 18:55:59 -05:00
Paul R. Tagliamonte
397db464a5
Add a bit about the threading macro
2013-04-01 21:20:44 -04:00
Paul R. Tagliamonte
e8d7a01752
Bwaha, paroneayea typo
2013-04-01 21:09:30 -04:00
Paul R. Tagliamonte
f60daaa40d
Really square braces!
2013-04-01 21:08:19 -04:00
Christopher Allan Webber
c098db9b51
We should call simple-conversation after defining it, just like we did in python!
2013-04-01 17:59:26 -05:00
Christopher Allan Webber
1b60bee8a3
Change all instances of (def foo bar) to (setv foo bar)!
...
I'm in ur base polluting your language with all my opinions!
2013-04-01 16:51:28 -05:00
Christopher Allan Webber
0c4ae39bc0
Even more lisp sections marked as lispy highlighted code blocks
2013-04-01 15:06:19 -05:00
Will Kahn-Greene
e7cae36ff0
Syntax highlight blocks as clj
...
* hy is close enough to clojure , we can (ab)use that for syntax
highlighting code blocks
* fix "sphynx" spelling in requirements file
2013-04-01 12:55:16 -04:00
Christopher Allan Webber
df6ef654d7
Switch over to a more lisp'y syntax for the "for" statment docs
2013-04-01 11:01:36 -05:00
Christopher Allan Webber
93583b56a4
TODO: explain more about hy's for
2013-04-01 10:59:13 -05:00
Christopher Allan Webber
d10d9e79f9
Move the comment section, explain for loops
2013-04-01 10:58:13 -05:00
Christopher Allan Webber
5296e6ab55
Explain how to wrap multiple statments of execution in "do"
2013-04-01 10:49:04 -05:00
Christopher Allan Webber
edf33a08b4
Updating documentation for the new cond order
2013-04-01 10:34:36 -05:00
Christopher Allan Webber
a0acbd7948
Clarifying that we won't be executing the comment, but will exec the code!
2013-04-01 10:12:15 -05:00
Christopher Allan Webber
4d9f0ae6a1
Don't say "comfortable" twice so close to each other
2013-04-01 10:11:07 -05:00
Christopher Allan Webber
be784793f0
Oops, fix the url for the interactive demo
2013-04-01 09:29:33 -05:00
Christopher Allan Webber
f1dd537391
Mention the IRC channel
2013-04-01 09:28:52 -05:00
Christopher Allan Webber
ff65513811
More information about what Hy really is in the language spec section.
2013-04-01 09:27:30 -05:00
Christopher Allan Webber
06adc86f46
A slightly better explaination of what Hy is.
2013-04-01 09:24:15 -05:00
Christopher Allan Webber
f0ec34d6fb
Yet another slight improvement to Cuddles
2013-04-01 09:19:38 -05:00
Christopher Allan Webber
f9ed4e8fa8
Mention the interactive hy->python demo
2013-04-01 08:37:40 -05:00
Christopher Allan Webber
13c7cb9736
Refer to the mascot by name!
2013-04-01 08:34:10 -05:00
Christopher Allan Webber
ff99fb89ad
Slight improvements to the Cuddlefish's fin. This is critical stuff!
2013-04-01 08:31:41 -05:00
Christopher Allan Webber
2ddf752d3e
Okay, a cuddlefish that actually renders :)
2013-04-01 08:27:16 -05:00
Christopher Allan Webber
d8fe13a913
Hy: now with "cuddlefish" mascots
2013-04-01 08:23:42 -05:00
Christopher Allan Webber
767af90175
python hash comments -> hy comments
2013-04-01 07:32:11 -05:00
Christopher Allan Webber
4334700549
Explaining cond
2013-04-01 07:14:23 -05:00
Christopher Allan Webber
b1d83b12c6
Adding some missing "::" to the rst structure and fixing a sentence fragment. Next: cond!
2013-04-01 07:10:40 -05:00
Christopher Allan Webber
6c8f0da256
Adding a super basic tutorial to the docs.
2013-03-31 16:46:56 -05:00
Paul Tagliamonte
1241707f73
Adding in docz
2013-03-13 19:43:19 -04:00
Paul R. Tagliamonte
8cf9bd582d
change version bits
2013-03-12 22:58:07 -04:00
Paul R. Tagliamonte
73cb1dcb7d
Adding in a docs directory.
2013-03-12 22:53:45 -04:00