Merge pull request #1286 from Kodiologist/new-license-headers
Use license headers consistently
This commit is contained in:
commit
b9279183d7
@ -28,6 +28,18 @@ Pull requests are great! We love them; here is a quick guide:
|
|||||||
documentation fixes or code cleanup), you can directly open the PR without
|
documentation fixes or code cleanup), you can directly open the PR without
|
||||||
first opening a corresponding issue.
|
first opening a corresponding issue.
|
||||||
|
|
||||||
|
- Every Python or Hy file in the source tree that is potentially copyrightable
|
||||||
|
should have the following header (but with ``;;`` in place of ``#`` for Hy
|
||||||
|
files)::
|
||||||
|
|
||||||
|
# Copyright [current year] the authors.
|
||||||
|
# This file is part of Hy, which is free software licensed under the Expat
|
||||||
|
# license. See the LICENSE.
|
||||||
|
|
||||||
|
As a rule of thumb, a file can be considered potentially copyrightable if it
|
||||||
|
includes at least 10 lines that contain something other than comments or
|
||||||
|
whitespace. If in doubt, include the header.
|
||||||
|
|
||||||
- Before you submit a PR, please run the tests and check your code
|
- Before you submit a PR, please run the tests and check your code
|
||||||
against the style guide. You can do both of these things at once::
|
against the style guide. You can do both of these things at once::
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ master_doc = 'index'
|
|||||||
|
|
||||||
# General information about the project.
|
# General information about the project.
|
||||||
project = u'hy'
|
project = u'hy'
|
||||||
copyright = u'2013-%s, Paul Tagliamonte' % time.strftime('%Y')
|
copyright = u'%s the authors' % time.strftime('%Y')
|
||||||
|
|
||||||
# The version info for the project you're documenting, acts as replacement for
|
# The version info for the project you're documenting, acts as replacement for
|
||||||
# |version| and |release|, also used in various other places throughout the
|
# |version| and |release|, also used in various other places throughout the
|
||||||
|
@ -1,24 +1,3 @@
|
|||||||
# Copyright (c) 2013 Paul Tagliamonte <paultag@debian.org>
|
|
||||||
#
|
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
||||||
# copy of this software and associated documentation files (the "Software"),
|
|
||||||
# to deal in the Software without restriction, including without limitation
|
|
||||||
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
# and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
# Software is furnished to do so, subject to the following conditions:
|
|
||||||
#
|
|
||||||
# The above copyright notice and this permission notice shall be included in
|
|
||||||
# all copies or substantial portions of the Software.
|
|
||||||
#
|
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
# DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
|
|
||||||
__appname__ = 'hy'
|
__appname__ = 'hy'
|
||||||
try:
|
try:
|
||||||
from hy.version import __version__
|
from hy.version import __version__
|
||||||
|
@ -1,23 +1,3 @@
|
|||||||
# Copyright (c) 2013 Paul Tagliamonte <paultag@debian.org>
|
|
||||||
#
|
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
||||||
# copy of this software and associated documentation files (the "Software"),
|
|
||||||
# to deal in the Software without restriction, including without limitation
|
|
||||||
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
# and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
# Software is furnished to do so, subject to the following conditions:
|
|
||||||
#
|
|
||||||
# The above copyright notice and this permission notice shall be included in
|
|
||||||
# all copies or substantial portions of the Software.
|
|
||||||
#
|
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
# DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
import hy # NOQA
|
import hy # NOQA
|
||||||
import imp
|
import imp
|
||||||
import sys
|
import sys
|
||||||
|
@ -1,24 +1,6 @@
|
|||||||
# Copyright (c) 2013 Paul Tagliamonte <paultag@debian.org>
|
# Copyright 2017 the authors.
|
||||||
# Copyright (c) 2013 Julien Danjou <julien@danjou.info>
|
# This file is part of Hy, which is free software licensed under the Expat
|
||||||
# Copyright (c) 2013 Berker Peksag <berker.peksag@gmail.com>
|
# license. See the LICENSE.
|
||||||
#
|
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
||||||
# copy of this software and associated documentation files (the "Software"),
|
|
||||||
# to deal in the Software without restriction, including without limitation
|
|
||||||
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
# and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
# Software is furnished to do so, subject to the following conditions:
|
|
||||||
#
|
|
||||||
# The above copyright notice and this permission notice shall be included in
|
|
||||||
# all copies or substantial portions of the Software.
|
|
||||||
#
|
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
# DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import __builtin__ as builtins
|
import __builtin__ as builtins
|
||||||
|
@ -1,29 +1,6 @@
|
|||||||
# Copyright (c) 2013 Paul Tagliamonte <paultag@debian.org>
|
# Copyright 2017 the authors.
|
||||||
# Copyright (c) 2013 Gergely Nagy <algernon@madhouse-project.org>
|
# This file is part of Hy, which is free software licensed under the Expat
|
||||||
# Copyright (c) 2013 James King <james@agentultra.com>
|
# license. See the LICENSE.
|
||||||
# Copyright (c) 2013 Julien Danjou <julien@danjou.info>
|
|
||||||
# Copyright (c) 2013 Konrad Hinsen <konrad.hinsen@fastmail.net>
|
|
||||||
# Copyright (c) 2013 Thom Neale <twneale@gmail.com>
|
|
||||||
# Copyright (c) 2013 Will Kahn-Greene <willg@bluesock.org>
|
|
||||||
# Copyright (c) 2013 Bob Tolbert <bob@tolbert.org>
|
|
||||||
#
|
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
||||||
# copy of this software and associated documentation files (the "Software"),
|
|
||||||
# to deal in the Software without restriction, including without limitation
|
|
||||||
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
# and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
# Software is furnished to do so, subject to the following conditions:
|
|
||||||
#
|
|
||||||
# The above copyright notice and this permission notice shall be included in
|
|
||||||
# all copies or substantial portions of the Software.
|
|
||||||
#
|
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
# DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
|
@ -1,28 +1,7 @@
|
|||||||
# -*- encoding: utf-8 -*-
|
# -*- encoding: utf-8 -*-
|
||||||
#
|
# Copyright 2017 the authors.
|
||||||
# Copyright (c) 2013, 2014 Paul Tagliamonte <paultag@debian.org>
|
# This file is part of Hy, which is free software licensed under the Expat
|
||||||
# Copyright (c) 2013 Julien Danjou <julien@danjou.info>
|
# license. See the LICENSE.
|
||||||
# Copyright (c) 2013 Nicolas Dandrimont <nicolas.dandrimont@crans.org>
|
|
||||||
# Copyright (c) 2013 James King <james@agentultra.com>
|
|
||||||
# Copyright (c) 2013, 2014 Bob Tolbert <bob@tolbert.org>
|
|
||||||
#
|
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
||||||
# copy of this software and associated documentation files (the "Software"),
|
|
||||||
# to deal in the Software without restriction, including without limitation
|
|
||||||
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
# and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
# Software is furnished to do so, subject to the following conditions:
|
|
||||||
#
|
|
||||||
# The above copyright notice and this permission notice shall be included in
|
|
||||||
# all copies or substantial portions of the Software.
|
|
||||||
#
|
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
# DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
from hy.models import (HyObject, HyExpression, HyKeyword, HyInteger, HyComplex,
|
from hy.models import (HyObject, HyExpression, HyKeyword, HyInteger, HyComplex,
|
||||||
HyString, HyBytes, HySymbol, HyFloat, HyList, HySet,
|
HyString, HyBytes, HySymbol, HyFloat, HyList, HySet,
|
||||||
|
@ -1,29 +1,6 @@
|
|||||||
# Copyright (c) 2013 Paul Tagliamonte <paultag@debian.org>
|
# Copyright 2017 the authors.
|
||||||
# Copyright (c) 2013 Gergely Nagy <algernon@madhouse-project.org>
|
# This file is part of Hy, which is free software licensed under the Expat
|
||||||
# Copyright (c) 2013 James King <james@agentultra.com>
|
# license. See the LICENSE.
|
||||||
# Copyright (c) 2013 Julien Danjou <julien@danjou.info>
|
|
||||||
# Copyright (c) 2013 Konrad Hinsen <konrad.hinsen@fastmail.net>
|
|
||||||
# Copyright (c) 2013 Thom Neale <twneale@gmail.com>
|
|
||||||
# Copyright (c) 2013 Will Kahn-Greene <willg@bluesock.org>
|
|
||||||
# Copyright (c) 2013 Ralph Moritz <ralph.moeritz@outlook.com>
|
|
||||||
#
|
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
||||||
# copy of this software and associated documentation files (the "Software"),
|
|
||||||
# to deal in the Software without restriction, including without limitation
|
|
||||||
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
# and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
# Software is furnished to do so, subject to the following conditions:
|
|
||||||
#
|
|
||||||
# The above copyright notice and this permission notice shall be included in
|
|
||||||
# all copies or substantial portions of the Software.
|
|
||||||
#
|
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
# DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
import contextlib
|
import contextlib
|
||||||
import os
|
import os
|
||||||
|
@ -1,22 +1,6 @@
|
|||||||
;; Copyright (c) 2014, 2015 Gergely Nagy
|
;; Copyright 2017 the authors.
|
||||||
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
;; Permission is hereby granted, free of charge, to any person obtaining a
|
;; license. See the LICENSE.
|
||||||
;; copy of this software and associated documentation files (the "Software"),
|
|
||||||
;; to deal in the Software without restriction, including without limitation
|
|
||||||
;; the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
;; and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
;; Software is furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
;; The above copyright notice and this permission notice shall be included in
|
|
||||||
;; all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
;; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
;; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
;; THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
;; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
;; FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
;; DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
(defn Botsbuildbots () (Botsbuildbots))
|
(defn Botsbuildbots () (Botsbuildbots))
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
;; Copyright 2017 the authors.
|
||||||
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
|
;; license. See the LICENSE.
|
||||||
|
|
||||||
(import [hy._compat [PY3 str-type bytes-type long-type]])
|
(import [hy._compat [PY3 str-type bytes-type long-type]])
|
||||||
(import [hy.models [HyObject HyExpression HySymbol HyKeyword HyInteger HyList HyDict HySet HyString HyBytes]])
|
(import [hy.models [HyObject HyExpression HySymbol HyKeyword HyInteger HyList HyDict HySet HyString HyBytes]])
|
||||||
|
|
||||||
|
@ -1,26 +1,8 @@
|
|||||||
;;; Hy tail-call optimization
|
;;; Hy tail-call optimization
|
||||||
;;
|
;; Copyright 2017 the authors.
|
||||||
;; Copyright (c) 2014 Clinton Dreisbach <clinton@dreisbach.us>
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
;; Copyright (c) 2014 Paul R. Tagliamonte <tag@pault.ag>
|
;; license. See the LICENSE.
|
||||||
;;
|
|
||||||
;; Permission is hereby granted, free of charge, to any person obtaining a
|
|
||||||
;; copy of this software and associated documentation files (the "Software"),
|
|
||||||
;; to deal in the Software without restriction, including without limitation
|
|
||||||
;; the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
;; and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
;; Software is furnished to do so, subject to the following conditions:
|
|
||||||
;;
|
|
||||||
;; The above copyright notice and this permission notice shall be included in
|
|
||||||
;; all copies or substantial portions of the Software.
|
|
||||||
;;
|
|
||||||
;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
;; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
;; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
;; THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
;; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
;; FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
;; DEALINGS IN THE SOFTWARE.
|
|
||||||
;;
|
|
||||||
;;; The loop/recur macro allows you to construct functions that use tail-call
|
;;; The loop/recur macro allows you to construct functions that use tail-call
|
||||||
;;; optimization to allow arbitrary levels of recursion.
|
;;; optimization to allow arbitrary levels of recursion.
|
||||||
|
|
||||||
|
@ -1,24 +1,7 @@
|
|||||||
;; Hy Arity-overloading
|
;; Hy Arity-overloading
|
||||||
;; Copyright (c) 2014 Morten Linderud <mcfoxax@gmail.com>
|
;; Copyright 2017 the authors.
|
||||||
;; Copyright (c) 2016 Tuukka Turto <tuukka.turto@oktaeder.net>
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
|
;; license. See the LICENSE.
|
||||||
;; Permission is hereby granted, free of charge, to any person obtaining a
|
|
||||||
;; copy of this software and associated documentation files (the "Software"),
|
|
||||||
;; to deal in the Software without restriction, including without limitation
|
|
||||||
;; the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
;; and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
;; Software is furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
;; The above copyright notice and this permission notice shall be included in
|
|
||||||
;; all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
;; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
;; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
;; THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
;; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
;; FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
;; DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
(import [collections [defaultdict]]
|
(import [collections [defaultdict]]
|
||||||
[hy [HyExpression HyList HyString]])
|
[hy [HyExpression HyList HyString]])
|
||||||
|
@ -1,25 +1,8 @@
|
|||||||
;;; Hy profiling macros
|
;;; Hy profiling macros
|
||||||
;;
|
;; Copyright 2017 the authors.
|
||||||
;; Copyright (c) 2013 Paul R. Tagliamonte <tag@pault.ag>
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
;;
|
;; license. See the LICENSE.
|
||||||
;; Permission is hereby granted, free of charge, to any person obtaining a
|
|
||||||
;; copy of this software and associated documentation files (the "Software"),
|
|
||||||
;; to deal in the Software without restriction, including without limitation
|
|
||||||
;; the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
;; and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
;; Software is furnished to do so, subject to the following conditions:
|
|
||||||
;;
|
|
||||||
;; The above copyright notice and this permission notice shall be included in
|
|
||||||
;; all copies or substantial portions of the Software.
|
|
||||||
;;
|
|
||||||
;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
;; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
;; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
;; THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
;; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
;; FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
;; DEALINGS IN THE SOFTWARE.
|
|
||||||
;;
|
|
||||||
;;; These macros make debugging where bottlenecks exist easier.
|
;;; These macros make debugging where bottlenecks exist easier.
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,23 +1,6 @@
|
|||||||
;; Copyright (c) 2016 Tuukka Turto <tuukka.turto@oktaeder.net>
|
;; Copyright 2017 the authors.
|
||||||
;;
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
;; Permission is hereby granted, free of charge, to any person obtaining a
|
;; license. See the LICENSE.
|
||||||
;; copy of this software and associated documentation files (the "Software"),
|
|
||||||
;; to deal in the Software without restriction, including without limitation
|
|
||||||
;; the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
;; and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
;; Software is furnished to do so, subject to the following conditions:
|
|
||||||
;;
|
|
||||||
;; The above copyright notice and this permission notice shall be included in
|
|
||||||
;; all copies or substantial portions of the Software.
|
|
||||||
;;
|
|
||||||
;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
;; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
;; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
;; THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
;; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
;; FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
;; DEALINGS IN THE SOFTWARE.
|
|
||||||
;;
|
|
||||||
|
|
||||||
(defclass Sequence []
|
(defclass Sequence []
|
||||||
[--init-- (fn [self func]
|
[--init-- (fn [self func]
|
||||||
|
@ -1,24 +1,7 @@
|
|||||||
;;; Hy AST walker
|
;;; Hy AST walker
|
||||||
;;
|
;; Copyright 2017 the authors.
|
||||||
;; Copyright (c) 2014, 2015 Gergely Nagy <algernon@madhouse-project.org>
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
;;
|
;; license. See the LICENSE.
|
||||||
;; Permission is hereby granted, free of charge, to any person obtaining a
|
|
||||||
;; copy of this software and associated documentation files (the "Software"),
|
|
||||||
;; to deal in the Software without restriction, including without limitation
|
|
||||||
;; the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
;; and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
;; Software is furnished to do so, subject to the following conditions:
|
|
||||||
;;
|
|
||||||
;; The above copyright notice and this permission notice shall be included in
|
|
||||||
;; all copies or substantial portions of the Software.
|
|
||||||
;;
|
|
||||||
;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
;; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
;; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
;; THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
;; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
;; FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
;; DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
(import [hy [HyExpression HyDict]]
|
(import [hy [HyExpression HyDict]]
|
||||||
[functools [partial]])
|
[functools [partial]])
|
||||||
|
@ -1,27 +1,8 @@
|
|||||||
;;; Hy bootstrap macros
|
;;; Hy bootstrap macros
|
||||||
;;
|
;; Copyright 2017 the authors.
|
||||||
;; Copyright (c) 2013 Nicolas Dandrimont <nicolas.dandrimont@crans.org>
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
;; Copyright (c) 2013 Paul Tagliamonte <paultag@debian.org>
|
;; license. See the LICENSE.
|
||||||
;; Copyright (c) 2013 Konrad Hinsen <konrad.hinsen@fastmail.net>
|
|
||||||
;;
|
|
||||||
;; Permission is hereby granted, free of charge, to any person obtaining a
|
|
||||||
;; copy of this software and associated documentation files (the "Software"),
|
|
||||||
;; to deal in the Software without restriction, including without limitation
|
|
||||||
;; the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
;; and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
;; Software is furnished to do so, subject to the following conditions:
|
|
||||||
;;
|
|
||||||
;; The above copyright notice and this permission notice shall be included in
|
|
||||||
;; all copies or substantial portions of the Software.
|
|
||||||
;;
|
|
||||||
;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
;; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
;; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
;; THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
;; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
;; FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
;; DEALINGS IN THE SOFTWARE.
|
|
||||||
;;
|
|
||||||
;;; These macros are the essential hy macros.
|
;;; These macros are the essential hy macros.
|
||||||
;;; They are automatically required everywhere, even inside hy.core modules.
|
;;; They are automatically required everywhere, even inside hy.core modules.
|
||||||
|
|
||||||
|
@ -1,23 +1,6 @@
|
|||||||
;; Copyright (c) 2013 Paul Tagliamonte <paultag@debian.org>
|
;; Copyright 2017 the authors.
|
||||||
;; Copyright (c) 2013 Bob Tolbert <bob@tolbert.org>
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
|
;; license. See the LICENSE.
|
||||||
;; Permission is hereby granted, free of charge, to any person obtaining a
|
|
||||||
;; copy of this software and associated documentation files (the "Software"),
|
|
||||||
;; to deal in the Software without restriction, including without limitation
|
|
||||||
;; the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
;; and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
;; Software is furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
;; The above copyright notice and this permission notice shall be included in
|
|
||||||
;; all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
;; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
;; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
;; THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
;; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
;; FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
;; DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
;;;; This contains some of the core Hy functions used
|
;;;; This contains some of the core Hy functions used
|
||||||
;;;; to make functional programming slightly easier.
|
;;;; to make functional programming slightly easier.
|
||||||
|
@ -1,27 +1,8 @@
|
|||||||
;;; Hy core macros
|
;;; Hy core macros
|
||||||
;;
|
;; Copyright 2017 the authors.
|
||||||
;; Copyright (c) 2013 Nicolas Dandrimont <nicolas.dandrimont@crans.org>
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
;; Copyright (c) 2013 Paul Tagliamonte <paultag@debian.org>
|
;; license. See the LICENSE.
|
||||||
;; Copyright (c) 2013 Konrad Hinsen <konrad.hinsen@fastmail.net>
|
|
||||||
;;
|
|
||||||
;; Permission is hereby granted, free of charge, to any person obtaining a
|
|
||||||
;; copy of this software and associated documentation files (the "Software"),
|
|
||||||
;; to deal in the Software without restriction, including without limitation
|
|
||||||
;; the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
;; and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
;; Software is furnished to do so, subject to the following conditions:
|
|
||||||
;;
|
|
||||||
;; The above copyright notice and this permission notice shall be included in
|
|
||||||
;; all copies or substantial portions of the Software.
|
|
||||||
;;
|
|
||||||
;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
;; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
;; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
;; THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
;; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
;; FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
;; DEALINGS IN THE SOFTWARE.
|
|
||||||
;;
|
|
||||||
;;; These macros form the hy language
|
;;; These macros form the hy language
|
||||||
;;; They are automatically required in every module, except inside hy.core
|
;;; They are automatically required in every module, except inside hy.core
|
||||||
|
|
||||||
|
@ -1,23 +1,6 @@
|
|||||||
;; Copyright (c) 2014 Paul Tagliamonte <paultag@debian.org>
|
;; Copyright 2017 the authors.
|
||||||
;; Copyright (c) 2014 James King <james@agentultra.com>
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
|
;; license. See the LICENSE.
|
||||||
;; Permission is hereby granted, free of charge, to any person obtaining a
|
|
||||||
;; copy of this software and associated documentation files (the "Software"),
|
|
||||||
;; to deal in the Software without restriction, including without limitation
|
|
||||||
;; the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
;; and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
;; Software is furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
;; The above copyright notice and this permission notice shall be included in
|
|
||||||
;; all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
;; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
;; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
;; THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
;; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
;; FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
;; DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
;;;; Hy shadow functions
|
;;;; Hy shadow functions
|
||||||
|
|
||||||
|
24
hy/errors.py
24
hy/errors.py
@ -1,25 +1,7 @@
|
|||||||
# -*- encoding: utf-8 -*-
|
# -*- encoding: utf-8 -*-
|
||||||
#
|
# Copyright 2017 the authors.
|
||||||
# Copyright (c) 2013 Paul Tagliamonte <paultag@debian.org>
|
# This file is part of Hy, which is free software licensed under the Expat
|
||||||
# Copyright (c) 2013 Bob Tolbert <bob@tolbert.org>
|
# license. See the LICENSE.
|
||||||
#
|
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
||||||
# copy of this software and associated documentation files (the "Software"),
|
|
||||||
# to deal in the Software without restriction, including without limitation
|
|
||||||
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
# and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
# Software is furnished to do so, subject to the following conditions:
|
|
||||||
#
|
|
||||||
# The above copyright notice and this permission notice shall be included in
|
|
||||||
# all copies or substantial portions of the Software.
|
|
||||||
#
|
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
# DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
|
@ -1,27 +1,8 @@
|
|||||||
;;; Hy anaphoric macros
|
;;; Hy anaphoric macros
|
||||||
;;
|
;; Copyright 2017 the authors.
|
||||||
;; Copyright (c) 2013 James King <james@agentultra.com>
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
;; 2013 Paul R. Tagliamonte <tag@pault.ag>
|
;; license. See the LICENSE.
|
||||||
;; 2013 Abhishek L <abhishek.lekshmanan@gmail.com>
|
|
||||||
;;
|
|
||||||
;; Permission is hereby granted, free of charge, to any person obtaining a
|
|
||||||
;; copy of this software and associated documentation files (the "Software"),
|
|
||||||
;; to deal in the Software without restriction, including without limitation
|
|
||||||
;; the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
;; and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
;; Software is furnished to do so, subject to the following conditions:
|
|
||||||
;;
|
|
||||||
;; The above copyright notice and this permission notice shall be included in
|
|
||||||
;; all copies or substantial portions of the Software.
|
|
||||||
;;
|
|
||||||
;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
;; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
;; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
;; THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
;; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
;; FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
;; DEALINGS IN THE SOFTWARE.
|
|
||||||
;;
|
|
||||||
;;; These macros make writing functional programs more concise
|
;;; These macros make writing functional programs more concise
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,24 +1,7 @@
|
|||||||
;;; Get a frozenset of Hy reserved words
|
;;; Get a frozenset of Hy reserved words
|
||||||
;;
|
;; Copyright 2017 the authors.
|
||||||
;; Copyright (c) 2016 Paul Tagliamonte <paultag@debian.org>
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
;;
|
;; license. See the LICENSE.
|
||||||
;; Permission is hereby granted, free of charge, to any person obtaining a
|
|
||||||
;; copy of this software and associated documentation files (the "Software"),
|
|
||||||
;; to deal in the Software without restriction, including without limitation
|
|
||||||
;; the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
;; and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
;; Software is furnished to do so, subject to the following conditions:
|
|
||||||
;;
|
|
||||||
;; The above copyright notice and this permission notice shall be included in
|
|
||||||
;; all copies or substantial portions of the Software.
|
|
||||||
;;
|
|
||||||
;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
;; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
;; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
;; THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
;; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
;; FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
;; DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
(import hy sys keyword)
|
(import hy sys keyword)
|
||||||
|
|
||||||
|
@ -1,23 +1,6 @@
|
|||||||
# Copyright (c) 2013 Paul Tagliamonte <paultag@debian.org>
|
# Copyright 2017 the authors.
|
||||||
# Copyright (c) 2013, 2014 Bob Tolbert <bob@tolbert.org>
|
# This file is part of Hy, which is free software licensed under the Expat
|
||||||
#
|
# license. See the LICENSE.
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
||||||
# copy of this software and associated documentation files (the "Software"),
|
|
||||||
# to deal in the Software without restriction, including without limitation
|
|
||||||
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
# and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
# Software is furnished to do so, subject to the following conditions:
|
|
||||||
#
|
|
||||||
# The above copyright notice and this permission notice shall be included in
|
|
||||||
# all copies or substantial portions of the Software.
|
|
||||||
#
|
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
# DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
from hy.compiler import hy_compile, HyTypeError
|
from hy.compiler import hy_compile, HyTypeError
|
||||||
from hy.models import HyObject, replace_hy_obj
|
from hy.models import HyObject, replace_hy_obj
|
||||||
|
@ -1,22 +1,6 @@
|
|||||||
# Copyright (c) 2013 Paul Tagliamonte <paultag@debian.org>
|
# Copyright 2017 the authors.
|
||||||
#
|
# This file is part of Hy, which is free software licensed under the Expat
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
# license. See the LICENSE.
|
||||||
# copy of this software and associated documentation files (the "Software"),
|
|
||||||
# to deal in the Software without restriction, including without limitation
|
|
||||||
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
# and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
# Software is furnished to do so, subject to the following conditions:
|
|
||||||
#
|
|
||||||
# The above copyright notice and this permission notice shall be included in
|
|
||||||
# all copies or substantial portions of the Software.
|
|
||||||
#
|
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
# DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
from rply.errors import LexingError
|
from rply.errors import LexingError
|
||||||
|
|
||||||
|
@ -1,23 +1,6 @@
|
|||||||
# Copyright (c) 2013 Nicolas Dandrimont <nicolas.dandrimont@crans.org>
|
# Copyright 2017 the authors.
|
||||||
# Copyright (c) 2013 Bob Tolbert <bob@tolbert.org>
|
# This file is part of Hy, which is free software licensed under the Expat
|
||||||
#
|
# license. See the LICENSE.
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
||||||
# copy of this software and associated documentation files (the "Software"),
|
|
||||||
# to deal in the Software without restriction, including without limitation
|
|
||||||
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
# and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
# Software is furnished to do so, subject to the following conditions:
|
|
||||||
#
|
|
||||||
# The above copyright notice and this permission notice shall be included in
|
|
||||||
# all copies or substantial portions of the Software.
|
|
||||||
#
|
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
# DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
from hy.errors import HyError
|
from hy.errors import HyError
|
||||||
|
|
||||||
|
@ -1,22 +1,6 @@
|
|||||||
# Copyright (c) 2013 Nicolas Dandrimont <nicolas.dandrimont@crans.org>
|
# Copyright 2017 the authors.
|
||||||
#
|
# This file is part of Hy, which is free software licensed under the Expat
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
# license. See the LICENSE.
|
||||||
# copy of this software and associated documentation files (the "Software"),
|
|
||||||
# to deal in the Software without restriction, including without limitation
|
|
||||||
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
# and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
# Software is furnished to do so, subject to the following conditions:
|
|
||||||
#
|
|
||||||
# The above copyright notice and this permission notice shall be included in
|
|
||||||
# all copies or substantial portions of the Software.
|
|
||||||
#
|
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
# DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
from rply import LexerGenerator
|
from rply import LexerGenerator
|
||||||
|
|
||||||
|
@ -1,22 +1,6 @@
|
|||||||
# Copyright (c) 2013 Nicolas Dandrimont <nicolas.dandrimont@crans.org>
|
# Copyright 2017 the authors.
|
||||||
#
|
# This file is part of Hy, which is free software licensed under the Expat
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
# license. See the LICENSE.
|
||||||
# copy of this software and associated documentation files (the "Software"),
|
|
||||||
# to deal in the Software without restriction, including without limitation
|
|
||||||
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
# and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
# Software is furnished to do so, subject to the following conditions:
|
|
||||||
#
|
|
||||||
# The above copyright notice and this permission notice shall be included in
|
|
||||||
# all copies or substantial portions of the Software.
|
|
||||||
#
|
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
# DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
from functools import wraps
|
from functools import wraps
|
||||||
from ast import literal_eval
|
from ast import literal_eval
|
||||||
|
22
hy/macros.py
22
hy/macros.py
@ -1,22 +1,6 @@
|
|||||||
# Copyright (c) 2013 Paul Tagliamonte <paultag@debian.org>
|
# Copyright 2017 the authors.
|
||||||
#
|
# This file is part of Hy, which is free software licensed under the Expat
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
# license. See the LICENSE.
|
||||||
# copy of this software and associated documentation files (the "Software"),
|
|
||||||
# to deal in the Software without restriction, including without limitation
|
|
||||||
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
# and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
# Software is furnished to do so, subject to the following conditions:
|
|
||||||
#
|
|
||||||
# The above copyright notice and this permission notice shall be included in
|
|
||||||
# all copies or substantial portions of the Software.
|
|
||||||
#
|
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
# DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
from inspect import getargspec, formatargspec
|
from inspect import getargspec, formatargspec
|
||||||
from hy.models import replace_hy_obj, wrap_value, HyExpression, HyString
|
from hy.models import replace_hy_obj, wrap_value, HyExpression, HyString
|
||||||
|
22
hy/models.py
22
hy/models.py
@ -1,22 +1,6 @@
|
|||||||
# Copyright (c) 2013 Paul Tagliamonte <paultag@debian.org>
|
# Copyright 2017 the authors.
|
||||||
#
|
# This file is part of Hy, which is free software licensed under the Expat
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
# license. See the LICENSE.
|
||||||
# copy of this software and associated documentation files (the "Software"),
|
|
||||||
# to deal in the Software without restriction, including without limitation
|
|
||||||
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
# and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
# Software is furnished to do so, subject to the following conditions:
|
|
||||||
#
|
|
||||||
# The above copyright notice and this permission notice shall be included in
|
|
||||||
# all copies or substantial portions of the Software.
|
|
||||||
#
|
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
# DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
from hy._compat import PY3, str_type, bytes_type, long_type, string_types
|
from hy._compat import PY3, str_type, bytes_type, long_type, string_types
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
;; Copyright 2017 the authors.
|
||||||
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
|
;; license. See the LICENSE.
|
||||||
|
|
||||||
;; You need to install the requests package first
|
;; You need to install the requests package first
|
||||||
|
|
||||||
(import os.path)
|
(import os.path)
|
||||||
|
22
setup.py
22
setup.py
@ -1,23 +1,7 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# Copyright (c) 2012, 2013 Paul Tagliamonte <paultag@debian.org>
|
# Copyright 2017 the authors.
|
||||||
#
|
# This file is part of Hy, which is free software licensed under the Expat
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
# license. See the LICENSE.
|
||||||
# copy of this software and associated documentation files (the "Software"),
|
|
||||||
# to deal in the Software without restriction, including without limitation
|
|
||||||
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
# and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
# Software is furnished to do so, subject to the following conditions:
|
|
||||||
#
|
|
||||||
# The above copyright notice and this permission notice shall be included in
|
|
||||||
# all copies or substantial portions of the Software.
|
|
||||||
#
|
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
# DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
@ -1,23 +1,6 @@
|
|||||||
# Copyright (c) 2013 Paul Tagliamonte <paultag@debian.org>
|
# Copyright 2017 the authors.
|
||||||
# Copyright (c) 2013 Julien Danjou <julien@danjou.info>
|
# This file is part of Hy, which is free software licensed under the Expat
|
||||||
#
|
# license. See the LICENSE.
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
||||||
# copy of this software and associated documentation files (the "Software"),
|
|
||||||
# to deal in the Software without restriction, including without limitation
|
|
||||||
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
# and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
# Software is furnished to do so, subject to the following conditions:
|
|
||||||
#
|
|
||||||
# The above copyright notice and this permission notice shall be included in
|
|
||||||
# all copies or substantial portions of the Software.
|
|
||||||
#
|
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
# DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
@ -1,23 +1,6 @@
|
|||||||
# Copyright (c) 2013 Julien Danjou <julien@danjou.info>
|
# Copyright 2017 the authors.
|
||||||
# Copyright (c) 2013 Nicolas Dandrimont <nicolas.dandrimont@crans.org>
|
# This file is part of Hy, which is free software licensed under the Expat
|
||||||
#
|
# license. See the LICENSE.
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
||||||
# copy of this software and associated documentation files (the "Software"),
|
|
||||||
# to deal in the Software without restriction, including without limitation
|
|
||||||
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
# and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
# Software is furnished to do so, subject to the following conditions:
|
|
||||||
#
|
|
||||||
# The above copyright notice and this permission notice shall be included in
|
|
||||||
# all copies or substantial portions of the Software.
|
|
||||||
#
|
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
# DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
import ast
|
import ast
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# Copyright 2017 the authors.
|
||||||
|
# This file is part of Hy, which is free software licensed under the Expat
|
||||||
|
# license. See the LICENSE.
|
||||||
|
|
||||||
from hy.importer import (import_file_to_module, import_buffer_to_ast,
|
from hy.importer import (import_file_to_module, import_buffer_to_ast,
|
||||||
MetaLoader, get_bytecode_path)
|
MetaLoader, get_bytecode_path)
|
||||||
from hy.errors import HyTypeError
|
from hy.errors import HyTypeError
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# Copyright 2017 the authors.
|
||||||
|
# This file is part of Hy, which is free software licensed under the Expat
|
||||||
|
# license. See the LICENSE.
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import imp
|
import imp
|
||||||
import tempfile
|
import tempfile
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
# Copyright 2017 the authors.
|
||||||
|
# This file is part of Hy, which is free software licensed under the Expat
|
||||||
|
# license. See the LICENSE.
|
||||||
|
|
||||||
from hy.macros import macro, macroexpand
|
from hy.macros import macro, macroexpand
|
||||||
from hy.lex import tokenize
|
from hy.lex import tokenize
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# Copyright 2017 the authors.
|
||||||
|
# This file is part of Hy, which is free software licensed under the Expat
|
||||||
|
# license. See the LICENSE.
|
||||||
|
|
||||||
from hy.macros import macroexpand
|
from hy.macros import macroexpand
|
||||||
from hy.compiler import HyTypeError, HyASTCompiler
|
from hy.compiler import HyTypeError, HyASTCompiler
|
||||||
from hy.lex import tokenize
|
from hy.lex import tokenize
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
;; Copyright 2017 the authors.
|
||||||
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
|
;; license. See the LICENSE.
|
||||||
|
|
||||||
(defmacro car [x] `(get ~x 0))
|
(defmacro car [x] `(get ~x 0))
|
||||||
(defmacro cdr [x] `(cut ~x 1))
|
(defmacro cdr [x] `(cut ~x 1))
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
;; Copyright 2017 the authors.
|
||||||
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
|
;; license. See the LICENSE.
|
||||||
|
|
||||||
(import
|
(import
|
||||||
[hy.contrib.hy-repr [hy-repr]])
|
[hy.contrib.hy-repr [hy-repr]])
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
;; Copyright 2017 the authors.
|
||||||
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
|
;; license. See the LICENSE.
|
||||||
|
|
||||||
(require [hy.contrib.loop [loop]])
|
(require [hy.contrib.loop [loop]])
|
||||||
(import sys)
|
(import sys)
|
||||||
|
|
||||||
|
@ -1,23 +1,6 @@
|
|||||||
;; Copyright (c) 2014 Morten Linderud <mcfoxax@gmail.com>
|
;; Copyright 2017 the authors.
|
||||||
;; Copyright (c) 2016 Tuukka Turto <tuukka.turto@oktaeder.net>
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
|
;; license. See the LICENSE.
|
||||||
;; Permission is hereby granted, free of charge, to any person obtaining a
|
|
||||||
;; copy of this software and associated documentation files (the "Software"),
|
|
||||||
;; to deal in the Software without restriction, including without limitation
|
|
||||||
;; the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
;; and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
;; Software is furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
;; The above copyright notice and this permission notice shall be included in
|
|
||||||
;; all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
;; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
;; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
;; THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
;; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
;; FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
;; DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
(require [hy.contrib.multi [defmulti defmethod default-method defn]])
|
(require [hy.contrib.multi [defmulti defmethod default-method defn]])
|
||||||
|
|
||||||
|
@ -1,23 +1,6 @@
|
|||||||
;; Copyright (c) 2016 Tuukka Turto <tuukka.turto@oktaeder.net>
|
;; Copyright 2017 the authors.
|
||||||
;;
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
;; Permission is hereby granted, free of charge, to any person obtaining a
|
;; license. See the LICENSE.
|
||||||
;; copy of this software and associated documentation files (the "Software"),
|
|
||||||
;; to deal in the Software without restriction, including without limitation
|
|
||||||
;; the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
;; and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
;; Software is furnished to do so, subject to the following conditions:
|
|
||||||
;;
|
|
||||||
;; The above copyright notice and this permission notice shall be included in
|
|
||||||
;; all copies or substantial portions of the Software.
|
|
||||||
;;
|
|
||||||
;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
;; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
;; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
;; THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
;; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
;; FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
;; DEALINGS IN THE SOFTWARE.
|
|
||||||
;;
|
|
||||||
|
|
||||||
(require [hy.contrib.sequences [seq defseq]])
|
(require [hy.contrib.sequences [seq defseq]])
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
;; Copyright 2017 the authors.
|
||||||
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
|
;; license. See the LICENSE.
|
||||||
|
|
||||||
(import [hy.contrib.walk [*]])
|
(import [hy.contrib.walk [*]])
|
||||||
|
|
||||||
(def walk-form '(print {"foo" "bar"
|
(def walk-form '(print {"foo" "bar"
|
||||||
|
@ -1,23 +1,6 @@
|
|||||||
;; Copyright (c) 2013 Paul Tagliamonte <paultag@debian.org>
|
;; Copyright 2017 the authors.
|
||||||
;; Copyright (c) 2013, 2014 Bob Tolbert <bob@tolbert.org>
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
|
;; license. See the LICENSE.
|
||||||
;; Permission is hereby granted, free of charge, to any person obtaining a
|
|
||||||
;; copy of this software and associated documentation files (the "Software"),
|
|
||||||
;; to deal in the Software without restriction, including without limitation
|
|
||||||
;; the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
;; and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
;; Software is furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
;; The above copyright notice and this permission notice shall be included in
|
|
||||||
;; all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
;; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
;; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
;; THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
;; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
;; FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
;; DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
(import [hy._compat [PY3]])
|
(import [hy._compat [PY3]])
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
;; Copyright 2017 the authors.
|
||||||
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
|
;; license. See the LICENSE.
|
||||||
|
|
||||||
(defn test-defclass []
|
(defn test-defclass []
|
||||||
"NATIVE: test defclass simple mechanism"
|
"NATIVE: test defclass simple mechanism"
|
||||||
(defclass A)
|
(defclass A)
|
||||||
|
@ -1,22 +1,6 @@
|
|||||||
;; Copyright (c) 2013 James King <james@agentultra.com>
|
;; Copyright 2017 the authors.
|
||||||
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
;; Permission is hereby granted, free of charge, to any person obtaining a
|
;; license. See the LICENSE.
|
||||||
;; copy of this software and associated documentation files (the "Software"),
|
|
||||||
;; to deal in the Software without restriction, including without limitation
|
|
||||||
;; the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
;; and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
;; Software is furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
;; The above copyright notice and this permission notice shall be included in
|
|
||||||
;; all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
;; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
;; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
;; THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
;; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
;; FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
;; DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
(import [hy.errors [HyMacroExpansionError]])
|
(import [hy.errors [HyMacroExpansionError]])
|
||||||
(require [hy.extra.anaphoric [*]])
|
(require [hy.extra.anaphoric [*]])
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
;; Copyright 2017 the authors.
|
||||||
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
|
;; license. See the LICENSE.
|
||||||
|
|
||||||
(import [hy.extra.reserved [names]] [hy._compat [PY3]])
|
(import [hy.extra.reserved [names]] [hy._compat [PY3]])
|
||||||
|
|
||||||
(defn test-reserved []
|
(defn test-reserved []
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
;; Copyright 2017 the authors.
|
||||||
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
|
;; license. See the LICENSE.
|
||||||
|
|
||||||
(import [tests.resources [kwtest function-with-a-dash]]
|
(import [tests.resources [kwtest function-with-a-dash]]
|
||||||
[os.path [exists isdir isfile]]
|
[os.path [exists isdir isfile]]
|
||||||
[sys :as systest]
|
[sys :as systest]
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
;; Copyright 2017 the authors.
|
||||||
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
|
;; license. See the LICENSE.
|
||||||
|
|
||||||
(import [hy._compat [PY35]])
|
(import [hy._compat [PY35]])
|
||||||
|
|
||||||
(setv square (fn [x]
|
(setv square (fn [x]
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
;; Copyright 2017 the authors.
|
||||||
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
|
;; license. See the LICENSE.
|
||||||
|
|
||||||
(import [hy.errors [HyTypeError]])
|
(import [hy.errors [HyTypeError]])
|
||||||
|
|
||||||
(defmacro rev [&rest body]
|
(defmacro rev [&rest body]
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
;; Copyright 2017 the authors.
|
||||||
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
|
;; license. See the LICENSE.
|
||||||
|
|
||||||
(import pytest [hy._compat [PY35]])
|
(import pytest [hy._compat [PY35]])
|
||||||
|
|
||||||
(defmacro op-and-shadow-test [op &rest body]
|
(defmacro op-and-shadow-test [op &rest body]
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
;; Copyright 2017 the authors.
|
||||||
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
|
;; license. See the LICENSE.
|
||||||
|
|
||||||
;; Tests where the emitted code relies on Python 3.
|
;; Tests where the emitted code relies on Python 3.
|
||||||
;; conftest.py skips this file when running on Python 2.
|
;; conftest.py skips this file when running on Python 2.
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
;; Copyright 2017 the authors.
|
||||||
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
|
;; license. See the LICENSE.
|
||||||
|
|
||||||
(import [hy [HyExpression HySymbol HyString HyBytes]])
|
(import [hy [HyExpression HySymbol HyString HyBytes]])
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
;; Copyright 2017 the authors.
|
||||||
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
|
;; license. See the LICENSE.
|
||||||
|
|
||||||
(import [functools [wraps]])
|
(import [functools [wraps]])
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
;; Copyright 2017 the authors.
|
||||||
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
|
;; license. See the LICENSE.
|
||||||
|
|
||||||
(defn test-decorated-1line-function []
|
(defn test-decorated-1line-function []
|
||||||
(defn foodec [func]
|
(defn foodec [func]
|
||||||
(fn [] (+ (func) 1)))
|
(fn [] (+ (func) 1)))
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
;; Copyright 2017 the authors.
|
||||||
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
|
;; license. See the LICENSE.
|
||||||
|
|
||||||
(defclass WithTest [object]
|
(defclass WithTest [object]
|
||||||
(defn --init-- [self val]
|
(defn --init-- [self val]
|
||||||
(setv self.val val)
|
(setv self.val val)
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
def kwtest(*args, **kwargs):
|
def kwtest(*args, **kwargs):
|
||||||
return kwargs
|
return kwargs
|
||||||
|
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
#!/usr/bin/env hy
|
#!/usr/bin/env hy
|
||||||
|
;; Copyright 2017 the authors.
|
||||||
|
;; This file is part of Hy, which is free software licensed under the Expat
|
||||||
|
;; license. See the LICENSE.
|
||||||
|
|
||||||
(import sys)
|
(import sys)
|
||||||
(import argparse)
|
(import argparse)
|
||||||
|
@ -1,26 +1,9 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# -*- encoding: utf-8 -*-
|
# -*- encoding: utf-8 -*-
|
||||||
# Copyright (c) 2013 Julien Danjou <julien@danjou.info>
|
# Copyright 2017 the authors.
|
||||||
# Copyright (c) 2013 Will Kahn-Greene <willg@bluesock.org>
|
# This file is part of Hy, which is free software licensed under the Expat
|
||||||
# Copyright (c) 2014 Bob Tolbert <bob@tolbert.org>
|
# license. See the LICENSE.
|
||||||
#
|
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
||||||
# copy of this software and associated documentation files (the "Software"),
|
|
||||||
# to deal in the Software without restriction, including without limitation
|
|
||||||
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
# and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
# Software is furnished to do so, subject to the following conditions:
|
|
||||||
#
|
|
||||||
# The above copyright notice and this permission notice shall be included in
|
|
||||||
# all copies or substantial portions of the Software.
|
|
||||||
#
|
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
# DEALINGS IN THE SOFTWARE.
|
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import re
|
import re
|
||||||
|
@ -1,23 +1,6 @@
|
|||||||
# Copyright (c) 2013 Paul Tagliamonte <paultag@debian.org>
|
# Copyright 2017 the authors.
|
||||||
# Copyright (c) 2014 Nicolas Dandrimont <nicolas.dandrimont@crans.org>
|
# This file is part of Hy, which is free software licensed under the Expat
|
||||||
#
|
# license. See the LICENSE.
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
||||||
# copy of this software and associated documentation files (the "Software"),
|
|
||||||
# to deal in the Software without restriction, including without limitation
|
|
||||||
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
# and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
# Software is furnished to do so, subject to the following conditions:
|
|
||||||
#
|
|
||||||
# The above copyright notice and this permission notice shall be included in
|
|
||||||
# all copies or substantial portions of the Software.
|
|
||||||
#
|
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
# DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
from hy.models import (HyExpression, HyInteger, HyFloat, HyComplex, HySymbol,
|
from hy.models import (HyExpression, HyInteger, HyFloat, HyComplex, HySymbol,
|
||||||
HyString, HyDict, HyList, HySet, HyCons)
|
HyString, HyDict, HyList, HySet, HyCons)
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# Copyright 2017 the authors.
|
||||||
|
# This file is part of Hy, which is free software licensed under the Expat
|
||||||
|
# license. See the LICENSE.
|
||||||
|
|
||||||
from hy._compat import long_type, str_type
|
from hy._compat import long_type, str_type
|
||||||
from hy.models import (wrap_value, replace_hy_obj, HyString, HyInteger, HyList,
|
from hy.models import (wrap_value, replace_hy_obj, HyString, HyInteger, HyList,
|
||||||
HyDict, HySet, HyExpression, HyCons)
|
HyDict, HySet, HyExpression, HyCons)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user