impl step2, remove interleaved calls in READ/EVAL/PRINT
[jackhill/mal.git] / LICENSE
CommitLineData
fd888612
JM
1Copyright (C) 2015 Joel Martin <github@martintribe.org>
2
3Mal (make-a-lisp) is licensed under the MPL 2.0 (Mozilla Public
4License 2.0). The text of the MPL 2.0 license is included below and
5can be found at https://www.mozilla.org/MPL/2.0/
6
0198b7a2 7Many of the implementations run or compile using a line editing
fd888612
JM
8library. In some cases, the implementations provide an option in the
9code to switch between the GNU GPL licensed GNU readline library and
10the BSD licensed editline (libedit) library.
11
12
13Mozilla Public License Version 2.0
14==================================
15
161. Definitions
17--------------
18
191.1. "Contributor"
20 means each individual or legal entity that creates, contributes to
21 the creation of, or owns Covered Software.
22
231.2. "Contributor Version"
24 means the combination of the Contributions of others (if any) used
25 by a Contributor and that particular Contributor's Contribution.
26
271.3. "Contribution"
28 means Covered Software of a particular Contributor.
29
301.4. "Covered Software"
31 means Source Code Form to which the initial Contributor has attached
32 the notice in Exhibit A, the Executable Form of such Source Code
33 Form, and Modifications of such Source Code Form, in each case
34 including portions thereof.
35
361.5. "Incompatible With Secondary Licenses"
37 means
38
39 (a) that the initial Contributor has attached the notice described
40 in Exhibit B to the Covered Software; or
41
42 (b) that the Covered Software was made available under the terms of
43 version 1.1 or earlier of the License, but not also under the
44 terms of a Secondary License.
45
461.6. "Executable Form"
47 means any form of the work other than Source Code Form.
48
491.7. "Larger Work"
50 means a work that combines Covered Software with other material, in
51 a separate file or files, that is not Covered Software.
52
531.8. "License"
54 means this document.
55
561.9. "Licensable"
57 means having the right to grant, to the maximum extent possible,
58 whether at the time of the initial grant or subsequently, any and
59 all of the rights conveyed by this License.
60
611.10. "Modifications"
62 means any of the following:
63
64 (a) any file in Source Code Form that results from an addition to,
65 deletion from, or modification of the contents of Covered
66 Software; or
67
68 (b) any new file in Source Code Form that contains any Covered
69 Software.
70
711.11. "Patent Claims" of a Contributor
72 means any patent claim(s), including without limitation, method,
73 process, and apparatus claims, in any patent Licensable by such
74 Contributor that would be infringed, but for the grant of the
75 License, by the making, using, selling, offering for sale, having
76 made, import, or transfer of either its Contributions or its
77 Contributor Version.
78
791.12. "Secondary License"
80 means either the GNU General Public License, Version 2.0, the GNU
81 Lesser General Public License, Version 2.1, the GNU Affero General
82 Public License, Version 3.0, or any later versions of those
83 licenses.
84
851.13. "Source Code Form"
86 means the form of the work preferred for making modifications.
87
881.14. "You" (or "Your")
89 means an individual or a legal entity exercising rights under this
90 License. For legal entities, "You" includes any entity that
91 controls, is controlled by, or is under common control with You. For
92 purposes of this definition, "control" means (a) the power, direct
93 or indirect, to cause the direction or management of such entity,
94 whether by contract or otherwise, or (b) ownership of more than
95 fifty percent (50%) of the outstanding shares or beneficial
96 ownership of such entity.
97
982. License Grants and Conditions
99--------------------------------
100
1012.1. Grants
102
103Each Contributor hereby grants You a world-wide, royalty-free,
104non-exclusive license:
105
106(a) under intellectual property rights (other than patent or trademark)
107 Licensable by such Contributor to use, reproduce, make available,
108 modify, display, perform, distribute, and otherwise exploit its
109 Contributions, either on an unmodified basis, with Modifications, or
110 as part of a Larger Work; and
111
112(b) under Patent Claims of such Contributor to make, use, sell, offer
113 for sale, have made, import, and otherwise transfer either its
114 Contributions or its Contributor Version.
115
1162.2. Effective Date
117
118The licenses granted in Section 2.1 with respect to any Contribution
119become effective for each Contribution on the date the Contributor first
120distributes such Contribution.
121
1222.3. Limitations on Grant Scope
123
124The licenses granted in this Section 2 are the only rights granted under
125this License. No additional rights or licenses will be implied from the
126distribution or licensing of Covered Software under this License.
127Notwithstanding Section 2.1(b) above, no patent license is granted by a
128Contributor:
129
130(a) for any code that a Contributor has removed from Covered Software;
131 or
132
133(b) for infringements caused by: (i) Your and any other third party's
134 modifications of Covered Software, or (ii) the combination of its
135 Contributions with other software (except as part of its Contributor
136 Version); or
137
138(c) under Patent Claims infringed by Covered Software in the absence of
139 its Contributions.
140
141This License does not grant any rights in the trademarks, service marks,
142or logos of any Contributor (except as may be necessary to comply with
143the notice requirements in Section 3.4).
144
1452.4. Subsequent Licenses
146
147No Contributor makes additional grants as a result of Your choice to
148distribute the Covered Software under a subsequent version of this
149License (see Section 10.2) or under the terms of a Secondary License (if
150permitted under the terms of Section 3.3).
151
1522.5. Representation
153
154Each Contributor represents that the Contributor believes its
155Contributions are its original creation(s) or it has sufficient rights
156to grant the rights to its Contributions conveyed by this License.
157
1582.6. Fair Use
159
160This License is not intended to limit any rights You have under
161applicable copyright doctrines of fair use, fair dealing, or other
162equivalents.
163
1642.7. Conditions
165
166Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
167in Section 2.1.
168
1693. Responsibilities
170-------------------
171
1723.1. Distribution of Source Form
173
174All distribution of Covered Software in Source Code Form, including any
175Modifications that You create or to which You contribute, must be under
176the terms of this License. You must inform recipients that the Source
177Code Form of the Covered Software is governed by the terms of this
178License, and how they can obtain a copy of this License. You may not
179attempt to alter or restrict the recipients' rights in the Source Code
180Form.
181
1823.2. Distribution of Executable Form
183
184If You distribute Covered Software in Executable Form then:
185
186(a) such Covered Software must also be made available in Source Code
187 Form, as described in Section 3.1, and You must inform recipients of
188 the Executable Form how they can obtain a copy of such Source Code
189 Form by reasonable means in a timely manner, at a charge no more
190 than the cost of distribution to the recipient; and
191
192(b) You may distribute such Executable Form under the terms of this
193 License, or sublicense it under different terms, provided that the
194 license for the Executable Form does not attempt to limit or alter
195 the recipients' rights in the Source Code Form under this License.
196
1973.3. Distribution of a Larger Work
198
199You may create and distribute a Larger Work under terms of Your choice,
200provided that You also comply with the requirements of this License for
201the Covered Software. If the Larger Work is a combination of Covered
202Software with a work governed by one or more Secondary Licenses, and the
203Covered Software is not Incompatible With Secondary Licenses, this
204License permits You to additionally distribute such Covered Software
205under the terms of such Secondary License(s), so that the recipient of
206the Larger Work may, at their option, further distribute the Covered
207Software under the terms of either this License or such Secondary
208License(s).
209
2103.4. Notices
211
212You may not remove or alter the substance of any license notices
213(including copyright notices, patent notices, disclaimers of warranty,
214or limitations of liability) contained within the Source Code Form of
215the Covered Software, except that You may alter any license notices to
216the extent required to remedy known factual inaccuracies.
217
2183.5. Application of Additional Terms
219
220You may choose to offer, and to charge a fee for, warranty, support,
221indemnity or liability obligations to one or more recipients of Covered
222Software. However, You may do so only on Your own behalf, and not on
223behalf of any Contributor. You must make it absolutely clear that any
224such warranty, support, indemnity, or liability obligation is offered by
225You alone, and You hereby agree to indemnify every Contributor for any
226liability incurred by such Contributor as a result of warranty, support,
227indemnity or liability terms You offer. You may include additional
228disclaimers of warranty and limitations of liability specific to any
229jurisdiction.
230
2314. Inability to Comply Due to Statute or Regulation
232---------------------------------------------------
233
234If it is impossible for You to comply with any of the terms of this
235License with respect to some or all of the Covered Software due to
236statute, judicial order, or regulation then You must: (a) comply with
237the terms of this License to the maximum extent possible; and (b)
238describe the limitations and the code they affect. Such description must
239be placed in a text file included with all distributions of the Covered
240Software under this License. Except to the extent prohibited by statute
241or regulation, such description must be sufficiently detailed for a
242recipient of ordinary skill to be able to understand it.
243
2445. Termination
245--------------
246
2475.1. The rights granted under this License will terminate automatically
248if You fail to comply with any of its terms. However, if You become
249compliant, then the rights granted under this License from a particular
250Contributor are reinstated (a) provisionally, unless and until such
251Contributor explicitly and finally terminates Your grants, and (b) on an
252ongoing basis, if such Contributor fails to notify You of the
253non-compliance by some reasonable means prior to 60 days after You have
254come back into compliance. Moreover, Your grants from a particular
255Contributor are reinstated on an ongoing basis if such Contributor
256notifies You of the non-compliance by some reasonable means, this is the
257first time You have received notice of non-compliance with this License
258from such Contributor, and You become compliant prior to 30 days after
259Your receipt of the notice.
260
2615.2. If You initiate litigation against any entity by asserting a patent
262infringement claim (excluding declaratory judgment actions,
263counter-claims, and cross-claims) alleging that a Contributor Version
264directly or indirectly infringes any patent, then the rights granted to
265You by any and all Contributors for the Covered Software under Section
2662.1 of this License shall terminate.
267
2685.3. In the event of termination under Sections 5.1 or 5.2 above, all
269end user license agreements (excluding distributors and resellers) which
270have been validly granted by You or Your distributors under this License
271prior to termination shall survive termination.
272
273************************************************************************
274* *
275* 6. Disclaimer of Warranty *
276* ------------------------- *
277* *
278* Covered Software is provided under this License on an "as is" *
279* basis, without warranty of any kind, either expressed, implied, or *
280* statutory, including, without limitation, warranties that the *
281* Covered Software is free of defects, merchantable, fit for a *
282* particular purpose or non-infringing. The entire risk as to the *
283* quality and performance of the Covered Software is with You. *
284* Should any Covered Software prove defective in any respect, You *
285* (not any Contributor) assume the cost of any necessary servicing, *
286* repair, or correction. This disclaimer of warranty constitutes an *
287* essential part of this License. No use of any Covered Software is *
288* authorized under this License except under this disclaimer. *
289* *
290************************************************************************
291
292************************************************************************
293* *
294* 7. Limitation of Liability *
295* -------------------------- *
296* *
297* Under no circumstances and under no legal theory, whether tort *
298* (including negligence), contract, or otherwise, shall any *
299* Contributor, or anyone who distributes Covered Software as *
300* permitted above, be liable to You for any direct, indirect, *
301* special, incidental, or consequential damages of any character *
302* including, without limitation, damages for lost profits, loss of *
303* goodwill, work stoppage, computer failure or malfunction, or any *
304* and all other commercial damages or losses, even if such party *
305* shall have been informed of the possibility of such damages. This *
306* limitation of liability shall not apply to liability for death or *
307* personal injury resulting from such party's negligence to the *
308* extent applicable law prohibits such limitation. Some *
309* jurisdictions do not allow the exclusion or limitation of *
310* incidental or consequential damages, so this exclusion and *
311* limitation may not apply to You. *
312* *
313************************************************************************
314
3158. Litigation
316-------------
317
318Any litigation relating to this License may be brought only in the
319courts of a jurisdiction where the defendant maintains its principal
320place of business and such litigation shall be governed by laws of that
321jurisdiction, without reference to its conflict-of-law provisions.
322Nothing in this Section shall prevent a party's ability to bring
323cross-claims or counter-claims.
324
3259. Miscellaneous
326----------------
327
328This License represents the complete agreement concerning the subject
329matter hereof. If any provision of this License is held to be
330unenforceable, such provision shall be reformed only to the extent
331necessary to make it enforceable. Any law or regulation which provides
332that the language of a contract shall be construed against the drafter
333shall not be used to construe this License against a Contributor.
334
33510. Versions of the License
336---------------------------
337
33810.1. New Versions
339
340Mozilla Foundation is the license steward. Except as provided in Section
34110.3, no one other than the license steward has the right to modify or
342publish new versions of this License. Each version will be given a
343distinguishing version number.
344
34510.2. Effect of New Versions
346
347You may distribute the Covered Software under the terms of the version
348of the License under which You originally received the Covered Software,
349or under the terms of any subsequent version published by the license
350steward.
351
35210.3. Modified Versions
353
354If you create software not governed by this License, and you want to
355create a new license for such software, you may create and use a
356modified version of this License if you rename the license and remove
357any references to the name of the license steward (except to note that
358such modified license differs from this License).
359
36010.4. Distributing Source Code Form that is Incompatible With Secondary
361Licenses
362
363If You choose to distribute Source Code Form that is Incompatible With
364Secondary Licenses under the terms of this version of the License, the
365notice described in Exhibit B of this License must be attached.
366
367Exhibit A - Source Code Form License Notice
368-------------------------------------------
369
370 This Source Code Form is subject to the terms of the Mozilla Public
371 License, v. 2.0. If a copy of the MPL was not distributed with this
372 file, You can obtain one at http://mozilla.org/MPL/2.0/.
373
374If it is not possible or desirable to put the notice in a particular
375file, then You may include the notice in a location (such as a LICENSE
376file in a relevant directory) where a recipient would be likely to look
377for such a notice.
378
379You may add additional accurate notices of copyright ownership.
380
381Exhibit B - "Incompatible With Secondary Licenses" Notice
382---------------------------------------------------------
383
384 This Source Code Form is "Incompatible With Secondary Licenses", as
385 defined by the Mozilla Public License, v. 2.0.
386
387