Skip to content

Instantly share code, notes, and snippets.

@ELLIOTTCABLE
Created August 2, 2019 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ELLIOTTCABLE/5ec6bddae7312a66a634c337999f597c to your computer and use it in GitHub Desktop.
Save ELLIOTTCABLE/5ec6bddae7312a66a634c337999f597c to your computer and use it in GitHub Desktop.
'use strict';
var AST = require("./aST.bs.js");
var List = require("bs-platform/lib/js/list.js");
var $$Array = require("bs-platform/lib/js/array.js");
var Block = require("bs-platform/lib/js/block.js");
var Curry = require("bs-platform/lib/js/curry.js");
var $$String = require("bs-platform/lib/js/string.js");
var MenhirLib = require("./menhirLib.bs.js");
var Pervasives = require("bs-platform/lib/js/pervasives.js");
var Caml_string = require("bs-platform/lib/js/caml_string.js");
var Caml_exceptions = require("bs-platform/lib/js/caml_exceptions.js");
var Caml_builtin_exceptions = require("bs-platform/lib/js/caml_builtin_exceptions.js");
var $$Error = Caml_exceptions.create("ParserAutomaton.MenhirBasics.Error");
function token2terminal(_tok) {
if (typeof _tok === "number") {
switch (_tok) {
case 0 :
return 3;
case 1 :
return 8;
case 2 :
return 9;
case 3 :
return 10;
case 4 :
return 14;
case 5 :
return 15;
case 6 :
return 17;
case 7 :
return 18;
case 8 :
return 20;
}
} else {
switch (_tok.tag | 0) {
case 0 :
return 1;
case 1 :
return 2;
case 2 :
return 4;
case 3 :
return 5;
case 4 :
return 6;
case 5 :
return 7;
case 6 :
return 11;
case 7 :
return 12;
case 8 :
return 13;
case 9 :
return 16;
case 10 :
return 19;
}
}
}
function token2value(_tok) {
if (typeof _tok === "number") {
return /* () */0;
} else {
return _tok[0];
}
}
var default_reduction = /* tuple */[
8,
"\0\x05\0\x11\0\x1f\0 \0\x1a\0\x06\0\0\x16\x15\0\0\0\0\0\x0b\0\0\0\t\0\0\0\n\f\x17\"\x18\x04'\x01\x1e\0#\x1d\x1c\0\0\0&\x02"
];
var error = /* tuple */[
21,
"\x10\x11\x88\0\0\0\x04\"\0\0\x01\0\x10\0\0\0\0F \0\0\0\x10\x80\0\0\0\x04\0\0\0\x05\x01\xd0\x10\0\0\0\0\0\0\0P\x1f\x02\0\x80\x14\x07@\xa0:\x04\x01\0\0\0\x01@t\0\x01\x80@\x10\0\0\0\0\x03\0 \x1a\x01\0\xd0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x04\0\0\0\0\0\0\0\0\0\x04\" \x02\0\0\x10\0\0\0\0\0\0"
];
var action = /* tuple */[
/* tuple */[
8,
"L\0\x16\0\f\0\x16\0\x15\0\x07\0\b,\0\0\x03\b\",\b\0F\x13\b\0\x13`h\0\0\0\0\0\0\0\0\x000\0\0\0\x16\f2\0\0"
],
/* tuple */[
8,
"Ia1BN6&\t.\x06I11F1>BNM\t5i=\x91:9m=M55\n5\x919969\x81\x9f\xb7\x06\0\0\0\0>BN=\x81\x1d\0i=\x19\0\0\n\0\x8d\x8d\0\x1dEE\0\x19"
]
];
var lhs = /* tuple */[
8,
"\x01\0\x16\x16\x15\x14\x13\x13\x13\x13\x13\x13\x12\x12\x11\x10\x10\x0f\x0e\x0e\r\r\f\f\x0b\x0b\n\n\t\t\b\b\x07\x07\x06\x05\x04\x03\x02"
];
var $$goto = /* tuple */[
/* tuple */[
8,
"4\0\x1d\0\x18\0\b\0\x0f\0\x1f\0\t\0\0\0\0\r\0\0<\0\x18DB\0P\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0t\\\0\0\0"
],
/* tuple */[
8,
"\x15\x18\x04 \x0b\r\x05\x13#\x17\x19\x1b\b\x1c\x1d\"\x15\x18$ \t\0\x06\0!\x17\x19\x1b\x05\x1c\x1d\"%\x07&')\x16\x15\x18\x1a\0\t\x17\x15\x18\x17*\x19\x1b\0\x1c\x1d\x1f\x19\x1b-\x1c\x1d\x1e,/\0\0\0\0\0*\0\0\0\0\0\0\t"
]
];
var semantic_action = /* array */[
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
var _menhir_s = _menhir_env[/* current */3];
var _startpos = _menhir_stack[/* endp */3];
return /* record */[
/* state */_menhir_s,
/* semv : [] */0,
/* startp */_startpos,
/* endp */_startpos,
/* next */_menhir_stack
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
return /* record */[
/* state */_menhir_stack[/* state */0],
/* semv */_menhir_stack[/* semv */1],
/* startp */_menhir_stack[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */_menhir_stack[/* next */4]
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
return /* record */[
/* state */_menhir_stack[/* state */0],
/* semv : () */0,
/* startp */_menhir_stack[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */_menhir_stack[/* next */4]
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
return /* record */[
/* state */_menhir_stack[/* state */0],
/* semv */_menhir_stack[/* semv */1],
/* startp */_menhir_stack[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */_menhir_stack[/* next */4]
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
var _v_000 = _menhir_stack[/* semv */1];
var _v = /* :: */[
_v_000,
/* [] */0
];
return /* record */[
/* state */_menhir_stack[/* state */0],
/* semv */_v,
/* startp */_menhir_stack[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */_menhir_stack[/* next */4]
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
return /* record */[
/* state */_menhir_stack[/* state */0],
/* semv */_menhir_stack[/* semv */1],
/* startp */_menhir_stack[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */_menhir_stack[/* next */4]
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
var match = _menhir_stack[/* next */4];
var _v_000 = match[/* semv */1];
var _v_001 = _menhir_stack[/* semv */1];
var _v = /* :: */[
_v_000,
_v_001
];
return /* record */[
/* state */match[/* state */0],
/* semv */_v,
/* startp */match[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */match[/* next */4]
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
var match = _menhir_stack[/* next */4];
var _v_000 = match[/* semv */1];
var _v_001 = _menhir_stack[/* semv */1];
var _v = /* :: */[
_v_000,
_v_001
];
return /* record */[
/* state */match[/* state */0],
/* semv */_v,
/* startp */match[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */match[/* next */4]
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
var match = _menhir_stack[/* next */4];
var _v = Pervasives.$at(match[/* semv */1], _menhir_stack[/* semv */1]);
return /* record */[
/* state */match[/* state */0],
/* semv */_v,
/* startp */match[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */match[/* next */4]
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
var match = _menhir_stack[/* next */4];
var _v = Pervasives.$at(match[/* semv */1], _menhir_stack[/* semv */1]);
return /* record */[
/* state */match[/* state */0],
/* semv */_v,
/* startp */match[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */match[/* next */4]
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
var _v = /* Flag */Block.__(1, [/* record */[
/* name */_menhir_stack[/* semv */1],
/* payload : Absent */1
]]);
return /* record */[
/* state */_menhir_stack[/* state */0],
/* semv */_v,
/* startp */_menhir_stack[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */_menhir_stack[/* next */4]
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
var match = _menhir_stack[/* next */4][/* next */4];
var _v = /* Flag */Block.__(1, [/* record */[
/* name */match[/* semv */1],
/* payload : Resolved */[_menhir_stack[/* semv */1]]
]]);
return /* record */[
/* state */match[/* state */0],
/* semv */_v,
/* startp */match[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */match[/* next */4]
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
var explode = function (str) {
var last = str.length - 1 | 0;
if (str === "") {
return /* [] */0;
} else {
return /* :: */[
$$String.make(1, Caml_string.get(str, 0)),
explode($$String.sub(str, 1, last))
];
}
};
var xs = explode(_menhir_stack[/* semv */1]);
var _v = List.map((function (x) {
return /* Flag */Block.__(1, [/* record */[
/* name */x,
/* payload : Absent */1
]]);
}), xs);
return /* record */[
/* state */_menhir_stack[/* state */0],
/* semv */_v,
/* startp */_menhir_stack[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */_menhir_stack[/* next */4]
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
var _menhir_s = _menhir_env[/* current */3];
var _startpos = _menhir_stack[/* endp */3];
return /* record */[
/* state */_menhir_s,
/* semv : [] */0,
/* startp */_startpos,
/* endp */_startpos,
/* next */_menhir_stack
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
var match = _menhir_stack[/* next */4];
var _v_000 = match[/* semv */1];
var _v_001 = _menhir_stack[/* semv */1];
var _v = /* :: */[
_v_000,
_v_001
];
return /* record */[
/* state */match[/* state */0],
/* semv */_v,
/* startp */match[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */match[/* next */4]
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
return /* record */[
/* state */_menhir_stack[/* state */0],
/* semv */_menhir_stack[/* semv */1],
/* startp */_menhir_stack[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */_menhir_stack[/* next */4]
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
var _v = /* Flag */Block.__(1, [/* record */[
/* name */_menhir_stack[/* semv */1],
/* payload : Unresolved */0
]]);
return /* record */[
/* state */_menhir_stack[/* state */0],
/* semv */_v,
/* startp */_menhir_stack[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */_menhir_stack[/* next */4]
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
var match = _menhir_stack[/* next */4][/* next */4];
var _v = /* Flag */Block.__(1, [/* record */[
/* name */match[/* semv */1],
/* payload : Resolved */[_menhir_stack[/* semv */1]]
]]);
return /* record */[
/* state */match[/* state */0],
/* semv */_v,
/* startp */match[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */match[/* next */4]
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
return /* record */[
/* state */_menhir_stack[/* state */0],
/* semv */_menhir_stack[/* semv */1],
/* startp */_menhir_stack[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */_menhir_stack[/* next */4]
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
var match = _menhir_stack[/* next */4];
var _v = match[/* semv */1] + _menhir_stack[/* semv */1];
return /* record */[
/* state */match[/* state */0],
/* semv */_v,
/* startp */match[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */match[/* next */4]
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
return /* record */[
/* state */_menhir_stack[/* state */0],
/* semv */_menhir_stack[/* semv */1],
/* startp */_menhir_stack[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */_menhir_stack[/* next */4]
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
return /* record */[
/* state */_menhir_stack[/* state */0],
/* semv */_menhir_stack[/* semv */1],
/* startp */_menhir_stack[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */_menhir_stack[/* next */4]
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
var _menhir_s = _menhir_env[/* current */3];
var _startpos = _menhir_stack[/* endp */3];
return /* record */[
/* state */_menhir_s,
/* semv */undefined,
/* startp */_startpos,
/* endp */_startpos,
/* next */_menhir_stack
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
var _v = _menhir_stack[/* semv */1];
return /* record */[
/* state */_menhir_stack[/* state */0],
/* semv */_v,
/* startp */_menhir_stack[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */_menhir_stack[/* next */4]
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
var _menhir_s = _menhir_env[/* current */3];
var _startpos = _menhir_stack[/* endp */3];
return /* record */[
/* state */_menhir_s,
/* semv */undefined,
/* startp */_startpos,
/* endp */_startpos,
/* next */_menhir_stack
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
var _v = _menhir_stack[/* semv */1];
return /* record */[
/* state */_menhir_stack[/* state */0],
/* semv */_v,
/* startp */_menhir_stack[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */_menhir_stack[/* next */4]
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
return /* record */[
/* state */_menhir_stack[/* state */0],
/* semv : [] */0,
/* startp */_menhir_stack[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */_menhir_stack[/* next */4]
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
return /* record */[
/* state */_menhir_stack[/* state */0],
/* semv */_menhir_stack[/* semv */1],
/* startp */_menhir_stack[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */_menhir_stack[/* next */4]
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
var match = _menhir_stack[/* next */4];
var _v_000 = match[/* semv */1];
var _v = /* :: */[
_v_000,
/* [] */0
];
return /* record */[
/* state */match[/* state */0],
/* semv */_v,
/* startp */match[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */match[/* next */4]
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
var match = _menhir_stack[/* next */4][/* next */4];
var _v_000 = match[/* semv */1];
var _v_001 = _menhir_stack[/* semv */1];
var _v = /* :: */[
_v_000,
_v_001
];
return /* record */[
/* state */match[/* state */0],
/* semv */_v,
/* startp */match[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */match[/* next */4]
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
var _v_000 = /* Positional */Block.__(0, [_menhir_stack[/* semv */1]]);
var _v = /* :: */[
_v_000,
/* [] */0
];
return /* record */[
/* state */_menhir_stack[/* state */0],
/* semv */_v,
/* startp */_menhir_stack[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */_menhir_stack[/* next */4]
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
var match = _menhir_stack[/* next */4];
var _v_000 = /* Positional */Block.__(0, [match[/* semv */1]]);
var _v_001 = _menhir_stack[/* semv */1];
var _v = /* :: */[
_v_000,
_v_001
];
return /* record */[
/* state */match[/* state */0],
/* semv */_v,
/* startp */match[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */match[/* next */4]
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
var match = _menhir_stack[/* next */4];
var _v = /* record */[/* statements */$$Array.of_list(match[/* semv */1])];
return /* record */[
/* state */match[/* state */0],
/* semv */_v,
/* startp */match[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */match[/* next */4]
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
return /* record */[
/* state */_menhir_stack[/* state */0],
/* semv */_menhir_stack[/* semv */1],
/* startp */_menhir_stack[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */_menhir_stack[/* next */4]
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
var explode = function (str) {
var last = str.length - 1 | 0;
if (str === "") {
return /* [] */0;
} else {
return /* :: */[
$$String.make(1, Caml_string.get(str, 0)),
explode($$String.sub(str, 1, last))
];
}
};
var xs = explode(_menhir_stack[/* semv */1]);
var len = List.length(xs);
var _v = List.mapi((function (i, x) {
return /* Flag */Block.__(1, [/* record */[
/* name */x,
/* payload */i === (len - 1 | 0) ? /* Unresolved */0 : /* Absent */1
]]);
}), xs);
return /* record */[
/* state */_menhir_stack[/* state */0],
/* semv */_v,
/* startp */_menhir_stack[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */_menhir_stack[/* next */4]
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
var match = _menhir_stack[/* next */4][/* next */4];
return /* record */[
/* state */match[/* state */0],
/* semv */match[/* semv */1],
/* startp */match[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */match[/* next */4]
];
}),
(function (_menhir_env) {
var _menhir_stack = _menhir_env[/* stack */2];
var match = _menhir_stack[/* next */4];
var match$1 = match[/* next */4];
var match$2 = match$1[/* next */4];
var _v = AST.make_statement(match$1[/* semv */1], match[/* semv */1], _menhir_stack[/* semv */1]);
return /* record */[
/* state */match$2[/* state */0],
/* semv */_v,
/* startp */match$2[/* startp */2],
/* endp */_menhir_stack[/* endp */3],
/* next */match$2[/* next */4]
];
})
];
var ET = MenhirLib.TableInterpreter[/* MakeEngineTable */0]([
token2terminal,
0,
token2value,
default_reduction,
error,
action,
lhs,
$$goto,
2,
semantic_action,
$$Error,
undefined
]);
var TI = MenhirLib.Engine[/* Make */0](ET);
var entry = TI[1];
var start = TI[25];
var Symbols = /* module */[];
MenhirLib.InspectionTableInterpreter[/* Symbols */0](Symbols);
function terminal(t) {
switch (t) {
case 0 :
return /* X */[/* T */Block.__(0, [/* T_error */0])];
case 1 :
return /* X */[/* T */Block.__(0, [/* T_URL_START */1])];
case 2 :
return /* X */[/* T */Block.__(0, [/* T_URL_REST */2])];
case 3 :
return /* X */[/* T */Block.__(0, [/* T_SEMICOLON */3])];
case 4 :
return /* X */[/* T */Block.__(0, [/* T_QUOTE_OPEN */4])];
case 5 :
return /* X */[/* T */Block.__(0, [/* T_QUOTE_ESCAPE */5])];
case 6 :
return /* X */[/* T */Block.__(0, [/* T_QUOTE_CLOSE */6])];
case 7 :
return /* X */[/* T */Block.__(0, [/* T_QUOTE_CHUNK */7])];
case 8 :
return /* X */[/* T */Block.__(0, [/* T_PIPE */8])];
case 9 :
return /* X */[/* T */Block.__(0, [/* T_PAREN_OPEN */9])];
case 10 :
return /* X */[/* T */Block.__(0, [/* T_PAREN_CLOSE */10])];
case 11 :
return /* X */[/* T */Block.__(0, [/* T_IDENTIFIER */11])];
case 12 :
return /* X */[/* T */Block.__(0, [/* T_FLAG_LONG */12])];
case 13 :
return /* X */[/* T */Block.__(0, [/* T_FLAGS_SHORT */13])];
case 14 :
return /* X */[/* T */Block.__(0, [/* T_EQUALS */14])];
case 15 :
return /* X */[/* T */Block.__(0, [/* T_EOF */15])];
case 16 :
return /* X */[/* T */Block.__(0, [/* T_COUNT */16])];
case 17 :
return /* X */[/* T */Block.__(0, [/* T_COMMENT_OPEN */17])];
case 18 :
return /* X */[/* T */Block.__(0, [/* T_COMMENT_CLOSE */18])];
case 19 :
return /* X */[/* T */Block.__(0, [/* T_COMMENT */19])];
case 20 :
return /* X */[/* T */Block.__(0, [/* T_COLON */20])];
default:
throw [
Caml_builtin_exceptions.assert_failure,
/* tuple */[
"parserAutomaton.ml",
1728,
12
]
];
}
}
function nonterminal(nt) {
switch (nt) {
case 2 :
return /* X */[/* N */Block.__(1, [/* N_unterminated_statement */0])];
case 3 :
return /* X */[/* N */Block.__(1, [/* N_statement */1])];
case 4 :
return /* X */[/* N */Block.__(1, [/* N_short_flags_before_positional */2])];
case 5 :
return /* X */[/* N */Block.__(1, [/* N_short_flags_before_flag */3])];
case 6 :
return /* X */[/* N */Block.__(1, [/* N_script */4])];
case 7 :
return /* X */[/* N */Block.__(1, [/* N_positional_and_arguments */5])];
case 8 :
return /* X */[/* N */Block.__(1, [/* N_optterm_nonempty_list_break_unterminated_statement_ */6])];
case 9 :
return /* X */[/* N */Block.__(1, [/* N_optterm_list_break_unterminated_statement_ */7])];
case 10 :
return /* X */[/* N */Block.__(1, [/* N_option_break_ */8])];
case 11 :
return /* X */[/* N */Block.__(1, [/* N_option_COUNT_ */9])];
case 12 :
return /* X */[/* N */Block.__(1, [/* N_nonempty_arguments */10])];
case 13 :
return /* X */[/* N */Block.__(1, [/* N_noncommand_word */11])];
case 14 :
return /* X */[/* N */Block.__(1, [/* N_long_flag_before_positional */12])];
case 15 :
return /* X */[/* N */Block.__(1, [/* N_long_flag_before_flag */13])];
case 16 :
return /* X */[/* N */Block.__(1, [/* N_list_COLON_ */14])];
case 17 :
return /* X */[/* N */Block.__(1, [/* N_last_short_flags */15])];
case 18 :
return /* X */[/* N */Block.__(1, [/* N_last_long_flag */16])];
case 19 :
return /* X */[/* N */Block.__(1, [/* N_flag_and_arguments */17])];
case 20 :
return /* X */[/* N */Block.__(1, [/* N_command */18])];
case 21 :
return /* X */[/* N */Block.__(1, [/* N_break */19])];
case 22 :
return /* X */[/* N */Block.__(1, [/* N_arguments */20])];
default:
throw [
Caml_builtin_exceptions.assert_failure,
/* tuple */[
"parserAutomaton.ml",
1776,
12
]
];
}
}
var include = MenhirLib.InspectionTableInterpreter[/* Make */1]([
token2terminal,
0,
token2value,
default_reduction,
error,
action,
lhs,
$$goto,
2,
semantic_action,
$$Error,
undefined
])(/* module */[
/* terminal */terminal,
/* nonterminal */nonterminal,
/* rhs : tuple */[
/* tuple */[
8,
"\r\x07\x19\b\x18%#\x1d\x0f\x1f'\t\x0f\x0b'\x1a\x1a\x1e\x1b\x1c*!%\x1a\x1a\x1e\x1b\x18\x04\x06\x0f'\"+\x15\x11\x05\x15\x05+\x11\x1b\x1b\x19\x13 #\x1c\x05\x15 !\x17)-"
],
/* tuple */[
8,
"\0\x01\x02\x02\x03\x04\x05\x06\x07\t\x0b\r\x0f\x10\x13\x14\x14\x16\x17\x18\x1b\x1c\x1e\x1f !!\"#$&)*,./037"
]
],
/* lr0_core : tuple */[
8,
"\0\x01\x02\x03\x04\x05\x06\x07\b\t\n\x0b\f\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !\"#$%&'()*+,-."
],
/* lr0_items : tuple */[
/* tuple */[
16,
"\0\0\x02\x01\b\x01\b\x02\x0f\x81\x0f\x01\x0f\x02\x0f\x82\r\x81\x0f\x83\x13\x01\f\x81\x13\x02\x02\x81\x13\x03\n\x81\n\x82\n\x01\t\x81\t\x01\x06\x81\x06\x01\t\x82\x06\x82\t\x83\x06\x83\x12\x01\x07\x01\x05\x01\x05\x02\x10\x81\x10\x01\x05\x81\x04\x01\x04\x02\x04\x81\x11\x81\x03\x81\b\x81\x03\x01\x04\x82\x05\x82\x0b\x01\x10\x82\x0b\x81\x01\x81\x13\x04\0\x01\x0e\x81\x11\x01\x11\x02\x0e\x01\r\x81\0\x80\x12\x81\x12\x82\x12\x83\0\x81"
],
/* tuple */[
8,
"\0\x01\x02\x03\x04\x06\x07\t\n\x0b\f\r\x0e\x0f\x10\x11\x12\x16\x18\x1a\x1c\x1d\x1e !\"#$&()*+,-./0123456789:"
]
],
/* lr0_incoming : tuple */[
8,
"\0\b*!\x05\x15+\x11!\"\x17\x18)\x04\x06\x18\x1a\x1e\x1b\x1c\t\x0f\x1b\x0b\x1d\x0f\x1f#%''\x0f\x19'\x19-\r\x11\x13 \x15+\0\x05\x15 \x07"
],
/* nullable */"\0p\x82",
/* first : tuple */[
21,
"\0\x10\x88\x80\x8c@\x04\"\0!\x10\0@\0\x02\0@F(\x02\0\0\x10\x88\x80\x84D\0\0\0\x01\x04\x01\xc0 \b\0\0 \0\x01\0\0\0\b\0 \0\x02\0\0\x18\0\x01\0\b\0\x01\0p\0"
]
])(ET)([]);
function statement(lexer, lexbuf) {
return Curry._3(entry, 42, lexer, lexbuf);
}
function script(lexer, lexbuf) {
return Curry._3(entry, 0, lexer, lexbuf);
}
function statement$1(initial_position) {
return Curry._2(start, 42, initial_position);
}
function script$1(initial_position) {
return Curry._2(start, 0, initial_position);
}
var Incremental = /* module */[
/* statement */statement$1,
/* script */script$1
];
var MenhirInterpreter_000 = TI[2];
var MenhirInterpreter_001 = TI[3];
var MenhirInterpreter_002 = TI[4];
var MenhirInterpreter_003 = TI[5];
var MenhirInterpreter_004 = TI[6];
var MenhirInterpreter_005 = TI[7];
var MenhirInterpreter_006 = TI[8];
var MenhirInterpreter_007 = TI[9];
var MenhirInterpreter_008 = TI[10];
var MenhirInterpreter_009 = TI[11];
var MenhirInterpreter_010 = TI[12];
var MenhirInterpreter_011 = TI[13];
var MenhirInterpreter_012 = TI[14];
var MenhirInterpreter_013 = TI[15];
var MenhirInterpreter_014 = TI[16];
var MenhirInterpreter_015 = TI[17];
var MenhirInterpreter_016 = TI[18];
var MenhirInterpreter_017 = TI[19];
var MenhirInterpreter_018 = TI[20];
var MenhirInterpreter_019 = TI[21];
var MenhirInterpreter_020 = TI[22];
var MenhirInterpreter_021 = TI[23];
var MenhirInterpreter_022 = TI[24];
var MenhirInterpreter_023 = include[0];
var MenhirInterpreter_024 = include[1];
var MenhirInterpreter_025 = include[2];
var MenhirInterpreter_026 = include[3];
var MenhirInterpreter_027 = include[4];
var MenhirInterpreter_028 = include[5];
var MenhirInterpreter_029 = include[6];
var MenhirInterpreter_030 = include[7];
var MenhirInterpreter_031 = include[8];
var MenhirInterpreter_032 = include[9];
var MenhirInterpreter_033 = include[10];
var MenhirInterpreter_034 = include[11];
var MenhirInterpreter_035 = include[12];
var MenhirInterpreter_036 = include[13];
var MenhirInterpreter_037 = include[14];
var MenhirInterpreter = [
MenhirInterpreter_000,
MenhirInterpreter_001,
MenhirInterpreter_002,
MenhirInterpreter_003,
MenhirInterpreter_004,
MenhirInterpreter_005,
MenhirInterpreter_006,
MenhirInterpreter_007,
MenhirInterpreter_008,
MenhirInterpreter_009,
MenhirInterpreter_010,
MenhirInterpreter_011,
MenhirInterpreter_012,
MenhirInterpreter_013,
MenhirInterpreter_014,
MenhirInterpreter_015,
MenhirInterpreter_016,
MenhirInterpreter_017,
MenhirInterpreter_018,
MenhirInterpreter_019,
MenhirInterpreter_020,
MenhirInterpreter_021,
MenhirInterpreter_022,
MenhirInterpreter_023,
MenhirInterpreter_024,
MenhirInterpreter_025,
MenhirInterpreter_026,
MenhirInterpreter_027,
MenhirInterpreter_028,
MenhirInterpreter_029,
MenhirInterpreter_030,
MenhirInterpreter_031,
MenhirInterpreter_032,
MenhirInterpreter_033,
MenhirInterpreter_034,
MenhirInterpreter_035,
MenhirInterpreter_036,
MenhirInterpreter_037
];
exports.$$Error = $$Error;
exports.statement = statement;
exports.script = script;
exports.MenhirInterpreter = MenhirInterpreter;
exports.Incremental = Incremental;
/* ET Not a pure module */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment