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

Function fxGetNextIdentiferX

xs/sources/xsLexical.c:313–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313txBoolean fxGetNextIdentiferX(txParser* parser, txU4* value)
314{
315 fxGetNextCharacter(parser);
316 if (parser->character == 'u') {
317 fxGetNextCharacter(parser);
318 if (parser->character == '{') {
319 fxGetNextCharacter(parser);
320 while (fxGetNextStringX(parser->character, value)) {
321 fxGetNextCharacter(parser);
322 }
323 if (parser->character == '}') {
324 fxGetNextCharacter(parser);
325 return 1;
326 }
327 }
328 else {
329 if (fxGetNextStringX(parser->character, value)) {
330 fxGetNextCharacter(parser);
331 if (fxGetNextStringX(parser->character, value)) {
332 fxGetNextCharacter(parser);
333 if (fxGetNextStringX(parser->character, value)) {
334 fxGetNextCharacter(parser);
335 if (fxGetNextStringX(parser->character, value)) {
336 fxGetNextCharacter(parser);
337 return 1;
338 }
339 }
340 }
341 }
342 }
343 }
344 return 0;
345}
346
347void fxGetNextNumber(txParser* parser, txNumber theNumber)
348{

Callers 1

fxGetNextTokenAuxFunction · 0.85

Calls 2

fxGetNextCharacterFunction · 0.85
fxGetNextStringXFunction · 0.85

Tested by

no test coverage detected