1 | 1 |
-- emmental.hs
|
2 | 2 |
-- Interpreter for the Emmental Programming Language
|
3 | 3 |
-- Chris Pressey, Cat's Eye Technologies
|
4 | |
--
|
5 | |
-- $Id: emmental.hs 5 2007-11-12 04:36:43Z catseye $
|
6 | |
--
|
7 | |
|
8 | |
--
|
9 | |
-- Copyright (c)2007 Cat's Eye Technologies. All rights reserved.
|
10 | |
--
|
11 | |
-- Redistribution and use in source and binary forms, with or without
|
12 | |
-- modification, are permitted provided that the following conditions
|
13 | |
-- are met:
|
14 | |
--
|
15 | |
-- 1. Redistributions of source code must retain the above copyright
|
16 | |
-- notices, this list of conditions and the following disclaimer.
|
17 | |
-- 2. Redistributions in binary form must reproduce the above copyright
|
18 | |
-- notices, this list of conditions, and the following disclaimer in
|
19 | |
-- the documentation and/or other materials provided with the
|
20 | |
-- distribution.
|
21 | |
-- 3. Neither the names of the copyright holders nor the names of their
|
22 | |
-- contributors may be used to endorse or promote products derived
|
23 | |
-- from this software without specific prior written permission.
|
24 | |
--
|
25 | |
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
26 | |
-- ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
27 | |
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
28 | |
-- FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
29 | |
-- COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
30 | |
-- INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
31 | |
-- BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
32 | |
-- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
33 | |
-- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
34 | |
-- LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
35 | |
-- ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
36 | |
-- POSSIBILITY OF SUCH DAMAGE.
|
|
4 |
-- This work is in the public domain. See UNLICENSE for more information.
|
37 | 5 |
--
|
38 | 6 |
|
39 | 7 |
|
40 | 8 |
import qualified Data.Map as Map
|
41 | 9 |
import qualified Data.Char as Char
|
|
10 |
|
42 | 11 |
|
43 | 12 |
-----------------------------------------------------------------------
|
44 | 13 |
-- ============================ Symbols ============================ --
|