Liferay.Loader.define("journal-web$codemirror@5.65.2/mode/forth/forth",["module","exports","require","../../lib/codemirror"],(function(t,e,E){var r,i=void 0;window;r=function(t){"use strict";function toWordList(t){var e=[];return t.split(" ").forEach((function(t){e.push({name:t})})),e}var e=toWordList("INVERT AND OR XOR 2* 2/ LSHIFT RSHIFT 0= = 0< < > U< MIN MAX 2DROP 2DUP 2OVER 2SWAP ?DUP DEPTH DROP DUP OVER ROT SWAP >R R> R@ + - 1+ 1- ABS NEGATE S>D * M* UM* FM/MOD SM/REM UM/MOD */ */MOD / /MOD MOD HERE , @ ! CELL+ CELLS C, C@ C! CHARS 2@ 2! ALIGN ALIGNED +! ALLOT CHAR [CHAR] [ ] BL FIND EXECUTE IMMEDIATE COUNT LITERAL STATE ; DOES> >BODY EVALUATE SOURCE >IN <# # #S #> HOLD SIGN BASE >NUMBER HEX DECIMAL FILL MOVE . CR EMIT SPACE SPACES TYPE U. .R U.R ACCEPT TRUE FALSE <> U> 0<> 0> NIP TUCK ROLL PICK 2>R 2R@ 2R> WITHIN UNUSED MARKER I J TO COMPILE, [COMPILE] SAVE-INPUT RESTORE-INPUT PAD ERASE 2LITERAL DNEGATE D- D+ D0< D0= D2* D2/ D< D= DMAX DMIN D>S DABS M+ M*/ D. D.R 2ROT DU< CATCH THROW FREE RESIZE ALLOCATE CS-PICK CS-ROLL GET-CURRENT SET-CURRENT FORTH-WORDLIST GET-ORDER SET-ORDER PREVIOUS SEARCH-WORDLIST WORDLIST FIND ALSO ONLY FORTH DEFINITIONS ORDER -TRAILING /STRING SEARCH COMPARE CMOVE CMOVE> BLANK SLITERAL"),E=toWordList("IF ELSE THEN BEGIN WHILE REPEAT UNTIL RECURSE [IF] [ELSE] [THEN] ?DO DO LOOP +LOOP UNLOOP LEAVE EXIT AGAIN CASE OF ENDOF ENDCASE");t.defineMode("forth",(function(){function searchWordList(t,e){var E;for(E=t.length-1;E>=0;E--)if(t[E].name===e.toUpperCase())return t[E]}return{startState:function(){return{state:"",base:10,coreWordList:e,immediateWordList:E,wordList:[]}},token:function(t,e){var E;if(t.eatSpace())return null;if(""===e.state){if(t.match(/^(\]|:NONAME)(\s|$)/i))return e.state=" compilation","builtin compilation";if(E=t.match(/^(\:)\s+(\S+)(\s|$)+/))return e.wordList.push({name:E[2].toUpperCase()}),e.state=" compilation","def"+e.state;if(E=t.match(/^(VARIABLE|2VARIABLE|CONSTANT|2CONSTANT|CREATE|POSTPONE|VALUE|WORD)\s+(\S+)(\s|$)+/i))return e.wordList.push({name:E[2].toUpperCase()}),"def"+e.state;if(E=t.match(/^(\'|\[\'\])\s+(\S+)(\s|$)+/))return"builtin"+e.state}else{if(t.match(/^(\;|\[)(\s)/))return e.state="",t.backUp(1),"builtin compilation";if(t.match(/^(\;|\[)($)/))return e.state="","builtin compilation";if(t.match(/^(POSTPONE)\s+\S+(\s|$)+/))return"builtin"}return(E=t.match(/^(\S+)(\s+|$)/))?void 0!==searchWordList(e.wordList,E[1])?"variable"+e.state:"\\"===E[1]?(t.skipToEnd(),"comment"+e.state):void 0!==searchWordList(e.coreWordList,E[1])?"builtin"+e.state:void 0!==searchWordList(e.immediateWordList,E[1])?"keyword"+e.state:"("===E[1]?(t.eatWhile((function(t){return")"!==t})),t.eat(")"),"comment"+e.state):".("===E[1]?(t.eatWhile((function(t){return")"!==t})),t.eat(")"),"string"+e.state):'S"'===E[1]||'."'===E[1]||'C"'===E[1]?(t.eatWhile((function(t){return'"'!==t})),t.eat('"'),"string"+e.state):E[1]-68719476735?"number"+e.state:"atom"+e.state:void 0}}})),t.defineMIME("text/x-forth","forth")},"object"==typeof e&&"object"==typeof t?r(E("../../lib/codemirror")):"function"==typeof i&&i.amd?i(["../../lib/codemirror"],r):r(CodeMirror)}));
//# sourceMappingURL=forth.js.map