Running ViviFire

You run the ViviFire compiler with a command-line processor. You supply the compiler with a file that contains source code. You can also supply optional switches to change what it does.

On Linux, the most used command processor is “Bash”. And on Windows, the usual Command processors are “Command Prompt”, and “PowerShell”. You must know the basic operations of one of these before you can use ViviFire.

The program file is vf.exe on Windows.

Command-line arguments

The syntax of ViviFire's arguments follows.

vf [-t] [-v[0|1|2|3]] filename
-t
Shows the number of milliseconds ViviFire ran. An example follows:
-- time: 42.0 ms
-v0
Shows only the minimum output. If there are no other switches, this shows only errors and warnings.
-v1 (default)
Shows the tokens made from the source code. Each type of token has a different number written between brackets.
-v2
Shows the statements and clauses that make a correct program.
-v3
Shows expressions, statements, and tokens. This is the maximum verbosity.
filename
The name of the file that contains ViviFire source code. The switches -t and -v have no effect without this argument.

Exit codes

CodeInformation
0 There are no errors.
1 There are one or more errors in the arguments supplied to the compiler. Problems include unknown switches, incorrect switch syntax, and missing files.
2 There are one or more errors in the given source code. Problems include unknown tokens, syntax errors, and type errors.