make lexermake millionRuns the 100,000 word Data set
End the program
Denoted with a 'end;'
'~' -> equal to
'|' -> not equal to
'>' -> greater than
'<' -> less than
'*' -> multiply
'/' -> divide
'+' -> add
'-' -> subtract
'{var_name}++' -> increment
'{var_name}--' -> decrement
'int {var_name} = {var_data};'
- creates a new integer variable
'char {var_name} = '{var_data}';'
- creates a new character variable
'string {var_name} = "{var_data}";'
- creates a new string variable
'while {var} {comp} {second_var} {'
- compares the {var} with {second_var} using the {comp} comparator.
- Will execute code in the while loop aslong as the comparator is returning true
'if {var} {comp} {second_var} {'
- compares the {var} with {second_var} using the {comp} comparator.
- Will execute code in the i loop if the comparator is returning true
'print {var}'
- Prints the variables data.
int x = 1;
int y = 2;
if x < y {
print x;
}
end;int a = 3;
int b = 3;
int c = 2;
if a ~ b {
print a;
if c < b {
print b;
}
}
end;int x = 3;
int y = 5;
while x < y {
print x;
x++;
}
end;