Syntax 4.2
- Introduction
- Sample Output
- Concepts
- File Structure
- Lexer
- Production Rules
- Error Management
- Lexer Driven Parsing
Language Specification
%{
if (!console) { // i.e. nashorn
var console = { log: print };
}
var calc = (function() {
%}
%class {
this.number = 0;
this.toString = function() {
return "number=" + this.number;
}
}
%lexer = {
while ($c <= ' ' && $c > '\0') {
$+;
}
}
%left TOK_AND 256:"AND" = if ($c == '&') {$+; return TOK_AND.charCodeAt(0);};
%left TOK_OR 257:"OR" = if ($c == '|') {$+; return TOK_OR.charCodeAt(0);};
%right TOK_NOT 258:"NOT" = if ($c == '!') {$+; return TOK_NOT.charCodeAt(0);};
%left TOK_LE 259:"'<='" /<=/ = return TOK_LE.charCodeAt(0);
, TOK_LT 260:"'<'" /</ = return TOK_LT.charCodeAt(0);
, TOK_GE 261:"'>='" />=/ = return TOK_GE.charCodeAt(0);
, TOK_GT 262:"'>'" />/ = return TOK_GT.charCodeAt(0);
, TOK_NE 263:"'<>'" /<>/ = return TOK_NE.charCodeAt(0);
, TOK_EQ 264:"'='" /=/ = return TOK_EQ.charCodeAt(0);
%left '+' : "plus" = if ($c == '+') {$+; return '+'.charCodeAt(0);};
, '-' : '"minus"' = if ($c == '-') {$+; return '-'.charCodeAt(0);};
%left '*' = if ($c == '*') {$+; return '*'.charCodeAt(0);};
, '/' = if ($c == '/') {$+; return '/'.charCodeAt(0);};
%right TOK_UMINUS:"unary minus"
%token '(' = if ($c == '(') {$+; return '('.charCodeAt(0);};
, ')' = if ($c == ')') {$+; return ')'.charCodeAt(0);};
%token <number> TOK_NUMBER : "number" /[0-9]*/ = {
$v.number = parseInt($r);
return TOK_NUMBER;
}
%type <number> Expression
%name Expression : "expression";
%start Expression
%lexer = {
}
%group OPS : "operator" TOK_AND, TOK_OR, TOK_LT, TOK_LE, TOK_GT, TOK_GE, TOK_NE, TOK_EQ, '+', '-', '*', '/';
%%
Expression : Expression TOK_AND Expression = $$ = ($1 != 0) && ($3 != 0) ? 1 : 0;
| Expression TOK_OR Expression = $$ = ($1 != 0) || ($3 != 0) ? 1 : 0;
| TOK_NOT Expression = $$ = ($2 != 0) ? 0 : 1;
| Expression TOK_LE Expression = $$ = $1 <= $3 ? 1 : 0;
| Expression TOK_LT Expression = $$ = $1 < $3 ? 1 : 0;
| Expression TOK_GE Expression = $$ = $1 >= $3 ? 1 : 0;
| Expression TOK_GT Expression = $$ = $1 > $3 ? 1 : 0;
| Expression TOK_NE Expression = $$ = $1 != $3 ? 1 : 0;
| Expression TOK_EQ Expression = $$ = $1 == $3 ? 1 : 0;
| Expression '+' Expression = $$ = $1 + $3;
| Expression '-' Expression = $$ = $1 - $3;
| Expression '*' Expression = $$ = $1 * $3;
| Expression '/' Expression = $$ = $1 / $3;
| '-' Expression %prec TOK_UMINUS = $$ = -$2;
| '(' Expression ')' = $$ = $2;
| TOK_NUMBER
;
%%
// END OF GRAMMAR
var charNum = 0;
var expression = "(1 + 3) *4 / 5 + 20";
function getNextChar(initialize) {
if (initialize) {
charNum = 0;
}
if (charNum < expression.length) {
return expression.charAt(charNum++);
}
return '\0';
}
function ungetChar(c) {
charNum --;
if (charNum < 0 || expression.charAt(charNum) != c) {
throw new Error("Error putting a character back");
}
}
function parserError(state, token, top, message) {
console.log("An error occurred in position " + charNum + " with token " + getTokenName(token));
console.log(message);
return ERROR_RE_ATTEMPT;
}
return {
setVerbose: setVerbose,
getTokenName: getTokenName,
getTokenFullName: getTokenFullName,
getTokenIndex: getTokenIndex,
scanner: parserElement,
parse: parse,
scanner: function (token, value) {
var lexicalValue = new StackElement();
lexicalValue.number = value;
var numericToken;
if (typeof token == 'number') {
numericToken = token;
}
else {
numericToken = token.charCodeAt(0);
}
return parse(numericToken, lexicalValue);
},
dumpTokens: dumpTokens,
init: init,
getValidTokens: getValidTokens,
getResult: getResult
}
})();
var calculate = function () {
calc.parse();
return 'The result is ' + calc.getResult().number;
}
// Scanner based routines
var init = function () {
calc.init();
}
var parse = function(token, value) {
return calc.scanner(token, value);
}
var getValidTokens = function() {
return calc.getValidTokens().sort(function (a, b) {
return a - b;
}).join(",");
}
var getResult = function() {
return calc.getResult().number;
}
Output html
javascript-test.sy
Terminal Symbols
ID | Name | Full Name | Value | Err | Refs | Prec | Assc | Type |
---|---|---|---|---|---|---|---|---|
0 | $ | $ | 0 | No | 0 | 0 | N/A | |
1 | TOK_AND | AND | 256 | No | 1 | 1 | LEF | |
2 | TOK_OR | OR | 257 | No | 1 | 2 | LEF | |
3 | TOK_NOT | NOT | 258 | No | 0 | 3 | RIG | |
4 | TOK_LE | '<=' | 259 | No | 1 | 4 | LEF | |
5 | TOK_LT | '<' | 260 | No | 1 | 4 | LEF | |
6 | TOK_GE | '>=' | 261 | No | 1 | 4 | LEF | |
7 | TOK_GT | '>' | 262 | No | 1 | 4 | LEF | |
8 | TOK_NE | '<>' | 263 | No | 1 | 4 | LEF | |
9 | TOK_EQ | '=' | 264 | No | 1 | 4 | LEF | |
10 | + | plus | 43 | No | 1 | 5 | LEF | |
11 | - | "minus" | 45 | No | 2 | 5 | LEF | |
12 | * | * | 42 | No | 1 | 6 | LEF | |
13 | / | / | 47 | No | 1 | 6 | LEF | |
14 | TOK_UMINUS | unary minus | 32768 | No | 0 | 7 | RIG | |
15 | ( | ( | 40 | No | 0 | 0 | N/A | |
16 | ) | ) | 41 | No | 0 | 0 | N/A | |
17 | TOK_NUMBER | number | 32769 | No | 0 | 0 | N/A | number |
Non Terminal Symbols
ID | Name | FullName | Refs | Type |
---|---|---|---|---|
18 | Expression | expression | 27 | number |
19 | $start | $start | 0 |
Types
Name | Used By |
---|---|
number |
|
Error Groups
Name | Display Name | Symbols |
---|---|---|
OPS | operator |
|
Lexer Modes
Name | Routine |
---|---|
default | parserElement_default() |
Regular Expressions
Expression | Graph |
---|---|
/<=/ {*0 '<'->1} {1 '='->2} {(2)} | |
/</ {*3 '<'->4} {(4)} | |
/>=/ {*5 '>'->6} {6 '='->7} {(7)} | |
/>/ {*8 '>'->9} {(9)} | |
/<>/ {*10 '<'->11} {11 '>'->12} {(12)} | |
/=/ {*13 '='->14} {(14)} | |
/[0-9]*/ {*15 [0-9]->16} {(16) [0-9]->16} |
Grammar
Prec | Rule | Grammar |
---|---|---|
0 | 0 | $start ⇒ Expression |
1 | 1 | Expression ⇒ Expression TOK_AND Expression |
2 | 2 | Expression ⇒ Expression TOK_OR Expression |
3 | 3 | Expression ⇒ TOK_NOT Expression |
4 | 4 | Expression ⇒ Expression TOK_LE Expression |
4 | 5 | Expression ⇒ Expression TOK_LT Expression |
4 | 6 | Expression ⇒ Expression TOK_GE Expression |
4 | 7 | Expression ⇒ Expression TOK_GT Expression |
4 | 8 | Expression ⇒ Expression TOK_NE Expression |
4 | 9 | Expression ⇒ Expression TOK_EQ Expression |
5 | 10 | Expression ⇒ Expression + Expression |
5 | 11 | Expression ⇒ Expression - Expression |
6 | 12 | Expression ⇒ Expression * Expression |
6 | 13 | Expression ⇒ Expression / Expression |
7 | 14 | Expression ⇒ - Expression |
0 | 15 | Expression ⇒ ( Expression ) |
0 | 16 | Expression ⇒ TOK_NUMBER |
First of Non Terminals
Non Terminal | Set |
---|---|
Expression |
|
$start |
|
Follow of Non Terminals
Non Terminal | Set |
---|---|
Expression |
|
$start |
|
State # 0
Root
Rule | Production |
---|---|
0 | $start ⇒ . Expression |
1 | Expression ⇒ . Expression TOK_AND Expression |
2 | Expression ⇒ . Expression TOK_OR Expression |
3 | Expression ⇒ . TOK_NOT Expression |
4 | Expression ⇒ . Expression TOK_LE Expression |
5 | Expression ⇒ . Expression TOK_LT Expression |
6 | Expression ⇒ . Expression TOK_GE Expression |
7 | Expression ⇒ . Expression TOK_GT Expression |
8 | Expression ⇒ . Expression TOK_NE Expression |
9 | Expression ⇒ . Expression TOK_EQ Expression |
10 | Expression ⇒ . Expression + Expression |
11 | Expression ⇒ . Expression - Expression |
12 | Expression ⇒ . Expression * Expression |
13 | Expression ⇒ . Expression / Expression |
14 | Expression ⇒ . - Expression |
15 | Expression ⇒ . ( Expression ) |
16 | Expression ⇒ . TOK_NUMBER |
SHIFT ON TOK_NOT TO STATE 2 | |
SHIFT ON - TO STATE 3 | |
SHIFT ON ( TO STATE 4 | |
SHIFT ON TOK_NUMBER TO STATE 5 | |
GO TO STATE 1 with symbol Expression | |
Packed Actions | |
With TOK_NOT Shift to state 2 | |
With - Shift to state 3 | |
With ( Shift to state 4 | |
With TOK_NUMBER Shift to state 5 | |
With Expression Goto 1 | |
Default: Error | |
Errors | |
(non terminal) |
State # 1
Goto from state 0 with symbol Expression
Rule | Production |
---|---|
0 | $start ⇒ Expression . |
1 | Expression ⇒ Expression . TOK_AND Expression |
2 | Expression ⇒ Expression . TOK_OR Expression |
4 | Expression ⇒ Expression . TOK_LE Expression |
5 | Expression ⇒ Expression . TOK_LT Expression |
6 | Expression ⇒ Expression . TOK_GE Expression |
7 | Expression ⇒ Expression . TOK_GT Expression |
8 | Expression ⇒ Expression . TOK_NE Expression |
9 | Expression ⇒ Expression . TOK_EQ Expression |
10 | Expression ⇒ Expression . + Expression |
11 | Expression ⇒ Expression . - Expression |
12 | Expression ⇒ Expression . * Expression |
13 | Expression ⇒ Expression . / Expression |
SHIFT ON TOK_AND TO STATE 6 | |
SHIFT ON TOK_OR TO STATE 7 | |
SHIFT ON TOK_LE TO STATE 8 | |
SHIFT ON TOK_LT TO STATE 9 | |
SHIFT ON TOK_GE TO STATE 10 | |
SHIFT ON TOK_GT TO STATE 11 | |
SHIFT ON TOK_NE TO STATE 12 | |
SHIFT ON TOK_EQ TO STATE 13 | |
SHIFT ON + TO STATE 14 | |
SHIFT ON - TO STATE 15 | |
SHIFT ON * TO STATE 16 | |
SHIFT ON / TO STATE 17 | |
ACCEPT BY 0 | |
Packed Actions | |
With $ Accept | |
With TOK_AND Shift to state 6 | |
With TOK_OR Shift to state 7 | |
With TOK_LE Shift to state 8 | |
With TOK_LT Shift to state 9 | |
With TOK_GE Shift to state 10 | |
With TOK_GT Shift to state 11 | |
With TOK_NE Shift to state 12 | |
With TOK_EQ Shift to state 13 | |
With + Shift to state 14 | |
With - Shift to state 15 | |
With * Shift to state 16 | |
With / Shift to state 17 | |
Default: Error | |
Errors | |
(token group) |
State # 2
Goto from state 0 with symbol TOK_NOT
Rule | Production |
---|---|
3 | Expression ⇒ TOK_NOT . Expression |
1 | Expression ⇒ . Expression TOK_AND Expression |
2 | Expression ⇒ . Expression TOK_OR Expression |
3 | Expression ⇒ . TOK_NOT Expression |
4 | Expression ⇒ . Expression TOK_LE Expression |
5 | Expression ⇒ . Expression TOK_LT Expression |
6 | Expression ⇒ . Expression TOK_GE Expression |
7 | Expression ⇒ . Expression TOK_GT Expression |
8 | Expression ⇒ . Expression TOK_NE Expression |
9 | Expression ⇒ . Expression TOK_EQ Expression |
10 | Expression ⇒ . Expression + Expression |
11 | Expression ⇒ . Expression - Expression |
12 | Expression ⇒ . Expression * Expression |
13 | Expression ⇒ . Expression / Expression |
14 | Expression ⇒ . - Expression |
15 | Expression ⇒ . ( Expression ) |
16 | Expression ⇒ . TOK_NUMBER |
SHIFT ON TOK_NOT TO STATE 2 | |
SHIFT ON - TO STATE 3 | |
SHIFT ON ( TO STATE 4 | |
SHIFT ON TOK_NUMBER TO STATE 5 | |
GO TO STATE 18 with symbol Expression | |
Packed Actions (same as state 0) | |
With TOK_NOT Shift to state 2 | |
With - Shift to state 3 | |
With ( Shift to state 4 | |
With TOK_NUMBER Shift to state 5 | |
With Expression Goto 18 | |
Default: Error | |
Errors | |
(non terminal) |
State # 3
Goto from state 0 with symbol -
Rule | Production |
---|---|
14 | Expression ⇒ - . Expression |
1 | Expression ⇒ . Expression TOK_AND Expression |
2 | Expression ⇒ . Expression TOK_OR Expression |
3 | Expression ⇒ . TOK_NOT Expression |
4 | Expression ⇒ . Expression TOK_LE Expression |
5 | Expression ⇒ . Expression TOK_LT Expression |
6 | Expression ⇒ . Expression TOK_GE Expression |
7 | Expression ⇒ . Expression TOK_GT Expression |
8 | Expression ⇒ . Expression TOK_NE Expression |
9 | Expression ⇒ . Expression TOK_EQ Expression |
10 | Expression ⇒ . Expression + Expression |
11 | Expression ⇒ . Expression - Expression |
12 | Expression ⇒ . Expression * Expression |
13 | Expression ⇒ . Expression / Expression |
14 | Expression ⇒ . - Expression |
15 | Expression ⇒ . ( Expression ) |
16 | Expression ⇒ . TOK_NUMBER |
SHIFT ON TOK_NOT TO STATE 2 | |
SHIFT ON - TO STATE 3 | |
SHIFT ON ( TO STATE 4 | |
SHIFT ON TOK_NUMBER TO STATE 5 | |
GO TO STATE 19 with symbol Expression | |
Packed Actions (same as state 0) | |
With TOK_NOT Shift to state 2 | |
With - Shift to state 3 | |
With ( Shift to state 4 | |
With TOK_NUMBER Shift to state 5 | |
With Expression Goto 19 | |
Default: Error | |
Errors | |
(non terminal) |
State # 4
Goto from state 0 with symbol (
Rule | Production |
---|---|
15 | Expression ⇒ ( . Expression ) |
1 | Expression ⇒ . Expression TOK_AND Expression |
2 | Expression ⇒ . Expression TOK_OR Expression |
3 | Expression ⇒ . TOK_NOT Expression |
4 | Expression ⇒ . Expression TOK_LE Expression |
5 | Expression ⇒ . Expression TOK_LT Expression |
6 | Expression ⇒ . Expression TOK_GE Expression |
7 | Expression ⇒ . Expression TOK_GT Expression |
8 | Expression ⇒ . Expression TOK_NE Expression |
9 | Expression ⇒ . Expression TOK_EQ Expression |
10 | Expression ⇒ . Expression + Expression |
11 | Expression ⇒ . Expression - Expression |
12 | Expression ⇒ . Expression * Expression |
13 | Expression ⇒ . Expression / Expression |
14 | Expression ⇒ . - Expression |
15 | Expression ⇒ . ( Expression ) |
16 | Expression ⇒ . TOK_NUMBER |
SHIFT ON TOK_NOT TO STATE 2 | |
SHIFT ON - TO STATE 3 | |
SHIFT ON ( TO STATE 4 | |
SHIFT ON TOK_NUMBER TO STATE 5 | |
GO TO STATE 20 with symbol Expression | |
Packed Actions (same as state 0) | |
With TOK_NOT Shift to state 2 | |
With - Shift to state 3 | |
With ( Shift to state 4 | |
With TOK_NUMBER Shift to state 5 | |
With Expression Goto 20 | |
Default: Error | |
Errors | |
(non terminal) |
State # 5
Goto from state 0 with symbol TOK_NUMBER
Rule | Production |
---|---|
16 | Expression ⇒ TOK_NUMBER . |
REDUCE BY RULE 16 with $ | |
REDUCE BY RULE 16 with TOK_AND | |
REDUCE BY RULE 16 with TOK_OR | |
REDUCE BY RULE 16 with TOK_LE | |
REDUCE BY RULE 16 with TOK_LT | |
REDUCE BY RULE 16 with TOK_GE | |
REDUCE BY RULE 16 with TOK_GT | |
REDUCE BY RULE 16 with TOK_NE | |
REDUCE BY RULE 16 with TOK_EQ | |
REDUCE BY RULE 16 with + | |
REDUCE BY RULE 16 with - | |
REDUCE BY RULE 16 with * | |
REDUCE BY RULE 16 with / | |
REDUCE BY RULE 16 with ) | |
Packed Actions | |
With $ Reduce by rule 16 | |
With TOK_AND Reduce by rule 16 | |
With TOK_OR Reduce by rule 16 | |
With TOK_LE Reduce by rule 16 | |
With TOK_LT Reduce by rule 16 | |
With TOK_GE Reduce by rule 16 | |
With TOK_GT Reduce by rule 16 | |
With TOK_NE Reduce by rule 16 | |
With TOK_EQ Reduce by rule 16 | |
With + Reduce by rule 16 | |
With - Reduce by rule 16 | |
With * Reduce by rule 16 | |
With / Reduce by rule 16 | |
With ) Reduce by rule 16 | |
Default: Error | |
Errors | |
(token group) |
State # 6
Goto from state 1 with symbol TOK_AND
Rule | Production |
---|---|
1 | Expression ⇒ Expression TOK_AND . Expression |
1 | Expression ⇒ . Expression TOK_AND Expression |
2 | Expression ⇒ . Expression TOK_OR Expression |
3 | Expression ⇒ . TOK_NOT Expression |
4 | Expression ⇒ . Expression TOK_LE Expression |
5 | Expression ⇒ . Expression TOK_LT Expression |
6 | Expression ⇒ . Expression TOK_GE Expression |
7 | Expression ⇒ . Expression TOK_GT Expression |
8 | Expression ⇒ . Expression TOK_NE Expression |
9 | Expression ⇒ . Expression TOK_EQ Expression |
10 | Expression ⇒ . Expression + Expression |
11 | Expression ⇒ . Expression - Expression |
12 | Expression ⇒ . Expression * Expression |
13 | Expression ⇒ . Expression / Expression |
14 | Expression ⇒ . - Expression |
15 | Expression ⇒ . ( Expression ) |
16 | Expression ⇒ . TOK_NUMBER |
SHIFT ON TOK_NOT TO STATE 2 | |
SHIFT ON - TO STATE 3 | |
SHIFT ON ( TO STATE 4 | |
SHIFT ON TOK_NUMBER TO STATE 5 | |
GO TO STATE 21 with symbol Expression | |
Packed Actions (same as state 0) | |
With TOK_NOT Shift to state 2 | |
With - Shift to state 3 | |
With ( Shift to state 4 | |
With TOK_NUMBER Shift to state 5 | |
With Expression Goto 21 | |
Default: Error | |
Errors | |
(non terminal) |
State # 7
Goto from state 1 with symbol TOK_OR
Rule | Production |
---|---|
2 | Expression ⇒ Expression TOK_OR . Expression |
1 | Expression ⇒ . Expression TOK_AND Expression |
2 | Expression ⇒ . Expression TOK_OR Expression |
3 | Expression ⇒ . TOK_NOT Expression |
4 | Expression ⇒ . Expression TOK_LE Expression |
5 | Expression ⇒ . Expression TOK_LT Expression |
6 | Expression ⇒ . Expression TOK_GE Expression |
7 | Expression ⇒ . Expression TOK_GT Expression |
8 | Expression ⇒ . Expression TOK_NE Expression |
9 | Expression ⇒ . Expression TOK_EQ Expression |
10 | Expression ⇒ . Expression + Expression |
11 | Expression ⇒ . Expression - Expression |
12 | Expression ⇒ . Expression * Expression |
13 | Expression ⇒ . Expression / Expression |
14 | Expression ⇒ . - Expression |
15 | Expression ⇒ . ( Expression ) |
16 | Expression ⇒ . TOK_NUMBER |
SHIFT ON TOK_NOT TO STATE 2 | |
SHIFT ON - TO STATE 3 | |
SHIFT ON ( TO STATE 4 | |
SHIFT ON TOK_NUMBER TO STATE 5 | |
GO TO STATE 22 with symbol Expression | |
Packed Actions (same as state 0) | |
With TOK_NOT Shift to state 2 | |
With - Shift to state 3 | |
With ( Shift to state 4 | |
With TOK_NUMBER Shift to state 5 | |
With Expression Goto 22 | |
Default: Error | |
Errors | |
(non terminal) |
State # 8
Goto from state 1 with symbol TOK_LE
Rule | Production |
---|---|
4 | Expression ⇒ Expression TOK_LE . Expression |
1 | Expression ⇒ . Expression TOK_AND Expression |
2 | Expression ⇒ . Expression TOK_OR Expression |
3 | Expression ⇒ . TOK_NOT Expression |
4 | Expression ⇒ . Expression TOK_LE Expression |
5 | Expression ⇒ . Expression TOK_LT Expression |
6 | Expression ⇒ . Expression TOK_GE Expression |
7 | Expression ⇒ . Expression TOK_GT Expression |
8 | Expression ⇒ . Expression TOK_NE Expression |
9 | Expression ⇒ . Expression TOK_EQ Expression |
10 | Expression ⇒ . Expression + Expression |
11 | Expression ⇒ . Expression - Expression |
12 | Expression ⇒ . Expression * Expression |
13 | Expression ⇒ . Expression / Expression |
14 | Expression ⇒ . - Expression |
15 | Expression ⇒ . ( Expression ) |
16 | Expression ⇒ . TOK_NUMBER |
SHIFT ON TOK_NOT TO STATE 2 | |
SHIFT ON - TO STATE 3 | |
SHIFT ON ( TO STATE 4 | |
SHIFT ON TOK_NUMBER TO STATE 5 | |
GO TO STATE 23 with symbol Expression | |
Packed Actions (same as state 0) | |
With TOK_NOT Shift to state 2 | |
With - Shift to state 3 | |
With ( Shift to state 4 | |
With TOK_NUMBER Shift to state 5 | |
With Expression Goto 23 | |
Default: Error | |
Errors | |
(non terminal) |
State # 9
Goto from state 1 with symbol TOK_LT
Rule | Production |
---|---|
5 | Expression ⇒ Expression TOK_LT . Expression |
1 | Expression ⇒ . Expression TOK_AND Expression |
2 | Expression ⇒ . Expression TOK_OR Expression |
3 | Expression ⇒ . TOK_NOT Expression |
4 | Expression ⇒ . Expression TOK_LE Expression |
5 | Expression ⇒ . Expression TOK_LT Expression |
6 | Expression ⇒ . Expression TOK_GE Expression |
7 | Expression ⇒ . Expression TOK_GT Expression |
8 | Expression ⇒ . Expression TOK_NE Expression |
9 | Expression ⇒ . Expression TOK_EQ Expression |
10 | Expression ⇒ . Expression + Expression |
11 | Expression ⇒ . Expression - Expression |
12 | Expression ⇒ . Expression * Expression |
13 | Expression ⇒ . Expression / Expression |
14 | Expression ⇒ . - Expression |
15 | Expression ⇒ . ( Expression ) |
16 | Expression ⇒ . TOK_NUMBER |
SHIFT ON TOK_NOT TO STATE 2 | |
SHIFT ON - TO STATE 3 | |
SHIFT ON ( TO STATE 4 | |
SHIFT ON TOK_NUMBER TO STATE 5 | |
GO TO STATE 24 with symbol Expression | |
Packed Actions (same as state 0) | |
With TOK_NOT Shift to state 2 | |
With - Shift to state 3 | |
With ( Shift to state 4 | |
With TOK_NUMBER Shift to state 5 | |
With Expression Goto 24 | |
Default: Error | |
Errors | |
(non terminal) |
State # 10
Goto from state 1 with symbol TOK_GE
Rule | Production |
---|---|
6 | Expression ⇒ Expression TOK_GE . Expression |
1 | Expression ⇒ . Expression TOK_AND Expression |
2 | Expression ⇒ . Expression TOK_OR Expression |
3 | Expression ⇒ . TOK_NOT Expression |
4 | Expression ⇒ . Expression TOK_LE Expression |
5 | Expression ⇒ . Expression TOK_LT Expression |
6 | Expression ⇒ . Expression TOK_GE Expression |
7 | Expression ⇒ . Expression TOK_GT Expression |
8 | Expression ⇒ . Expression TOK_NE Expression |
9 | Expression ⇒ . Expression TOK_EQ Expression |
10 | Expression ⇒ . Expression + Expression |
11 | Expression ⇒ . Expression - Expression |
12 | Expression ⇒ . Expression * Expression |
13 | Expression ⇒ . Expression / Expression |
14 | Expression ⇒ . - Expression |
15 | Expression ⇒ . ( Expression ) |
16 | Expression ⇒ . TOK_NUMBER |
SHIFT ON TOK_NOT TO STATE 2 | |
SHIFT ON - TO STATE 3 | |
SHIFT ON ( TO STATE 4 | |
SHIFT ON TOK_NUMBER TO STATE 5 | |
GO TO STATE 25 with symbol Expression | |
Packed Actions (same as state 0) | |
With TOK_NOT Shift to state 2 | |
With - Shift to state 3 | |
With ( Shift to state 4 | |
With TOK_NUMBER Shift to state 5 | |
With Expression Goto 25 | |
Default: Error | |
Errors | |
(non terminal) |
State # 11
Goto from state 1 with symbol TOK_GT
Rule | Production |
---|---|
7 | Expression ⇒ Expression TOK_GT . Expression |
1 | Expression ⇒ . Expression TOK_AND Expression |
2 | Expression ⇒ . Expression TOK_OR Expression |
3 | Expression ⇒ . TOK_NOT Expression |
4 | Expression ⇒ . Expression TOK_LE Expression |
5 | Expression ⇒ . Expression TOK_LT Expression |
6 | Expression ⇒ . Expression TOK_GE Expression |
7 | Expression ⇒ . Expression TOK_GT Expression |
8 | Expression ⇒ . Expression TOK_NE Expression |
9 | Expression ⇒ . Expression TOK_EQ Expression |
10 | Expression ⇒ . Expression + Expression |
11 | Expression ⇒ . Expression - Expression |
12 | Expression ⇒ . Expression * Expression |
13 | Expression ⇒ . Expression / Expression |
14 | Expression ⇒ . - Expression |
15 | Expression ⇒ . ( Expression ) |
16 | Expression ⇒ . TOK_NUMBER |
SHIFT ON TOK_NOT TO STATE 2 | |
SHIFT ON - TO STATE 3 | |
SHIFT ON ( TO STATE 4 | |
SHIFT ON TOK_NUMBER TO STATE 5 | |
GO TO STATE 26 with symbol Expression | |
Packed Actions (same as state 0) | |
With TOK_NOT Shift to state 2 | |
With - Shift to state 3 | |
With ( Shift to state 4 | |
With TOK_NUMBER Shift to state 5 | |
With Expression Goto 26 | |
Default: Error | |
Errors | |
(non terminal) |
State # 12
Goto from state 1 with symbol TOK_NE
Rule | Production |
---|---|
8 | Expression ⇒ Expression TOK_NE . Expression |
1 | Expression ⇒ . Expression TOK_AND Expression |
2 | Expression ⇒ . Expression TOK_OR Expression |
3 | Expression ⇒ . TOK_NOT Expression |
4 | Expression ⇒ . Expression TOK_LE Expression |
5 | Expression ⇒ . Expression TOK_LT Expression |
6 | Expression ⇒ . Expression TOK_GE Expression |
7 | Expression ⇒ . Expression TOK_GT Expression |
8 | Expression ⇒ . Expression TOK_NE Expression |
9 | Expression ⇒ . Expression TOK_EQ Expression |
10 | Expression ⇒ . Expression + Expression |
11 | Expression ⇒ . Expression - Expression |
12 | Expression ⇒ . Expression * Expression |
13 | Expression ⇒ . Expression / Expression |
14 | Expression ⇒ . - Expression |
15 | Expression ⇒ . ( Expression ) |
16 | Expression ⇒ . TOK_NUMBER |
SHIFT ON TOK_NOT TO STATE 2 | |
SHIFT ON - TO STATE 3 | |
SHIFT ON ( TO STATE 4 | |
SHIFT ON TOK_NUMBER TO STATE 5 | |
GO TO STATE 27 with symbol Expression | |
Packed Actions (same as state 0) | |
With TOK_NOT Shift to state 2 | |
With - Shift to state 3 | |
With ( Shift to state 4 | |
With TOK_NUMBER Shift to state 5 | |
With Expression Goto 27 | |
Default: Error | |
Errors | |
(non terminal) |
State # 13
Goto from state 1 with symbol TOK_EQ
Rule | Production |
---|---|
9 | Expression ⇒ Expression TOK_EQ . Expression |
1 | Expression ⇒ . Expression TOK_AND Expression |
2 | Expression ⇒ . Expression TOK_OR Expression |
3 | Expression ⇒ . TOK_NOT Expression |
4 | Expression ⇒ . Expression TOK_LE Expression |
5 | Expression ⇒ . Expression TOK_LT Expression |
6 | Expression ⇒ . Expression TOK_GE Expression |
7 | Expression ⇒ . Expression TOK_GT Expression |
8 | Expression ⇒ . Expression TOK_NE Expression |
9 | Expression ⇒ . Expression TOK_EQ Expression |
10 | Expression ⇒ . Expression + Expression |
11 | Expression ⇒ . Expression - Expression |
12 | Expression ⇒ . Expression * Expression |
13 | Expression ⇒ . Expression / Expression |
14 | Expression ⇒ . - Expression |
15 | Expression ⇒ . ( Expression ) |
16 | Expression ⇒ . TOK_NUMBER |
SHIFT ON TOK_NOT TO STATE 2 | |
SHIFT ON - TO STATE 3 | |
SHIFT ON ( TO STATE 4 | |
SHIFT ON TOK_NUMBER TO STATE 5 | |
GO TO STATE 28 with symbol Expression | |
Packed Actions (same as state 0) | |
With TOK_NOT Shift to state 2 | |
With - Shift to state 3 | |
With ( Shift to state 4 | |
With TOK_NUMBER Shift to state 5 | |
With Expression Goto 28 | |
Default: Error | |
Errors | |
(non terminal) |
State # 14
Goto from state 1 with symbol +
Rule | Production |
---|---|
10 | Expression ⇒ Expression + . Expression |
1 | Expression ⇒ . Expression TOK_AND Expression |
2 | Expression ⇒ . Expression TOK_OR Expression |
3 | Expression ⇒ . TOK_NOT Expression |
4 | Expression ⇒ . Expression TOK_LE Expression |
5 | Expression ⇒ . Expression TOK_LT Expression |
6 | Expression ⇒ . Expression TOK_GE Expression |
7 | Expression ⇒ . Expression TOK_GT Expression |
8 | Expression ⇒ . Expression TOK_NE Expression |
9 | Expression ⇒ . Expression TOK_EQ Expression |
10 | Expression ⇒ . Expression + Expression |
11 | Expression ⇒ . Expression - Expression |
12 | Expression ⇒ . Expression * Expression |
13 | Expression ⇒ . Expression / Expression |
14 | Expression ⇒ . - Expression |
15 | Expression ⇒ . ( Expression ) |
16 | Expression ⇒ . TOK_NUMBER |
SHIFT ON TOK_NOT TO STATE 2 | |
SHIFT ON - TO STATE 3 | |
SHIFT ON ( TO STATE 4 | |
SHIFT ON TOK_NUMBER TO STATE 5 | |
GO TO STATE 29 with symbol Expression | |
Packed Actions (same as state 0) | |
With TOK_NOT Shift to state 2 | |
With - Shift to state 3 | |
With ( Shift to state 4 | |
With TOK_NUMBER Shift to state 5 | |
With Expression Goto 29 | |
Default: Error | |
Errors | |
(non terminal) |
State # 15
Goto from state 1 with symbol -
Rule | Production |
---|---|
11 | Expression ⇒ Expression - . Expression |
1 | Expression ⇒ . Expression TOK_AND Expression |
2 | Expression ⇒ . Expression TOK_OR Expression |
3 | Expression ⇒ . TOK_NOT Expression |
4 | Expression ⇒ . Expression TOK_LE Expression |
5 | Expression ⇒ . Expression TOK_LT Expression |
6 | Expression ⇒ . Expression TOK_GE Expression |
7 | Expression ⇒ . Expression TOK_GT Expression |
8 | Expression ⇒ . Expression TOK_NE Expression |
9 | Expression ⇒ . Expression TOK_EQ Expression |
10 | Expression ⇒ . Expression + Expression |
11 | Expression ⇒ . Expression - Expression |
12 | Expression ⇒ . Expression * Expression |
13 | Expression ⇒ . Expression / Expression |
14 | Expression ⇒ . - Expression |
15 | Expression ⇒ . ( Expression ) |
16 | Expression ⇒ . TOK_NUMBER |
SHIFT ON TOK_NOT TO STATE 2 | |
SHIFT ON - TO STATE 3 | |
SHIFT ON ( TO STATE 4 | |
SHIFT ON TOK_NUMBER TO STATE 5 | |
GO TO STATE 30 with symbol Expression | |
Packed Actions (same as state 0) | |
With TOK_NOT Shift to state 2 | |
With - Shift to state 3 | |
With ( Shift to state 4 | |
With TOK_NUMBER Shift to state 5 | |
With Expression Goto 30 | |
Default: Error | |
Errors | |
(non terminal) |
State # 16
Goto from state 1 with symbol *
Rule | Production |
---|---|
12 | Expression ⇒ Expression * . Expression |
1 | Expression ⇒ . Expression TOK_AND Expression |
2 | Expression ⇒ . Expression TOK_OR Expression |
3 | Expression ⇒ . TOK_NOT Expression |
4 | Expression ⇒ . Expression TOK_LE Expression |
5 | Expression ⇒ . Expression TOK_LT Expression |
6 | Expression ⇒ . Expression TOK_GE Expression |
7 | Expression ⇒ . Expression TOK_GT Expression |
8 | Expression ⇒ . Expression TOK_NE Expression |
9 | Expression ⇒ . Expression TOK_EQ Expression |
10 | Expression ⇒ . Expression + Expression |
11 | Expression ⇒ . Expression - Expression |
12 | Expression ⇒ . Expression * Expression |
13 | Expression ⇒ . Expression / Expression |
14 | Expression ⇒ . - Expression |
15 | Expression ⇒ . ( Expression ) |
16 | Expression ⇒ . TOK_NUMBER |
SHIFT ON TOK_NOT TO STATE 2 | |
SHIFT ON - TO STATE 3 | |
SHIFT ON ( TO STATE 4 | |
SHIFT ON TOK_NUMBER TO STATE 5 | |
GO TO STATE 31 with symbol Expression | |
Packed Actions (same as state 0) | |
With TOK_NOT Shift to state 2 | |
With - Shift to state 3 | |
With ( Shift to state 4 | |
With TOK_NUMBER Shift to state 5 | |
With Expression Goto 31 | |
Default: Error | |
Errors | |
(non terminal) |
State # 17
Goto from state 1 with symbol /
Rule | Production |
---|---|
13 | Expression ⇒ Expression / . Expression |
1 | Expression ⇒ . Expression TOK_AND Expression |
2 | Expression ⇒ . Expression TOK_OR Expression |
3 | Expression ⇒ . TOK_NOT Expression |
4 | Expression ⇒ . Expression TOK_LE Expression |
5 | Expression ⇒ . Expression TOK_LT Expression |
6 | Expression ⇒ . Expression TOK_GE Expression |
7 | Expression ⇒ . Expression TOK_GT Expression |
8 | Expression ⇒ . Expression TOK_NE Expression |
9 | Expression ⇒ . Expression TOK_EQ Expression |
10 | Expression ⇒ . Expression + Expression |
11 | Expression ⇒ . Expression - Expression |
12 | Expression ⇒ . Expression * Expression |
13 | Expression ⇒ . Expression / Expression |
14 | Expression ⇒ . - Expression |
15 | Expression ⇒ . ( Expression ) |
16 | Expression ⇒ . TOK_NUMBER |
SHIFT ON TOK_NOT TO STATE 2 | |
SHIFT ON - TO STATE 3 | |
SHIFT ON ( TO STATE 4 | |
SHIFT ON TOK_NUMBER TO STATE 5 | |
GO TO STATE 32 with symbol Expression | |
Packed Actions (same as state 0) | |
With TOK_NOT Shift to state 2 | |
With - Shift to state 3 | |
With ( Shift to state 4 | |
With TOK_NUMBER Shift to state 5 | |
With Expression Goto 32 | |
Default: Error | |
Errors | |
(non terminal) |
State # 18
Goto from state 2 with symbol Expression
Rule | Production |
---|---|
3 | Expression ⇒ TOK_NOT Expression . |
1 | Expression ⇒ Expression . TOK_AND Expression |
2 | Expression ⇒ Expression . TOK_OR Expression |
4 | Expression ⇒ Expression . TOK_LE Expression |
5 | Expression ⇒ Expression . TOK_LT Expression |
6 | Expression ⇒ Expression . TOK_GE Expression |
7 | Expression ⇒ Expression . TOK_GT Expression |
8 | Expression ⇒ Expression . TOK_NE Expression |
9 | Expression ⇒ Expression . TOK_EQ Expression |
10 | Expression ⇒ Expression . + Expression |
11 | Expression ⇒ Expression . - Expression |
12 | Expression ⇒ Expression . * Expression |
13 | Expression ⇒ Expression . / Expression |
SHIFT ON TOK_AND TO STATE 6 | |
SHIFT ON TOK_OR TO STATE 7 | |
SHIFT ON TOK_LE TO STATE 8 | |
SHIFT ON TOK_LT TO STATE 9 | |
SHIFT ON TOK_GE TO STATE 10 | |
SHIFT ON TOK_GT TO STATE 11 | |
SHIFT ON TOK_NE TO STATE 12 | |
SHIFT ON TOK_EQ TO STATE 13 | |
SHIFT ON + TO STATE 14 | |
SHIFT ON - TO STATE 15 | |
SHIFT ON * TO STATE 16 | |
SHIFT ON / TO STATE 17 | |
REDUCE BY RULE 3 with $ | |
REDUCE BY RULE 3 with TOK_AND | |
REDUCE BY RULE 3 with TOK_OR | |
REDUCE BY RULE 3 with TOK_LE | |
REDUCE BY RULE 3 with TOK_LT | |
REDUCE BY RULE 3 with TOK_GE | |
REDUCE BY RULE 3 with TOK_GT | |
REDUCE BY RULE 3 with TOK_NE | |
REDUCE BY RULE 3 with TOK_EQ | |
REDUCE BY RULE 3 with + | |
REDUCE BY RULE 3 with - | |
REDUCE BY RULE 3 with * | |
REDUCE BY RULE 3 with / | |
REDUCE BY RULE 3 with ) | |
Packed Actions | |
With $ Reduce by rule 3 | |
With TOK_AND Reduce by rule 3 | |
With TOK_OR Reduce by rule 3 | |
With TOK_LE Shift to state 8 | |
With TOK_LT Shift to state 9 | |
With TOK_GE Shift to state 10 | |
With TOK_GT Shift to state 11 | |
With TOK_NE Shift to state 12 | |
With TOK_EQ Shift to state 13 | |
With + Shift to state 14 | |
With - Shift to state 15 | |
With * Shift to state 16 | |
With / Shift to state 17 | |
With ) Reduce by rule 3 | |
Default: Error | |
Errors | |
(token group) |
State # 19
Goto from state 3 with symbol Expression
Rule | Production |
---|---|
14 | Expression ⇒ - Expression . |
1 | Expression ⇒ Expression . TOK_AND Expression |
2 | Expression ⇒ Expression . TOK_OR Expression |
4 | Expression ⇒ Expression . TOK_LE Expression |
5 | Expression ⇒ Expression . TOK_LT Expression |
6 | Expression ⇒ Expression . TOK_GE Expression |
7 | Expression ⇒ Expression . TOK_GT Expression |
8 | Expression ⇒ Expression . TOK_NE Expression |
9 | Expression ⇒ Expression . TOK_EQ Expression |
10 | Expression ⇒ Expression . + Expression |
11 | Expression ⇒ Expression . - Expression |
12 | Expression ⇒ Expression . * Expression |
13 | Expression ⇒ Expression . / Expression |
SHIFT ON TOK_AND TO STATE 6 | |
SHIFT ON TOK_OR TO STATE 7 | |
SHIFT ON TOK_LE TO STATE 8 | |
SHIFT ON TOK_LT TO STATE 9 | |
SHIFT ON TOK_GE TO STATE 10 | |
SHIFT ON TOK_GT TO STATE 11 | |
SHIFT ON TOK_NE TO STATE 12 | |
SHIFT ON TOK_EQ TO STATE 13 | |
SHIFT ON + TO STATE 14 | |
SHIFT ON - TO STATE 15 | |
SHIFT ON * TO STATE 16 | |
SHIFT ON / TO STATE 17 | |
REDUCE BY RULE 14 with $ | |
REDUCE BY RULE 14 with TOK_AND | |
REDUCE BY RULE 14 with TOK_OR | |
REDUCE BY RULE 14 with TOK_LE | |
REDUCE BY RULE 14 with TOK_LT | |
REDUCE BY RULE 14 with TOK_GE | |
REDUCE BY RULE 14 with TOK_GT | |
REDUCE BY RULE 14 with TOK_NE | |
REDUCE BY RULE 14 with TOK_EQ | |
REDUCE BY RULE 14 with + | |
REDUCE BY RULE 14 with - | |
REDUCE BY RULE 14 with * | |
REDUCE BY RULE 14 with / | |
REDUCE BY RULE 14 with ) | |
Packed Actions | |
With $ Reduce by rule 14 | |
With TOK_AND Reduce by rule 14 | |
With TOK_OR Reduce by rule 14 | |
With TOK_LE Reduce by rule 14 | |
With TOK_LT Reduce by rule 14 | |
With TOK_GE Reduce by rule 14 | |
With TOK_GT Reduce by rule 14 | |
With TOK_NE Reduce by rule 14 | |
With TOK_EQ Reduce by rule 14 | |
With + Reduce by rule 14 | |
With - Reduce by rule 14 | |
With * Reduce by rule 14 | |
With / Reduce by rule 14 | |
With ) Reduce by rule 14 | |
Default: Error | |
Errors | |
(token group) |
State # 20
Goto from state 4 with symbol Expression
Rule | Production |
---|---|
15 | Expression ⇒ ( Expression . ) |
1 | Expression ⇒ Expression . TOK_AND Expression |
2 | Expression ⇒ Expression . TOK_OR Expression |
4 | Expression ⇒ Expression . TOK_LE Expression |
5 | Expression ⇒ Expression . TOK_LT Expression |
6 | Expression ⇒ Expression . TOK_GE Expression |
7 | Expression ⇒ Expression . TOK_GT Expression |
8 | Expression ⇒ Expression . TOK_NE Expression |
9 | Expression ⇒ Expression . TOK_EQ Expression |
10 | Expression ⇒ Expression . + Expression |
11 | Expression ⇒ Expression . - Expression |
12 | Expression ⇒ Expression . * Expression |
13 | Expression ⇒ Expression . / Expression |
SHIFT ON TOK_AND TO STATE 6 | |
SHIFT ON TOK_OR TO STATE 7 | |
SHIFT ON TOK_LE TO STATE 8 | |
SHIFT ON TOK_LT TO STATE 9 | |
SHIFT ON TOK_GE TO STATE 10 | |
SHIFT ON TOK_GT TO STATE 11 | |
SHIFT ON TOK_NE TO STATE 12 | |
SHIFT ON TOK_EQ TO STATE 13 | |
SHIFT ON + TO STATE 14 | |
SHIFT ON - TO STATE 15 | |
SHIFT ON * TO STATE 16 | |
SHIFT ON / TO STATE 17 | |
SHIFT ON ) TO STATE 33 | |
Packed Actions | |
With TOK_AND Shift to state 6 | |
With TOK_OR Shift to state 7 | |
With TOK_LE Shift to state 8 | |
With TOK_LT Shift to state 9 | |
With TOK_GE Shift to state 10 | |
With TOK_GT Shift to state 11 | |
With TOK_NE Shift to state 12 | |
With TOK_EQ Shift to state 13 | |
With + Shift to state 14 | |
With - Shift to state 15 | |
With * Shift to state 16 | |
With / Shift to state 17 | |
With ) Shift to state 33 | |
Default: Error | |
Errors | |
(mostly tokens) |
State # 21
Goto from state 6 with symbol Expression
Rule | Production |
---|---|
1 | Expression ⇒ Expression TOK_AND Expression . |
1 | Expression ⇒ Expression . TOK_AND Expression |
2 | Expression ⇒ Expression . TOK_OR Expression |
4 | Expression ⇒ Expression . TOK_LE Expression |
5 | Expression ⇒ Expression . TOK_LT Expression |
6 | Expression ⇒ Expression . TOK_GE Expression |
7 | Expression ⇒ Expression . TOK_GT Expression |
8 | Expression ⇒ Expression . TOK_NE Expression |
9 | Expression ⇒ Expression . TOK_EQ Expression |
10 | Expression ⇒ Expression . + Expression |
11 | Expression ⇒ Expression . - Expression |
12 | Expression ⇒ Expression . * Expression |
13 | Expression ⇒ Expression . / Expression |
SHIFT ON TOK_AND TO STATE 6 | |
SHIFT ON TOK_OR TO STATE 7 | |
SHIFT ON TOK_LE TO STATE 8 | |
SHIFT ON TOK_LT TO STATE 9 | |
SHIFT ON TOK_GE TO STATE 10 | |
SHIFT ON TOK_GT TO STATE 11 | |
SHIFT ON TOK_NE TO STATE 12 | |
SHIFT ON TOK_EQ TO STATE 13 | |
SHIFT ON + TO STATE 14 | |
SHIFT ON - TO STATE 15 | |
SHIFT ON * TO STATE 16 | |
SHIFT ON / TO STATE 17 | |
REDUCE BY RULE 1 with $ | |
REDUCE BY RULE 1 with TOK_AND | |
REDUCE BY RULE 1 with TOK_OR | |
REDUCE BY RULE 1 with TOK_LE | |
REDUCE BY RULE 1 with TOK_LT | |
REDUCE BY RULE 1 with TOK_GE | |
REDUCE BY RULE 1 with TOK_GT | |
REDUCE BY RULE 1 with TOK_NE | |
REDUCE BY RULE 1 with TOK_EQ | |
REDUCE BY RULE 1 with + | |
REDUCE BY RULE 1 with - | |
REDUCE BY RULE 1 with * | |
REDUCE BY RULE 1 with / | |
REDUCE BY RULE 1 with ) | |
Packed Actions | |
With $ Reduce by rule 1 | |
With TOK_AND Reduce by rule 1 | |
With TOK_OR Shift to state 7 | |
With TOK_LE Shift to state 8 | |
With TOK_LT Shift to state 9 | |
With TOK_GE Shift to state 10 | |
With TOK_GT Shift to state 11 | |
With TOK_NE Shift to state 12 | |
With TOK_EQ Shift to state 13 | |
With + Shift to state 14 | |
With - Shift to state 15 | |
With * Shift to state 16 | |
With / Shift to state 17 | |
With ) Reduce by rule 1 | |
Default: Error | |
Errors | |
(token group) |
State # 22
Goto from state 7 with symbol Expression
Rule | Production |
---|---|
2 | Expression ⇒ Expression TOK_OR Expression . |
1 | Expression ⇒ Expression . TOK_AND Expression |
2 | Expression ⇒ Expression . TOK_OR Expression |
4 | Expression ⇒ Expression . TOK_LE Expression |
5 | Expression ⇒ Expression . TOK_LT Expression |
6 | Expression ⇒ Expression . TOK_GE Expression |
7 | Expression ⇒ Expression . TOK_GT Expression |
8 | Expression ⇒ Expression . TOK_NE Expression |
9 | Expression ⇒ Expression . TOK_EQ Expression |
10 | Expression ⇒ Expression . + Expression |
11 | Expression ⇒ Expression . - Expression |
12 | Expression ⇒ Expression . * Expression |
13 | Expression ⇒ Expression . / Expression |
SHIFT ON TOK_AND TO STATE 6 | |
SHIFT ON TOK_OR TO STATE 7 | |
SHIFT ON TOK_LE TO STATE 8 | |
SHIFT ON TOK_LT TO STATE 9 | |
SHIFT ON TOK_GE TO STATE 10 | |
SHIFT ON TOK_GT TO STATE 11 | |
SHIFT ON TOK_NE TO STATE 12 | |
SHIFT ON TOK_EQ TO STATE 13 | |
SHIFT ON + TO STATE 14 | |
SHIFT ON - TO STATE 15 | |
SHIFT ON * TO STATE 16 | |
SHIFT ON / TO STATE 17 | |
REDUCE BY RULE 2 with $ | |
REDUCE BY RULE 2 with TOK_AND | |
REDUCE BY RULE 2 with TOK_OR | |
REDUCE BY RULE 2 with TOK_LE | |
REDUCE BY RULE 2 with TOK_LT | |
REDUCE BY RULE 2 with TOK_GE | |
REDUCE BY RULE 2 with TOK_GT | |
REDUCE BY RULE 2 with TOK_NE | |
REDUCE BY RULE 2 with TOK_EQ | |
REDUCE BY RULE 2 with + | |
REDUCE BY RULE 2 with - | |
REDUCE BY RULE 2 with * | |
REDUCE BY RULE 2 with / | |
REDUCE BY RULE 2 with ) | |
Packed Actions | |
With $ Reduce by rule 2 | |
With TOK_AND Reduce by rule 2 | |
With TOK_OR Reduce by rule 2 | |
With TOK_LE Shift to state 8 | |
With TOK_LT Shift to state 9 | |
With TOK_GE Shift to state 10 | |
With TOK_GT Shift to state 11 | |
With TOK_NE Shift to state 12 | |
With TOK_EQ Shift to state 13 | |
With + Shift to state 14 | |
With - Shift to state 15 | |
With * Shift to state 16 | |
With / Shift to state 17 | |
With ) Reduce by rule 2 | |
Default: Error | |
Errors | |
(token group) |
State # 23
Goto from state 8 with symbol Expression
Rule | Production |
---|---|
4 | Expression ⇒ Expression TOK_LE Expression . |
1 | Expression ⇒ Expression . TOK_AND Expression |
2 | Expression ⇒ Expression . TOK_OR Expression |
4 | Expression ⇒ Expression . TOK_LE Expression |
5 | Expression ⇒ Expression . TOK_LT Expression |
6 | Expression ⇒ Expression . TOK_GE Expression |
7 | Expression ⇒ Expression . TOK_GT Expression |
8 | Expression ⇒ Expression . TOK_NE Expression |
9 | Expression ⇒ Expression . TOK_EQ Expression |
10 | Expression ⇒ Expression . + Expression |
11 | Expression ⇒ Expression . - Expression |
12 | Expression ⇒ Expression . * Expression |
13 | Expression ⇒ Expression . / Expression |
SHIFT ON TOK_AND TO STATE 6 | |
SHIFT ON TOK_OR TO STATE 7 | |
SHIFT ON TOK_LE TO STATE 8 | |
SHIFT ON TOK_LT TO STATE 9 | |
SHIFT ON TOK_GE TO STATE 10 | |
SHIFT ON TOK_GT TO STATE 11 | |
SHIFT ON TOK_NE TO STATE 12 | |
SHIFT ON TOK_EQ TO STATE 13 | |
SHIFT ON + TO STATE 14 | |
SHIFT ON - TO STATE 15 | |
SHIFT ON * TO STATE 16 | |
SHIFT ON / TO STATE 17 | |
REDUCE BY RULE 4 with $ | |
REDUCE BY RULE 4 with TOK_AND | |
REDUCE BY RULE 4 with TOK_OR | |
REDUCE BY RULE 4 with TOK_LE | |
REDUCE BY RULE 4 with TOK_LT | |
REDUCE BY RULE 4 with TOK_GE | |
REDUCE BY RULE 4 with TOK_GT | |
REDUCE BY RULE 4 with TOK_NE | |
REDUCE BY RULE 4 with TOK_EQ | |
REDUCE BY RULE 4 with + | |
REDUCE BY RULE 4 with - | |
REDUCE BY RULE 4 with * | |
REDUCE BY RULE 4 with / | |
REDUCE BY RULE 4 with ) | |
Packed Actions | |
With $ Reduce by rule 4 | |
With TOK_AND Reduce by rule 4 | |
With TOK_OR Reduce by rule 4 | |
With TOK_LE Reduce by rule 4 | |
With TOK_LT Reduce by rule 4 | |
With TOK_GE Reduce by rule 4 | |
With TOK_GT Reduce by rule 4 | |
With TOK_NE Reduce by rule 4 | |
With TOK_EQ Reduce by rule 4 | |
With + Shift to state 14 | |
With - Shift to state 15 | |
With * Shift to state 16 | |
With / Shift to state 17 | |
With ) Reduce by rule 4 | |
Default: Error | |
Errors | |
(token group) |
State # 24
Goto from state 9 with symbol Expression
Rule | Production |
---|---|
5 | Expression ⇒ Expression TOK_LT Expression . |
1 | Expression ⇒ Expression . TOK_AND Expression |
2 | Expression ⇒ Expression . TOK_OR Expression |
4 | Expression ⇒ Expression . TOK_LE Expression |
5 | Expression ⇒ Expression . TOK_LT Expression |
6 | Expression ⇒ Expression . TOK_GE Expression |
7 | Expression ⇒ Expression . TOK_GT Expression |
8 | Expression ⇒ Expression . TOK_NE Expression |
9 | Expression ⇒ Expression . TOK_EQ Expression |
10 | Expression ⇒ Expression . + Expression |
11 | Expression ⇒ Expression . - Expression |
12 | Expression ⇒ Expression . * Expression |
13 | Expression ⇒ Expression . / Expression |
SHIFT ON TOK_AND TO STATE 6 | |
SHIFT ON TOK_OR TO STATE 7 | |
SHIFT ON TOK_LE TO STATE 8 | |
SHIFT ON TOK_LT TO STATE 9 | |
SHIFT ON TOK_GE TO STATE 10 | |
SHIFT ON TOK_GT TO STATE 11 | |
SHIFT ON TOK_NE TO STATE 12 | |
SHIFT ON TOK_EQ TO STATE 13 | |
SHIFT ON + TO STATE 14 | |
SHIFT ON - TO STATE 15 | |
SHIFT ON * TO STATE 16 | |
SHIFT ON / TO STATE 17 | |
REDUCE BY RULE 5 with $ | |
REDUCE BY RULE 5 with TOK_AND | |
REDUCE BY RULE 5 with TOK_OR | |
REDUCE BY RULE 5 with TOK_LE | |
REDUCE BY RULE 5 with TOK_LT | |
REDUCE BY RULE 5 with TOK_GE | |
REDUCE BY RULE 5 with TOK_GT | |
REDUCE BY RULE 5 with TOK_NE | |
REDUCE BY RULE 5 with TOK_EQ | |
REDUCE BY RULE 5 with + | |
REDUCE BY RULE 5 with - | |
REDUCE BY RULE 5 with * | |
REDUCE BY RULE 5 with / | |
REDUCE BY RULE 5 with ) | |
Packed Actions | |
With $ Reduce by rule 5 | |
With TOK_AND Reduce by rule 5 | |
With TOK_OR Reduce by rule 5 | |
With TOK_LE Reduce by rule 5 | |
With TOK_LT Reduce by rule 5 | |
With TOK_GE Reduce by rule 5 | |
With TOK_GT Reduce by rule 5 | |
With TOK_NE Reduce by rule 5 | |
With TOK_EQ Reduce by rule 5 | |
With + Shift to state 14 | |
With - Shift to state 15 | |
With * Shift to state 16 | |
With / Shift to state 17 | |
With ) Reduce by rule 5 | |
Default: Error | |
Errors | |
(token group) |
State # 25
Goto from state 10 with symbol Expression
Rule | Production |
---|---|
6 | Expression ⇒ Expression TOK_GE Expression . |
1 | Expression ⇒ Expression . TOK_AND Expression |
2 | Expression ⇒ Expression . TOK_OR Expression |
4 | Expression ⇒ Expression . TOK_LE Expression |
5 | Expression ⇒ Expression . TOK_LT Expression |
6 | Expression ⇒ Expression . TOK_GE Expression |
7 | Expression ⇒ Expression . TOK_GT Expression |
8 | Expression ⇒ Expression . TOK_NE Expression |
9 | Expression ⇒ Expression . TOK_EQ Expression |
10 | Expression ⇒ Expression . + Expression |
11 | Expression ⇒ Expression . - Expression |
12 | Expression ⇒ Expression . * Expression |
13 | Expression ⇒ Expression . / Expression |
SHIFT ON TOK_AND TO STATE 6 | |
SHIFT ON TOK_OR TO STATE 7 | |
SHIFT ON TOK_LE TO STATE 8 | |
SHIFT ON TOK_LT TO STATE 9 | |
SHIFT ON TOK_GE TO STATE 10 | |
SHIFT ON TOK_GT TO STATE 11 | |
SHIFT ON TOK_NE TO STATE 12 | |
SHIFT ON TOK_EQ TO STATE 13 | |
SHIFT ON + TO STATE 14 | |
SHIFT ON - TO STATE 15 | |
SHIFT ON * TO STATE 16 | |
SHIFT ON / TO STATE 17 | |
REDUCE BY RULE 6 with $ | |
REDUCE BY RULE 6 with TOK_AND | |
REDUCE BY RULE 6 with TOK_OR | |
REDUCE BY RULE 6 with TOK_LE | |
REDUCE BY RULE 6 with TOK_LT | |
REDUCE BY RULE 6 with TOK_GE | |
REDUCE BY RULE 6 with TOK_GT | |
REDUCE BY RULE 6 with TOK_NE | |
REDUCE BY RULE 6 with TOK_EQ | |
REDUCE BY RULE 6 with + | |
REDUCE BY RULE 6 with - | |
REDUCE BY RULE 6 with * | |
REDUCE BY RULE 6 with / | |
REDUCE BY RULE 6 with ) | |
Packed Actions | |
With $ Reduce by rule 6 | |
With TOK_AND Reduce by rule 6 | |
With TOK_OR Reduce by rule 6 | |
With TOK_LE Reduce by rule 6 | |
With TOK_LT Reduce by rule 6 | |
With TOK_GE Reduce by rule 6 | |
With TOK_GT Reduce by rule 6 | |
With TOK_NE Reduce by rule 6 | |
With TOK_EQ Reduce by rule 6 | |
With + Shift to state 14 | |
With - Shift to state 15 | |
With * Shift to state 16 | |
With / Shift to state 17 | |
With ) Reduce by rule 6 | |
Default: Error | |
Errors | |
(token group) |
State # 26
Goto from state 11 with symbol Expression
Rule | Production |
---|---|
7 | Expression ⇒ Expression TOK_GT Expression . |
1 | Expression ⇒ Expression . TOK_AND Expression |
2 | Expression ⇒ Expression . TOK_OR Expression |
4 | Expression ⇒ Expression . TOK_LE Expression |
5 | Expression ⇒ Expression . TOK_LT Expression |
6 | Expression ⇒ Expression . TOK_GE Expression |
7 | Expression ⇒ Expression . TOK_GT Expression |
8 | Expression ⇒ Expression . TOK_NE Expression |
9 | Expression ⇒ Expression . TOK_EQ Expression |
10 | Expression ⇒ Expression . + Expression |
11 | Expression ⇒ Expression . - Expression |
12 | Expression ⇒ Expression . * Expression |
13 | Expression ⇒ Expression . / Expression |
SHIFT ON TOK_AND TO STATE 6 | |
SHIFT ON TOK_OR TO STATE 7 | |
SHIFT ON TOK_LE TO STATE 8 | |
SHIFT ON TOK_LT TO STATE 9 | |
SHIFT ON TOK_GE TO STATE 10 | |
SHIFT ON TOK_GT TO STATE 11 | |
SHIFT ON TOK_NE TO STATE 12 | |
SHIFT ON TOK_EQ TO STATE 13 | |
SHIFT ON + TO STATE 14 | |
SHIFT ON - TO STATE 15 | |
SHIFT ON * TO STATE 16 | |
SHIFT ON / TO STATE 17 | |
REDUCE BY RULE 7 with $ | |
REDUCE BY RULE 7 with TOK_AND | |
REDUCE BY RULE 7 with TOK_OR | |
REDUCE BY RULE 7 with TOK_LE | |
REDUCE BY RULE 7 with TOK_LT | |
REDUCE BY RULE 7 with TOK_GE | |
REDUCE BY RULE 7 with TOK_GT | |
REDUCE BY RULE 7 with TOK_NE | |
REDUCE BY RULE 7 with TOK_EQ | |
REDUCE BY RULE 7 with + | |
REDUCE BY RULE 7 with - | |
REDUCE BY RULE 7 with * | |
REDUCE BY RULE 7 with / | |
REDUCE BY RULE 7 with ) | |
Packed Actions | |
With $ Reduce by rule 7 | |
With TOK_AND Reduce by rule 7 | |
With TOK_OR Reduce by rule 7 | |
With TOK_LE Reduce by rule 7 | |
With TOK_LT Reduce by rule 7 | |
With TOK_GE Reduce by rule 7 | |
With TOK_GT Reduce by rule 7 | |
With TOK_NE Reduce by rule 7 | |
With TOK_EQ Reduce by rule 7 | |
With + Shift to state 14 | |
With - Shift to state 15 | |
With * Shift to state 16 | |
With / Shift to state 17 | |
With ) Reduce by rule 7 | |
Default: Error | |
Errors | |
(token group) |
State # 27
Goto from state 12 with symbol Expression
Rule | Production |
---|---|
8 | Expression ⇒ Expression TOK_NE Expression . |
1 | Expression ⇒ Expression . TOK_AND Expression |
2 | Expression ⇒ Expression . TOK_OR Expression |
4 | Expression ⇒ Expression . TOK_LE Expression |
5 | Expression ⇒ Expression . TOK_LT Expression |
6 | Expression ⇒ Expression . TOK_GE Expression |
7 | Expression ⇒ Expression . TOK_GT Expression |
8 | Expression ⇒ Expression . TOK_NE Expression |
9 | Expression ⇒ Expression . TOK_EQ Expression |
10 | Expression ⇒ Expression . + Expression |
11 | Expression ⇒ Expression . - Expression |
12 | Expression ⇒ Expression . * Expression |
13 | Expression ⇒ Expression . / Expression |
SHIFT ON TOK_AND TO STATE 6 | |
SHIFT ON TOK_OR TO STATE 7 | |
SHIFT ON TOK_LE TO STATE 8 | |
SHIFT ON TOK_LT TO STATE 9 | |
SHIFT ON TOK_GE TO STATE 10 | |
SHIFT ON TOK_GT TO STATE 11 | |
SHIFT ON TOK_NE TO STATE 12 | |
SHIFT ON TOK_EQ TO STATE 13 | |
SHIFT ON + TO STATE 14 | |
SHIFT ON - TO STATE 15 | |
SHIFT ON * TO STATE 16 | |
SHIFT ON / TO STATE 17 | |
REDUCE BY RULE 8 with $ | |
REDUCE BY RULE 8 with TOK_AND | |
REDUCE BY RULE 8 with TOK_OR | |
REDUCE BY RULE 8 with TOK_LE | |
REDUCE BY RULE 8 with TOK_LT | |
REDUCE BY RULE 8 with TOK_GE | |
REDUCE BY RULE 8 with TOK_GT | |
REDUCE BY RULE 8 with TOK_NE | |
REDUCE BY RULE 8 with TOK_EQ | |
REDUCE BY RULE 8 with + | |
REDUCE BY RULE 8 with - | |
REDUCE BY RULE 8 with * | |
REDUCE BY RULE 8 with / | |
REDUCE BY RULE 8 with ) | |
Packed Actions | |
With $ Reduce by rule 8 | |
With TOK_AND Reduce by rule 8 | |
With TOK_OR Reduce by rule 8 | |
With TOK_LE Reduce by rule 8 | |
With TOK_LT Reduce by rule 8 | |
With TOK_GE Reduce by rule 8 | |
With TOK_GT Reduce by rule 8 | |
With TOK_NE Reduce by rule 8 | |
With TOK_EQ Reduce by rule 8 | |
With + Shift to state 14 | |
With - Shift to state 15 | |
With * Shift to state 16 | |
With / Shift to state 17 | |
With ) Reduce by rule 8 | |
Default: Error | |
Errors | |
(token group) |
State # 28
Goto from state 13 with symbol Expression
Rule | Production |
---|---|
9 | Expression ⇒ Expression TOK_EQ Expression . |
1 | Expression ⇒ Expression . TOK_AND Expression |
2 | Expression ⇒ Expression . TOK_OR Expression |
4 | Expression ⇒ Expression . TOK_LE Expression |
5 | Expression ⇒ Expression . TOK_LT Expression |
6 | Expression ⇒ Expression . TOK_GE Expression |
7 | Expression ⇒ Expression . TOK_GT Expression |
8 | Expression ⇒ Expression . TOK_NE Expression |
9 | Expression ⇒ Expression . TOK_EQ Expression |
10 | Expression ⇒ Expression . + Expression |
11 | Expression ⇒ Expression . - Expression |
12 | Expression ⇒ Expression . * Expression |
13 | Expression ⇒ Expression . / Expression |
SHIFT ON TOK_AND TO STATE 6 | |
SHIFT ON TOK_OR TO STATE 7 | |
SHIFT ON TOK_LE TO STATE 8 | |
SHIFT ON TOK_LT TO STATE 9 | |
SHIFT ON TOK_GE TO STATE 10 | |
SHIFT ON TOK_GT TO STATE 11 | |
SHIFT ON TOK_NE TO STATE 12 | |
SHIFT ON TOK_EQ TO STATE 13 | |
SHIFT ON + TO STATE 14 | |
SHIFT ON - TO STATE 15 | |
SHIFT ON * TO STATE 16 | |
SHIFT ON / TO STATE 17 | |
REDUCE BY RULE 9 with $ | |
REDUCE BY RULE 9 with TOK_AND | |
REDUCE BY RULE 9 with TOK_OR | |
REDUCE BY RULE 9 with TOK_LE | |
REDUCE BY RULE 9 with TOK_LT | |
REDUCE BY RULE 9 with TOK_GE | |
REDUCE BY RULE 9 with TOK_GT | |
REDUCE BY RULE 9 with TOK_NE | |
REDUCE BY RULE 9 with TOK_EQ | |
REDUCE BY RULE 9 with + | |
REDUCE BY RULE 9 with - | |
REDUCE BY RULE 9 with * | |
REDUCE BY RULE 9 with / | |
REDUCE BY RULE 9 with ) | |
Packed Actions | |
With $ Reduce by rule 9 | |
With TOK_AND Reduce by rule 9 | |
With TOK_OR Reduce by rule 9 | |
With TOK_LE Reduce by rule 9 | |
With TOK_LT Reduce by rule 9 | |
With TOK_GE Reduce by rule 9 | |
With TOK_GT Reduce by rule 9 | |
With TOK_NE Reduce by rule 9 | |
With TOK_EQ Reduce by rule 9 | |
With + Shift to state 14 | |
With - Shift to state 15 | |
With * Shift to state 16 | |
With / Shift to state 17 | |
With ) Reduce by rule 9 | |
Default: Error | |
Errors | |
(token group) |
State # 29
Goto from state 14 with symbol Expression
Rule | Production |
---|---|
10 | Expression ⇒ Expression + Expression . |
1 | Expression ⇒ Expression . TOK_AND Expression |
2 | Expression ⇒ Expression . TOK_OR Expression |
4 | Expression ⇒ Expression . TOK_LE Expression |
5 | Expression ⇒ Expression . TOK_LT Expression |
6 | Expression ⇒ Expression . TOK_GE Expression |
7 | Expression ⇒ Expression . TOK_GT Expression |
8 | Expression ⇒ Expression . TOK_NE Expression |
9 | Expression ⇒ Expression . TOK_EQ Expression |
10 | Expression ⇒ Expression . + Expression |
11 | Expression ⇒ Expression . - Expression |
12 | Expression ⇒ Expression . * Expression |
13 | Expression ⇒ Expression . / Expression |
SHIFT ON TOK_AND TO STATE 6 | |
SHIFT ON TOK_OR TO STATE 7 | |
SHIFT ON TOK_LE TO STATE 8 | |
SHIFT ON TOK_LT TO STATE 9 | |
SHIFT ON TOK_GE TO STATE 10 | |
SHIFT ON TOK_GT TO STATE 11 | |
SHIFT ON TOK_NE TO STATE 12 | |
SHIFT ON TOK_EQ TO STATE 13 | |
SHIFT ON + TO STATE 14 | |
SHIFT ON - TO STATE 15 | |
SHIFT ON * TO STATE 16 | |
SHIFT ON / TO STATE 17 | |
REDUCE BY RULE 10 with $ | |
REDUCE BY RULE 10 with TOK_AND | |
REDUCE BY RULE 10 with TOK_OR | |
REDUCE BY RULE 10 with TOK_LE | |
REDUCE BY RULE 10 with TOK_LT | |
REDUCE BY RULE 10 with TOK_GE | |
REDUCE BY RULE 10 with TOK_GT | |
REDUCE BY RULE 10 with TOK_NE | |
REDUCE BY RULE 10 with TOK_EQ | |
REDUCE BY RULE 10 with + | |
REDUCE BY RULE 10 with - | |
REDUCE BY RULE 10 with * | |
REDUCE BY RULE 10 with / | |
REDUCE BY RULE 10 with ) | |
Packed Actions | |
With $ Reduce by rule 10 | |
With TOK_AND Reduce by rule 10 | |
With TOK_OR Reduce by rule 10 | |
With TOK_LE Reduce by rule 10 | |
With TOK_LT Reduce by rule 10 | |
With TOK_GE Reduce by rule 10 | |
With TOK_GT Reduce by rule 10 | |
With TOK_NE Reduce by rule 10 | |
With TOK_EQ Reduce by rule 10 | |
With + Reduce by rule 10 | |
With - Reduce by rule 10 | |
With * Shift to state 16 | |
With / Shift to state 17 | |
With ) Reduce by rule 10 | |
Default: Error | |
Errors | |
(token group) |
State # 30
Goto from state 15 with symbol Expression
Rule | Production |
---|---|
11 | Expression ⇒ Expression - Expression . |
1 | Expression ⇒ Expression . TOK_AND Expression |
2 | Expression ⇒ Expression . TOK_OR Expression |
4 | Expression ⇒ Expression . TOK_LE Expression |
5 | Expression ⇒ Expression . TOK_LT Expression |
6 | Expression ⇒ Expression . TOK_GE Expression |
7 | Expression ⇒ Expression . TOK_GT Expression |
8 | Expression ⇒ Expression . TOK_NE Expression |
9 | Expression ⇒ Expression . TOK_EQ Expression |
10 | Expression ⇒ Expression . + Expression |
11 | Expression ⇒ Expression . - Expression |
12 | Expression ⇒ Expression . * Expression |
13 | Expression ⇒ Expression . / Expression |
SHIFT ON TOK_AND TO STATE 6 | |
SHIFT ON TOK_OR TO STATE 7 | |
SHIFT ON TOK_LE TO STATE 8 | |
SHIFT ON TOK_LT TO STATE 9 | |
SHIFT ON TOK_GE TO STATE 10 | |
SHIFT ON TOK_GT TO STATE 11 | |
SHIFT ON TOK_NE TO STATE 12 | |
SHIFT ON TOK_EQ TO STATE 13 | |
SHIFT ON + TO STATE 14 | |
SHIFT ON - TO STATE 15 | |
SHIFT ON * TO STATE 16 | |
SHIFT ON / TO STATE 17 | |
REDUCE BY RULE 11 with $ | |
REDUCE BY RULE 11 with TOK_AND | |
REDUCE BY RULE 11 with TOK_OR | |
REDUCE BY RULE 11 with TOK_LE | |
REDUCE BY RULE 11 with TOK_LT | |
REDUCE BY RULE 11 with TOK_GE | |
REDUCE BY RULE 11 with TOK_GT | |
REDUCE BY RULE 11 with TOK_NE | |
REDUCE BY RULE 11 with TOK_EQ | |
REDUCE BY RULE 11 with + | |
REDUCE BY RULE 11 with - | |
REDUCE BY RULE 11 with * | |
REDUCE BY RULE 11 with / | |
REDUCE BY RULE 11 with ) | |
Packed Actions | |
With $ Reduce by rule 11 | |
With TOK_AND Reduce by rule 11 | |
With TOK_OR Reduce by rule 11 | |
With TOK_LE Reduce by rule 11 | |
With TOK_LT Reduce by rule 11 | |
With TOK_GE Reduce by rule 11 | |
With TOK_GT Reduce by rule 11 | |
With TOK_NE Reduce by rule 11 | |
With TOK_EQ Reduce by rule 11 | |
With + Reduce by rule 11 | |
With - Reduce by rule 11 | |
With * Shift to state 16 | |
With / Shift to state 17 | |
With ) Reduce by rule 11 | |
Default: Error | |
Errors | |
(token group) |
State # 31
Goto from state 16 with symbol Expression
Rule | Production |
---|---|
12 | Expression ⇒ Expression * Expression . |
1 | Expression ⇒ Expression . TOK_AND Expression |
2 | Expression ⇒ Expression . TOK_OR Expression |
4 | Expression ⇒ Expression . TOK_LE Expression |
5 | Expression ⇒ Expression . TOK_LT Expression |
6 | Expression ⇒ Expression . TOK_GE Expression |
7 | Expression ⇒ Expression . TOK_GT Expression |
8 | Expression ⇒ Expression . TOK_NE Expression |
9 | Expression ⇒ Expression . TOK_EQ Expression |
10 | Expression ⇒ Expression . + Expression |
11 | Expression ⇒ Expression . - Expression |
12 | Expression ⇒ Expression . * Expression |
13 | Expression ⇒ Expression . / Expression |
SHIFT ON TOK_AND TO STATE 6 | |
SHIFT ON TOK_OR TO STATE 7 | |
SHIFT ON TOK_LE TO STATE 8 | |
SHIFT ON TOK_LT TO STATE 9 | |
SHIFT ON TOK_GE TO STATE 10 | |
SHIFT ON TOK_GT TO STATE 11 | |
SHIFT ON TOK_NE TO STATE 12 | |
SHIFT ON TOK_EQ TO STATE 13 | |
SHIFT ON + TO STATE 14 | |
SHIFT ON - TO STATE 15 | |
SHIFT ON * TO STATE 16 | |
SHIFT ON / TO STATE 17 | |
REDUCE BY RULE 12 with $ | |
REDUCE BY RULE 12 with TOK_AND | |
REDUCE BY RULE 12 with TOK_OR | |
REDUCE BY RULE 12 with TOK_LE | |
REDUCE BY RULE 12 with TOK_LT | |
REDUCE BY RULE 12 with TOK_GE | |
REDUCE BY RULE 12 with TOK_GT | |
REDUCE BY RULE 12 with TOK_NE | |
REDUCE BY RULE 12 with TOK_EQ | |
REDUCE BY RULE 12 with + | |
REDUCE BY RULE 12 with - | |
REDUCE BY RULE 12 with * | |
REDUCE BY RULE 12 with / | |
REDUCE BY RULE 12 with ) | |
Packed Actions | |
With $ Reduce by rule 12 | |
With TOK_AND Reduce by rule 12 | |
With TOK_OR Reduce by rule 12 | |
With TOK_LE Reduce by rule 12 | |
With TOK_LT Reduce by rule 12 | |
With TOK_GE Reduce by rule 12 | |
With TOK_GT Reduce by rule 12 | |
With TOK_NE Reduce by rule 12 | |
With TOK_EQ Reduce by rule 12 | |
With + Reduce by rule 12 | |
With - Reduce by rule 12 | |
With * Reduce by rule 12 | |
With / Reduce by rule 12 | |
With ) Reduce by rule 12 | |
Default: Error | |
Errors | |
(token group) |
State # 32
Goto from state 17 with symbol Expression
Rule | Production |
---|---|
13 | Expression ⇒ Expression / Expression . |
1 | Expression ⇒ Expression . TOK_AND Expression |
2 | Expression ⇒ Expression . TOK_OR Expression |
4 | Expression ⇒ Expression . TOK_LE Expression |
5 | Expression ⇒ Expression . TOK_LT Expression |
6 | Expression ⇒ Expression . TOK_GE Expression |
7 | Expression ⇒ Expression . TOK_GT Expression |
8 | Expression ⇒ Expression . TOK_NE Expression |
9 | Expression ⇒ Expression . TOK_EQ Expression |
10 | Expression ⇒ Expression . + Expression |
11 | Expression ⇒ Expression . - Expression |
12 | Expression ⇒ Expression . * Expression |
13 | Expression ⇒ Expression . / Expression |
SHIFT ON TOK_AND TO STATE 6 | |
SHIFT ON TOK_OR TO STATE 7 | |
SHIFT ON TOK_LE TO STATE 8 | |
SHIFT ON TOK_LT TO STATE 9 | |
SHIFT ON TOK_GE TO STATE 10 | |
SHIFT ON TOK_GT TO STATE 11 | |
SHIFT ON TOK_NE TO STATE 12 | |
SHIFT ON TOK_EQ TO STATE 13 | |
SHIFT ON + TO STATE 14 | |
SHIFT ON - TO STATE 15 | |
SHIFT ON * TO STATE 16 | |
SHIFT ON / TO STATE 17 | |
REDUCE BY RULE 13 with $ | |
REDUCE BY RULE 13 with TOK_AND | |
REDUCE BY RULE 13 with TOK_OR | |
REDUCE BY RULE 13 with TOK_LE | |
REDUCE BY RULE 13 with TOK_LT | |
REDUCE BY RULE 13 with TOK_GE | |
REDUCE BY RULE 13 with TOK_GT | |
REDUCE BY RULE 13 with TOK_NE | |
REDUCE BY RULE 13 with TOK_EQ | |
REDUCE BY RULE 13 with + | |
REDUCE BY RULE 13 with - | |
REDUCE BY RULE 13 with * | |
REDUCE BY RULE 13 with / | |
REDUCE BY RULE 13 with ) | |
Packed Actions | |
With $ Reduce by rule 13 | |
With TOK_AND Reduce by rule 13 | |
With TOK_OR Reduce by rule 13 | |
With TOK_LE Reduce by rule 13 | |
With TOK_LT Reduce by rule 13 | |
With TOK_GE Reduce by rule 13 | |
With TOK_GT Reduce by rule 13 | |
With TOK_NE Reduce by rule 13 | |
With TOK_EQ Reduce by rule 13 | |
With + Reduce by rule 13 | |
With - Reduce by rule 13 | |
With * Reduce by rule 13 | |
With / Reduce by rule 13 | |
With ) Reduce by rule 13 | |
Default: Error | |
Errors | |
(token group) |
State # 33
Goto from state 20 with symbol )
Rule | Production |
---|---|
15 | Expression ⇒ ( Expression ) . |
REDUCE BY RULE 15 with $ | |
REDUCE BY RULE 15 with TOK_AND | |
REDUCE BY RULE 15 with TOK_OR | |
REDUCE BY RULE 15 with TOK_LE | |
REDUCE BY RULE 15 with TOK_LT | |
REDUCE BY RULE 15 with TOK_GE | |
REDUCE BY RULE 15 with TOK_GT | |
REDUCE BY RULE 15 with TOK_NE | |
REDUCE BY RULE 15 with TOK_EQ | |
REDUCE BY RULE 15 with + | |
REDUCE BY RULE 15 with - | |
REDUCE BY RULE 15 with * | |
REDUCE BY RULE 15 with / | |
REDUCE BY RULE 15 with ) | |
Packed Actions | |
With $ Reduce by rule 15 | |
With TOK_AND Reduce by rule 15 | |
With TOK_OR Reduce by rule 15 | |
With TOK_LE Reduce by rule 15 | |
With TOK_LT Reduce by rule 15 | |
With TOK_GE Reduce by rule 15 | |
With TOK_GT Reduce by rule 15 | |
With TOK_NE Reduce by rule 15 | |
With TOK_EQ Reduce by rule 15 | |
With + Reduce by rule 15 | |
With - Reduce by rule 15 | |
With * Reduce by rule 15 | |
With / Reduce by rule 15 | |
With ) Reduce by rule 15 | |
Default: Error | |
Errors | |
(token group) |
Summary
Property | Value |
---|---|
Source | /Users/jcgarza/dev/prototype/syntax/target/test-classes/javascript-test.sy |
Output | /Users/jcgarza/dev/prototype/syntax/test-output/working-files/JsTestParser.js |
Include/Interface | null |
Bundle | null |
Skeleton | null |
Algorithm | SLR |
Language | javascript |
Packed? | true |
Tokens | 18 |
Non Terminals | 2 |
Lexer Modes | 1 |
Types | 1 |
Error Groups | 1 |
Regular Expressions | 7 |
Rules | 17 |
Errors | 3 |
Actions | 254 |
Gotos | 16 |
Recoveries | 0 |
States | 34 |