Overview

Installation
============
We assume that you have correctly set up the ANTLR Python bindings
(version 3.1.2), somewhere in your PYTHONPATH / virtualenv.

Running the tests
=================

$ ./test.sh
Program: tests/big
Test: test1
compiling...
running...
Program: tests/expressions
Test: test1
compiling...
running...
Program: tests/funccalls
Test: test
compiling...
running...
Program: tests/funcorder
Test: test
compiling...
running...
Program: tests/oper1
Test: test1
compiling...
running...
Program: tests/simple
Test: test1
compiling...
running...
Program: tests/stack_exploder
Test: test
compiling...
running...

(the last test may take some time to compile - if you're wondering why, take a
look at tests/stack_exploder/prog.vpl)

If you get any difference in output, something terrible has happened.

Running the example program
===========================
$ cat test.vpl
func mymin(a, b, c)
    c = min(a, b) + 20
end
$ ./vplc test.vpl
$ ./test
0 0.500000 20.250000 20.500000
1 1.500000 20.250000 21.500000
2 2.500000 20.250000 22.500000
3 3.500000 20.250000 23.500000
4 4.500000 20.250000 24.500000
5 5.500000 20.250000 25.500000
6 6.500000 20.250000 26.500000
7 7.500000 20.250000 27.500000
8 8.500000 20.250000 28.500000
9 9.500000 20.250000 29.500000
10 10.500000 20.250000 30.500000
11 11.500000 20.250000 31.500000
12 12.500000 20.250000 32.500000
13 13.500000 20.250000 33.500000
14 14.500000 20.250000 34.500000
15 15.500000 20.250000 35.500000
16 16.500000 20.250000 36.500000
17 17.500000 20.250000 37.500000
18 18.500000 20.250000 38.500000
19 19.500000 20.250000 39.500000
20 20.500000 20.250000 40.250000
21 21.500000 20.250000 40.250000
22 22.500000 20.250000 40.250000
23 23.500000 20.250000 40.250000
24 24.500000 20.250000 40.250000
25 25.500000 20.250000 40.250000
26 26.500000 20.250000 40.250000
27 27.500000 20.250000 40.250000
28 28.500000 20.250000 40.250000
29 29.500000 20.250000 40.250000
30 30.500000 20.250000 40.250000
31 31.500000 20.250000 40.250000
32 32.500000 20.250000 40.250000
33 33.500000 20.250000 40.250000
34 34.500000 20.250000 40.250000
35 35.500000 20.250000 40.250000
36 36.500000 20.250000 40.250000
37 37.500000 20.250000 40.250000
38 38.500000 20.250000 40.250000
39 39.500000 20.250000 40.250000
40 40.500000 20.250000 40.250000
41 41.500000 20.250000 40.250000
42 42.500000 20.250000 40.250000
43 43.500000 20.250000 40.250000
44 44.500000 20.250000 40.250000
45 45.500000 20.250000 40.250000
46 46.500000 20.250000 40.250000
47 47.500000 20.250000 40.250000
48 48.500000 20.250000 40.250000
49 49.500000 20.250000 40.250000

So long, and thanks for all the fish!