MCPcopy Index your code
hub / github.com/Macuyiko/minecraft-python / parse

Function parse

ServerEditorWeb/ace/worker-lua.js:2769–2790  ·  view source on GitHub ↗
(_input, _options)

Source from the content-addressed store, hash-verified

2767 exports.parse = parse;
2768
2769 function parse(_input, _options) {
2770 if ('undefined' === typeof _options && 'object' === typeof _input) {
2771 _options = _input;
2772 _input = undefined;
2773 }
2774 if (!_options) _options = {};
2775
2776 input = _input || '';
2777 options = extend(defaultOptions, _options);
2778 index = 0;
2779 line = 1;
2780 lineStart = 0;
2781 length = input.length;
2782 scopes = [[]];
2783 scopeDepth = 0;
2784 globals = [];
2785 locations = [];
2786
2787 if (options.comments) comments = [];
2788 if (!options.wait) return end();
2789 return exports;
2790 }
2791 exports.write = write;
2792
2793 function write(_input) {

Callers 1

worker-json.jsFile · 0.70

Calls 2

extendFunction · 0.85
endFunction · 0.85

Tested by

no test coverage detected