Bob Tolbert
0e10f7b283
Removed duplicate flake8 since it has moved into requirements.txt
2013-08-24 11:24:25 -06:00
Bob Tolbert
fdb2385223
Add flake8 to Travis-CI to prevent these from coming back
...
Added new travis make target to skip flake8 on pypy but run it on all others
2013-08-24 11:14:29 -06:00
Bob Tolbert
e33c27d447
Fixing blank line Flake8 failures
2013-08-24 08:33:13 -06:00
Bob Tolbert
b5b2ec4896
Merge pull request #266 from paultag/paultag/feature/yield-from
...
Paultag/feature/yield from
2013-08-24 07:15:42 -07:00
khinsen
f3c17bac33
Merge pull request #275 from khinsen/spy-mode
...
Add "spy mode" to REPL
2013-08-20 01:17:13 -07:00
Konrad Hinsen
a3847191b6
Merge branch 'master' into spy-mode
2013-08-20 10:12:23 +02:00
Julien Danjou
e158fba865
Merge pull request #265 from rwtolbert/hyc_args_fix
...
Add CL handling to hyc
2013-08-20 01:10:44 -07:00
Konrad Hinsen
3321daa4cf
Add "spy mode" to REPL
...
With the command-line option --spy, the Hy REPL prints the Python
equivalent of each expression before evaluating it.
2013-08-19 15:27:55 +02:00
Paul Tagliamonte
1c12b2870e
Add yield from via macro magic.
...
This will let us use (basic) yield from behavior from Python 2. This
isn't complete, and is low-hanging fruit for others willing to hack
on hy.
I've also changed the macrosystem to allow for proper bootstrapping.
This is similar to how it's done elsewhere in the codebase (stdlib
stuff).
2013-08-17 11:37:48 -04:00
Paul Tagliamonte
bffe3a05fa
Merge branch 'master' into pr/271
2013-08-17 11:04:24 -04:00
agentultra
43d8db628b
Add james@agentultra to copyright header
2013-08-10 20:23:11 -04:00
Paul Tagliamonte
b2951349b2
Merge branch 'master' into pr/232
2013-08-10 17:05:50 -04: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
Bob Tolbert
fd53e653df
Merge pull request #268 from rwtolbert/new_core_functions_3
...
Add back some missing changes from PR #236
2013-07-29 08:15:30 -07:00
Bob Tolbert
41ae4f4d2c
Update:
...
Updated most methods to replace While with For, and added tons of new tests
for things like (cycle []) and lists with None's in them.
thanks @olasd
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-29 08:52:28 -06:00
Nicolas Dandrimont
51358e0f4b
Add some machinery to avoid importing hy in setup.py
2013-07-28 19:34:59 +02:00
Nicolas Dandrimont
81af09d002
Wire the rply parser
...
Amend the tests to account for the changes
2013-07-28 17:36:36 +02:00
Nicolas Dandrimont
2ed299676f
Add a rply-based parser
2013-07-28 17:36:36 +02:00
Nicolas Dandrimont
c8605feaea
Add an rply-based lexer
2013-07-28 17:36:36 +02:00
Nicolas Dandrimont
ce22e49b50
Add rply to dependencies
...
Use the hylang fork until mainline grows the source position patch.
2013-07-28 17:36:36 +02:00
Bob Tolbert
e138af8b94
Merge pull request #267 from olasd/bugfix/quote-lambdalistkeyword
...
Allow quoting lambda list keywords.
2013-07-27 17:15:20 -07:00
Nicolas Dandrimont
9278b24318
Allow quoting lambda list keywords.
...
This fixes an obvious bug where LambdaListKeywords couldn't be quoted.
2013-07-28 00:38:16 +02:00
Paul Tagliamonte
acfc5c6aa5
Merge branch 'master' into pr/236
2013-07-27 10:22:38 -04:00
Bob Tolbert
d960dc963f
Add CL handling to hyc
...
This adds real command line handling to 'hyc' for issue #256
This fix catches missing/unreadable files and prints a nice
error message instead of a nasty stack trace when trying to
compile a non-existent file.
Also add this non-existent file check to hy to prevent the
current stack trace from something like "hy foobarbaz" when
"foobarbaz" doesn't exist.
also changes the failure return value to 2 to match Python.
2013-07-26 08:40:56 -06: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
Paul Tagliamonte
68ade73dd1
Merge branch 'master' into pr/258
2013-07-23 00:05:58 -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
Julien Danjou
a71e09b1cf
Merge pull request #260 from rahmu/master
...
Fixes a mistake (most probably a typo) in the tutorial.
2013-07-21 00:56:42 -07: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
Nicolas Dandrimont
a17dcdbffb
Make with
return the last expression from its branch
...
Thanks @rwtolbert for the bug report
2013-07-19 00:43:12 +02:00
Tuukka Turto
d580351b41
initial macrodef documentation
2013-07-18 15:00:24 +03:00
Paul Tagliamonte
ad86dff754
Merge branch 'master' into pr/254
2013-07-18 00:00:42 -04:00
Guillermo Vaya
099ad28ad1
added @paultag suggestions
2013-07-17 15:57:13 +02:00
rwtolbert
348eaaa0f4
Merge pull request #243 from paultag/paultag/bugfix/fix-yield
...
Fix yielding to not suck (#151 )
yay team
2013-07-16 18:27:14 -07:00
Paul Tagliamonte
d3e3334bb4
Merge branch 'master' into pr/252
2013-07-16 21:11:12 -04:00
Paul Tagliamonte
8283920402
Merge branch 'master' into pr/251
2013-07-16 21:09:00 -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
Guillermo Vaya
6778e9b2e1
added @tuturto sugesstions and flake8 errors
2013-07-16 20:41:56 +02:00
Tuukka Turto
624dfdc8c9
clarified foreach - else
2013-07-16 20:23:38 +03:00
Guillermo Vaya
dda291cfb5
make assoc accept multiple values, also added a even/odd check for checkargs
2013-07-16 14:35:57 +02:00