HIVE: A complete guide

HIVIL

Directives

#START:[string(jobname)]

Tells the interpreter which job to run in elevated slave mode.

#NAME:[string]

The name of the program. Used for killswitch broadcasts.

#DESC:[string]

Description of the program. Not required.

#HIVE:[version]

Minimum version of HIVE required to run program.

Math

ADD [int a] [int b]

Adds two integers, and assigns the value to int b.

ADD [int a] [int b] [int c]

Adds integers a and b, then assigns the value to int c.

SET [var] [value]

Assigns the key [var] the value [value].

SUB [int a] [int b]

Subtracts [int b] from [int a], then assigns the value to [int b].

SUB [int a] [int b] [int c]

Subtracts [int b] from [int a], then assigns the value to [int c].

Task management

RUN [string(jobname)]

Runs the specified job on a new slave node.

RUN [string(jobname)] [int a]

Runs the specifed job on a new slave node and assigns the process UID to [int a]

Variable declarations

HIVEINT [string(variablename)]

HIVE extension of the c-sytle int type.

HIVEBOOL [string(variablename)]

HIVE extension of the c-sytle bool type.

HIVESTRING [string(variablename)]

HIVE extension of the c-sytle char[] type.