File manager - Edit - /home/opticamezl/www/newok/fcl.tar
Back
fcl.js 0000644 00000011142 15175643034 0005655 0 ustar 00 // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("fcl", function(config) { var indentUnit = config.indentUnit; var keywords = { "term": true, "method": true, "accu": true, "rule": true, "then": true, "is": true, "and": true, "or": true, "if": true, "default": true }; var start_blocks = { "var_input": true, "var_output": true, "fuzzify": true, "defuzzify": true, "function_block": true, "ruleblock": true }; var end_blocks = { "end_ruleblock": true, "end_defuzzify": true, "end_function_block": true, "end_fuzzify": true, "end_var": true }; var atoms = { "true": true, "false": true, "nan": true, "real": true, "min": true, "max": true, "cog": true, "cogs": true }; var isOperatorChar = /[+\-*&^%:=<>!|\/]/; function tokenBase(stream, state) { var ch = stream.next(); if (/[\d\.]/.test(ch)) { if (ch == ".") { stream.match(/^[0-9]+([eE][\-+]?[0-9]+)?/); } else if (ch == "0") { stream.match(/^[xX][0-9a-fA-F]+/) || stream.match(/^0[0-7]+/); } else { stream.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/); } return "number"; } if (ch == "/" || ch == "(") { if (stream.eat("*")) { state.tokenize = tokenComment; return tokenComment(stream, state); } if (stream.eat("/")) { stream.skipToEnd(); return "comment"; } } if (isOperatorChar.test(ch)) { stream.eatWhile(isOperatorChar); return "operator"; } stream.eatWhile(/[\w\$_\xa1-\uffff]/); var cur = stream.current().toLowerCase(); if (keywords.propertyIsEnumerable(cur) || start_blocks.propertyIsEnumerable(cur) || end_blocks.propertyIsEnumerable(cur)) { return "keyword"; } if (atoms.propertyIsEnumerable(cur)) return "atom"; return "variable"; } function tokenComment(stream, state) { var maybeEnd = false, ch; while (ch = stream.next()) { if ((ch == "/" || ch == ")") && maybeEnd) { state.tokenize = tokenBase; break; } maybeEnd = (ch == "*"); } return "comment"; } function Context(indented, column, type, align, prev) { this.indented = indented; this.column = column; this.type = type; this.align = align; this.prev = prev; } function pushContext(state, col, type) { return state.context = new Context(state.indented, col, type, null, state.context); } function popContext(state) { if (!state.context.prev) return; var t = state.context.type; if (t == "end_block") state.indented = state.context.indented; return state.context = state.context.prev; } // Interface return { startState: function(basecolumn) { return { tokenize: null, context: new Context((basecolumn || 0) - indentUnit, 0, "top", false), indented: 0, startOfLine: true }; }, token: function(stream, state) { var ctx = state.context; if (stream.sol()) { if (ctx.align == null) ctx.align = false; state.indented = stream.indentation(); state.startOfLine = true; } if (stream.eatSpace()) return null; var style = (state.tokenize || tokenBase)(stream, state); if (style == "comment") return style; if (ctx.align == null) ctx.align = true; var cur = stream.current().toLowerCase(); if (start_blocks.propertyIsEnumerable(cur)) pushContext(state, stream.column(), "end_block"); else if (end_blocks.propertyIsEnumerable(cur)) popContext(state); state.startOfLine = false; return style; }, indent: function(state, textAfter) { if (state.tokenize != tokenBase && state.tokenize != null) return 0; var ctx = state.context; var closing = end_blocks.propertyIsEnumerable(textAfter); if (ctx.align) return ctx.column + (closing ? 0 : 1); else return ctx.indented + (closing ? 0 : indentUnit); }, electricChars: "ryk", fold: "brace", blockCommentStart: "(*", blockCommentEnd: "*)", lineComment: "//" }; }); CodeMirror.defineMIME("text/x-fcl", "fcl"); }); fcl.min.js 0000644 00000004473 15175643034 0006450 0 ustar 00 (function(u){typeof exports=="object"&&typeof module=="object"?u(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("fcl",function(b){var l=b.indentUnit,k={term:!0,method:!0,accu:!0,rule:!0,then:!0,is:!0,and:!0,or:!0,if:!0,default:!0},c={var_input:!0,var_output:!0,fuzzify:!0,defuzzify:!0,function_block:!0,ruleblock:!0},o={end_ruleblock:!0,end_defuzzify:!0,end_function_block:!0,end_fuzzify:!0,end_var:!0},x={true:!0,false:!0,nan:!0,real:!0,min:!0,max:!0,cog:!0,cogs:!0},d=/[+\-*&^%:=<>!|\/]/;function f(e,t){var n=e.next();if(/[\d\.]/.test(n))return n=="."?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):n=="0"?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(n=="/"||n=="("){if(e.eat("*"))return t.tokenize=a,a(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(d.test(n))return e.eatWhile(d),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var r=e.current().toLowerCase();return k.propertyIsEnumerable(r)||c.propertyIsEnumerable(r)||o.propertyIsEnumerable(r)?"keyword":x.propertyIsEnumerable(r)?"atom":"variable"}function a(e,t){for(var n=!1,r;r=e.next();){if((r=="/"||r==")")&&n){t.tokenize=f;break}n=r=="*"}return"comment"}function p(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function m(e,t,n){return e.context=new p(e.indented,t,n,null,e.context)}function v(e){if(e.context.prev){var t=e.context.type;return t=="end_block"&&(e.indented=e.context.indented),e.context=e.context.prev}}return{startState:function(e){return{tokenize:null,context:new p((e||0)-l,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(n.align==null&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;var r=(t.tokenize||f)(e,t);if(r=="comment")return r;n.align==null&&(n.align=!0);var i=e.current().toLowerCase();return c.propertyIsEnumerable(i)?m(t,e.column(),"end_block"):o.propertyIsEnumerable(i)&&v(t),t.startOfLine=!1,r},indent:function(e,t){if(e.tokenize!=f&&e.tokenize!=null)return 0;var n=e.context,r=o.propertyIsEnumerable(t);return n.align?n.column+(r?0:1):n.indented+(r?0:l)},electricChars:"ryk",fold:"brace",blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:"//"}}),u.defineMIME("text/x-fcl","fcl")}); fcl.min.js.gz 0000644 00000002065 15175643034 0007062 0 ustar 00 � �V�n�6}�W�D+�-)OE��F���!-Z���4Z��H�"'��� usv��ɹp�g,\X��$��1�P� �J��1���@fP�J嶄ɰ�XÿVh�(�0�J��2�C%�V��Gs(�tG@�.�U��x��0jIb����kHK��͑��6Zd�6�=�0*���wK�#�7%ۆB� ͟R�g�]%��V`v*w;�e֭ږ�V��VQ{��NJ{U�~s(�-M2�[�1��,�:u���� ��&���$�|ޖ*���R����:Ż N�u�N���ȵ�zb���s,xY��䞫^��/V��L}���Y��]/���/��:�D�p��5]�%�P��`��G�u�7Qh�6X��X-o$c(DK+n��>���O�[����j���,;YF$q��;���g����o�ۈ�ϓ5^ŋ�2�"�|va��ġH�j��;���nň4��7���F�A�7`�r��tr�&G�8��d� E��*��������ډpN(R��(��C�Z���^���bm��(6I]�5�0�Z�4��F}T/��y ��=�><hռ~���@�m X��9�nR�LK����s����p�*��#���P;��.oM�4�����TO��'� n%��$�E��t���[ɜ���)�#��QI5�1;Q�cr�˙*m%��$7ݘ��%ӝp�pdb \u�I32S��0 /v�Җ%}�爡o��#u�eؤujjC��0@ApvqbP� ��Gi��5���<n '+Ԛ!�'�H:���,JSd����rS��⣐n�-��.P�Ib��u]U�� ���s��2���-�a����b����3��d�e�w���\������pL�Wow�)��3��� � _3�0��jMu�T�����m_�/��<0��".EGk`�è�D5�r 3����=�[��qrG9֬S���PB���w\� ү{DU� �j����}W�'�/Ax�^� �� �����E�m ?!><>`�8D�������%�w�*��;
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0 |
proxy
|
phpinfo
|
Settings