MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxParseScript

Function fxParseScript

xs/tools/xsl.c:1062–1082  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1060}
1061
1062txScript* fxParseScript(txMachine* the, void* stream, txGetter getter, txUnsigned flags)
1063{
1064 txParser _parser;
1065 txParser* parser = &_parser;
1066 txParserJump jump;
1067 txScript* script = NULL;
1068 fxInitializeParser(parser, the, the->parserBufferSize, the->parserTableModulo);
1069 parser->firstJump = &jump;
1070 if (c_setjmp(jump.jmp_buf) == 0) {
1071 fxParserTree(parser, stream, getter, flags, NULL);
1072 fxParserHoist(parser);
1073 fxParserBind(parser);
1074 script = fxParserCode(parser);
1075 }
1076#ifdef mxInstrument
1077 if (the->peakParserSize < parser->total)
1078 the->peakParserSize = parser->total;
1079#endif
1080 fxTerminateParser(parser);
1081 return script;
1082}
1083
1084/* DEBUG */
1085

Callers 12

fuzzFunction · 0.70
fuzz_ossFunction · 0.70
fx_evalScriptFunction · 0.70
fx_agent_start_auxFunction · 0.70
fxBundleLoadFunction · 0.70
fxBundleRunFunction · 0.70
_262_agent_start_auxFunction · 0.50
_262_evalScriptFunction · 0.50
xs_repl_evalFunction · 0.50
xs_repl_evalFunction · 0.50
xs_repl_evalFunction · 0.50
xs_repl_evalFunction · 0.50

Calls 6

fxInitializeParserFunction · 0.85
fxParserTreeFunction · 0.85
fxParserHoistFunction · 0.85
fxParserBindFunction · 0.85
fxParserCodeFunction · 0.85
fxTerminateParserFunction · 0.85

Tested by

no test coverage detected