| 1 : |
anton
|
1.1
|
This directory contains a working example for using vmgen. It's a |
| 2 : |
anton
|
1.2
|
small Modula-2-like programming language. |
| 3 : |
|
|
|
| 4 : |
|
|
You can build the example by first installing Gforth and then saying, |
| 5 : |
|
|
in this directory: |
| 6 : |
|
|
|
| 7 : |
|
|
make |
| 8 : |
|
|
|
| 9 : |
anton
|
1.3
|
Ignore the warnings. You can check that it works with |
| 10 : |
anton
|
1.2
|
|
| 11 : |
|
|
make check |
| 12 : |
|
|
|
| 13 : |
|
|
You can run mini programs like this: |
| 14 : |
|
|
|
| 15 : |
|
|
./mini fib.mini |
| 16 : |
|
|
|
| 17 : |
|
|
To learn about the options, type |
| 18 : |
|
|
|
| 19 : |
|
|
./mini -h |
| 20 : |
|
|
|
| 21 : |
anton
|
1.4
|
More information can be found in the vmgen documentation. |