git @ Cat's Eye Technologies Pail / ce8a385
Add README and LICENSE. Cat's Eye Technologies 9 years ago
3 changed file(s) with 53 addition(s) and 32 deletion(s). Raw diff Collapse all Expand all
0 Copyright (c)2011-2013 Chris Pressey, Cat's Eye Technologies.
1 All rights reserved.
2
3 Redistribution and use in source and binary forms, with or without
4 modification, are permitted provided that the following conditions
5 are met:
6
7 1. Redistributions of source code must retain the above copyright
8 notices, this list of conditions and the following disclaimer.
9 2. Redistributions in binary form must reproduce the above copyright
10 notices, this list of conditions, and the following disclaimer in
11 the documentation and/or other materials provided with the
12 distribution.
13 3. Neither the names of the copyright holders nor the names of their
14 contributors may be used to endorse or promote products derived
15 from this software without specific prior written permission.
16
17 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18 ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
20 FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
21 COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
22 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
23 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
27 ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 POSSIBILITY OF SUCH DAMAGE.
0 Pail
1 ====
2
3 Pail is a programming language based on pairs; just as Lisp stands for
4 *LIS*t *P*rocessing, Pail stands for *PAI*r *L*anguage.
5
6 This is the reference distribution for Pail.
7
8 The Pail programming language is documented in the literate source code
9 of its reference interpreter, `Pail.lhs`, which can be found in the `src`
10 subdirectory. Some tests, in Falderal format, which might clarify the
11 intended behaviour can also be found in `Pail.markdown` in the `tests`
12 subdirectory.
13
14 These files are distributed under a 3-clause BSD license. See the file
15 `LICENSE` for the license text.
16
17 For more information on the language, see the [Pail][] entry at
18 Cat's Eye Technologies.
19
20 [Pail]: http://catseye.tc/node/Pail
00 > module Pail where
1
2 > --
3 > -- Pail.lhs -- reference implementation of the Pail programming language
4 > -- Copyright (c)2011 Cat's Eye Technologies. All rights reserved.
5 > --
6 > -- Redistribution and use in source and binary forms, with or without
7 > -- modification, are permitted provided that the following conditions
8 > -- are met:
9 > --
10 > -- 1. Redistributions of source code must retain the above copyright
11 > -- notices, this list of conditions and the following disclaimer.
12 > -- 2. Redistributions in binary form must reproduce the above copyright
13 > -- notices, this list of conditions, and the following disclaimer in
14 > -- the documentation and/or other materials provided with the
15 > -- distribution.
16 > -- 3. Neither the names of the copyright holders nor the names of their
17 > -- contributors may be used to endorse or promote products derived
18 > -- from this software without specific prior written permission.
19 > --
20 > -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 > -- ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 > -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
23 > -- FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
24 > -- COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
25 > -- INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
26 > -- BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27 > -- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28 > -- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 > -- LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
30 > -- ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 > -- POSSIBILITY OF SUCH DAMAGE.
32 > --
331
342 Pail
353 ====
10977 I didn't ever really figure out how to program in Rho, and I really haven't
11078 figured out how to program in Pail. But maybe someone else will, and maybe
11179 that will shed some more light on Rho.
80
81 What follows is `Pail.lhs`, the reference implementation of the Pail
82 programming language.
11283
11384 > import Text.ParserCombinators.Parsec
11485 > import qualified Data.Map as Map