baum

changeset 16:b62288419c1c

added README and LICENSE; changed error code of invalid node
author meillo@marmaro.de
date Wed, 13 Feb 2008 20:33:39 +0100
parents e2048e569891
children 16934645036f
files LICENSE README actions.c
diffstat 3 files changed, 58 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/LICENSE	Wed Feb 13 20:33:39 2008 +0100
     1.3 @@ -0,0 +1,21 @@
     1.4 +MIT/X Consortium License
     1.5 +
     1.6 +Copyright 2008 markus schnalke <meillo@marmaro.de>
     1.7 +
     1.8 +Permission is hereby granted, free of charge, to any person obtaining a
     1.9 +copy of this software and associated documentation files (the "Software"),
    1.10 +to deal in the Software without restriction, including without limitation
    1.11 +the rights to use, copy, modify, merge, publish, distribute, sublicense,
    1.12 +and/or sell copies of the Software, and to permit persons to whom the 
    1.13 +Software is furnished to do so, subject to the following conditions:
    1.14 +
    1.15 +The above copyright notice and this permission notice shall be included in 
    1.16 +all copies or substantial portions of the Software. 
    1.17 +
    1.18 +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
    1.19 +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
    1.20 +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL 
    1.21 +THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
    1.22 +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
    1.23 +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 
    1.24 +DEALINGS IN THE SOFTWARE.
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/README	Wed Feb 13 20:33:39 2008 +0100
     2.3 @@ -0,0 +1,36 @@
     2.4 +baum - an esoteric programming language
     2.5 +=======================================
     2.6 +baum is my first try to create an esoteric programming language. It bases on
     2.7 +the idea to have a tree as source code structure. You should see baum as an
     2.8 +experiment, it also offers only very restricted possibilities by now.
     2.9 +
    2.10 +
    2.11 +Installation
    2.12 +------------
    2.13 +Enter the following command to build and install baum (if necessary as root):
    2.14 +
    2.15 +    make clean install
    2.16 +
    2.17 +
    2.18 +Using baum
    2.19 +----------
    2.20 +See man page or the examples that are shipped with the program to learn how to
    2.21 +program in the baum language.
    2.22 +
    2.23 +To check you sources run
    2.24 +
    2.25 +    baum -c sourcefile.baum
    2.26 +
    2.27 +If it exited successful, run the program with
    2.28 +
    2.29 +    baum sourcefile.baum
    2.30 +
    2.31 +
    2.32 +
    2.33 +Feedback
    2.34 +--------
    2.35 +Contact me if you are interested in baum. I would like to talk to you :-)
    2.36 +
    2.37 +
    2.38 +
    2.39 +markus schnalke <meillo@marmaro.de>
     3.1 --- a/actions.c	Wed Feb 13 09:57:07 2008 +0100
     3.2 +++ b/actions.c	Wed Feb 13 20:33:39 2008 +0100
     3.3 @@ -37,7 +37,7 @@
     3.4  
     3.5  	} else {
     3.6  		fprintf(stderr, "unknown kind of node");
     3.7 -		exit(1);
     3.8 +		exit(4);
     3.9  	}
    3.10  }
    3.11