Berker Peksag
65f8bd2b91
Document hyc command line options.
2014-01-25 21:43:08 +02: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