Getting started

The JGrok parser ignores whitespace, and treats both the sequence of characters // and %% as indicating that what follows on the current line is commentary. The line continue character is \. While JGrok can work with any type of value created by Java, there is a preference to internally store integers as longs, and floating point numbers as doubles.

Variables

JGrok supports named variables. Command line arguments to JGrok scripts It also supports variable indirection. If X is a variable and Y is a variable, then $Y returns the value of the variable $Y and if this variable does not exist looks up the string value associated with the variable Y, and then returns the value of that named variable. For example:

>> x = "A"
>> y = "x"
>> y
x
>> $y
A
>> $y = 5
>> $y
5