git @ Cat's Eye Technologies Unlikely / f475360
Place under a BSD license (I thought it already was...) catseye 9 years ago
6 changed file(s) with 103 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
0 Unlikely is distributed under the following, BSD-compatible licenses.
1
2 All documentation and tests are covered by this license, modelled
3 after the "Report on the Programming Language Haskell 98" license:
4
5 -----------------------------------------------------------------------------
6
7 Copyright (c)2010-2012 Chris Pressey, Cat's Eye Technologies.
8
9 The authors intend this Report to belong to the entire Unlikely
10 community, and so we grant permission to copy and distribute it for
11 any purpose, provided that it is reproduced in its entirety,
12 including this Notice. Modified versions of this Report may also be
13 copied and distributed for any purpose, provided that the modified
14 version is clearly presented as such, and that it does not claim to
15 be a definition of the Unlikely Programming Language.
16
17 -----------------------------------------------------------------------------
18
19 All source code for the Coldwater static analyzer for Unlikely is covered by
20 this license:
21
22 -----------------------------------------------------------------------------
23
24 Copyright (c)2010-2012 Chris Pressey, Cat's Eye Technologies.
25 All rights reserved.
26
27 Redistribution and use in source and binary forms, with or without
28 modification, are permitted provided that the following conditions
29 are met:
30
31 1. Redistributions of source code must retain the above copyright
32 notices, this list of conditions and the following disclaimer.
33 2. Redistributions in binary form must reproduce the above copyright
34 notices, this list of conditions, and the following disclaimer in
35 the documentation and/or other materials provided with the
36 distribution.
37 3. Neither the names of the copyright holders nor the names of their
38 contributors may be used to endorse or promote products derived
39 from this software without specific prior written permission.
40
41 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
42 ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
43 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
44 FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
45 COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
46 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
47 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
48 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
49 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
50 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
51 ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
52 POSSIBILITY OF SUCH DAMAGE.
53
54 -----------------------------------------------------------------------------
55
56 Finally, all example Unlikely programs in the "eg" directory are in the
57 public domain, as described in the following Unlicense:
58
59 -----------------------------------------------------------------------------
60
61 This is free and unencumbered software released into the public domain.
62
63 Anyone is free to copy, modify, publish, use, compile, sell, or
64 distribute this software, either in source code form or as a compiled
65 binary, for any purpose, commercial or non-commercial, and by any
66 means.
67
68 In jurisdictions that recognize copyright laws, the author or authors
69 of this software dedicate any and all copyright interest in the
70 software to the public domain. We make this dedication for the benefit
71 of the public at large and to the detriment of our heirs and
72 successors. We intend this dedication to be an overt act of
73 relinquishment in perpetuity of all present and future rights to this
74 software under copyright law.
75
76 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
77 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
78 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
79 IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
80 OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
81 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
82 OTHER DEALINGS IN THE SOFTWARE.
83
84 For more information, please refer to <http://unlicense.org/>
00 #!/usr/bin/python
11 # -*- coding: utf-8 -*-
22
3 # (c)2010-2012 Chris Pressey, Cat's Eye Technologies.
4 # All rights reserved. Released under a BSD-style license (see LICENSE).
5
36 """
47 The Coldwater static analyzer for the Unlikely programming language.
5 $Id: coldwater.py 318 2010-01-07 01:49:38Z cpressey $
68 """
79
810 import sys
00 # -*- coding: utf-8 -*-
1
2 # (c)2010-2012 Chris Pressey, Cat's Eye Technologies.
3 # All rights reserved. Released under a BSD-style license (see LICENSE).
14
25 """
36 Abstract Syntax Trees for the Unlikely programming language.
00 # -*- coding: utf-8 -*-
1
2 # (c)2010-2012 Chris Pressey, Cat's Eye Technologies.
3 # All rights reserved. Released under a BSD-style license (see LICENSE).
14
25 """
36 Parser for the Unlikely programming language.
4 $Id: parser.py 318 2010-01-07 01:49:38Z cpressey $
7
8 (c)2010-2012 Chris Pressey, Cat's Eye Technologies.
9 All rights reserved. Released under a BSD-style license (see LICENSE).
510
611 Based on the following EBNF grammar:
712
00 # -*- coding: utf-8 -*-
1
2 # (c)2010-2012 Chris Pressey, Cat's Eye Technologies.
3 # All rights reserved. Released under a BSD-style license (see LICENSE).
14
25 """
36 Lexical scanner for the Unlikely programming language.
4 $Id: scanner.py 318 2010-01-07 01:49:38Z cpressey $
57 """
68
79
00 # -*- coding: utf-8 -*-
1
2 # (c)2010-2012 Chris Pressey, Cat's Eye Technologies.
3 # All rights reserved. Released under a BSD-style license (see LICENSE).
14
25 """
36 Pre-built AST representing built-in Unlikely classes.
4 $Id: stdlib.py 318 2010-01-07 01:49:38Z cpressey $
57 """
68
79 import ast