git @ Cat's Eye Technologies Version / 6d02f44
Update to version 1.0 revision 2010.0429. Cat's Eye Technologies 11 years ago
2 changed file(s) with 30 addition(s) and 31 deletion(s). Raw diff Collapse all Expand all
0 <html><head>
1 <meta http-equiv="Content-Type" content="text/html;CHARSET=iso-8859-1">
2 <title>Cat's Eye Technologies: The Version Programming Language</title></head>
0 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
1 <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
4 <title>The Version Programming Language</title>
5 </head>
36 <body>
47
58 <h1>Version</h1>
69
7 <p><font size=-1>&nbsp;<img src="/images/icons/copyright.gif"
8 align=absmiddle width=12 height=12 alt="(c)" border=0>2001-2004 <a href="/">Cat's Eye Technologies</a>. All rights reserved.<br>
9 This software is OSI Certified Open Source Software.<br>
10 OSI Certified is a certification mark of the <a href="http://www.opensource.org/"><img
11 src="/images/icons/webicon.gif" alt="[WWW]" border=0 width=12 height=12>Open Source Initiative</a>.<br>
12 See the file <a href="license.txt">license.txt</a> for license information.</font></p>
10 <p>Copyright &copy;2001-2010 Cat's Eye Technologies. All rights reserved.</p>
1311
1412 <h2>What is Version?</h2>
1513
3230 <p>Each Version instruction must occur on its own line of
3331 source code, and looks like:</p>
3432
35 <ul>
36 <code><i>label</i>: <i>destination</i> = <i>expression</i></code>
37 </ul>
33 <blockquote>
34 <p><code><i>label</i>: <i>destination</i> = <i>expression</i></code></p>
35 </blockquote>
3836
3937 <p>The label is a string. The destination is the name of
4038 a variable, or a special destination name listed below. The expression
00 #!/usr/local/bin/perl -w
11
2 # Version, a programming language based on ignorance-spaces
3 # Dec 11 2001, Chris Pressey, Cat's Eye Technologies
4
5 # Copyright (c)2001, Cat's Eye Technologies.
6 # All rights reserved.
7 #
2 # version[.pl] - Interpreter for the Version Programming Language
3 # Chris Pressey, Cat's Eye Technologies
4 # http://catseye.tc/projects/version/
5 # $Id: version.pl 525 2010-04-29 16:08:22Z cpressey $
6
7 # Copyright (c)2001-2010 Cat's Eye Technologies. All rights reserved.
8 #
89 # Redistribution and use in source and binary forms, with or without
910 # modification, are permitted provided that the following conditions
1011 # are met:
2122 # contributors may be used to endorse or promote products derived
2223 # from this software without specific prior written permission.
2324 #
24 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
25 # CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
26 # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
27 # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
28 # DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
29 # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
30 # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
31 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
32 # OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
33 # ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
34 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 # POSSIBILITY OF SUCH DAMAGE.
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,
30 # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
31 # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
32 # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
34 # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
36 # OF THE POSSIBILITY OF SUCH DAMAGE.
3737
3838 ### BEGIN version[.pl] ###
3939
4444 # Open and read source file.
4545
4646 $|=1;
47 die "Usage: $0 version-source-filename\n" if not $ARGV[0];
4748 if (open(FILE, $ARGV[0]))
4849 {
4950 @program = <FILE>;