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

Function fxDoStatement

xs/sources/xsSyntaxical.c:1485–1500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1483}
1484
1485void fxDoStatement(txParser* parser)
1486{
1487 txInteger aLine = parser->states[0].line;
1488 fxCheckParserStack(parser, aLine);
1489 fxPushNULL(parser);
1490 fxMatchToken(parser, XS_TOKEN_DO);
1491 fxStatement(parser, 0);
1492 fxMatchToken(parser, XS_TOKEN_WHILE);
1493 fxMatchToken(parser, XS_TOKEN_LEFT_PARENTHESIS);
1494 fxCommaExpression(parser);
1495 fxMatchToken(parser, XS_TOKEN_RIGHT_PARENTHESIS);
1496 if (parser->states[0].token == XS_TOKEN_SEMICOLON)
1497 fxGetNextToken(parser);
1498 fxPushNodeStruct(parser, 2, XS_TOKEN_DO, aLine);
1499 fxPushNodeStruct(parser, 2, XS_TOKEN_LABEL, aLine);
1500}
1501
1502void fxForStatement(txParser* parser)
1503{

Callers 1

fxStatementFunction · 0.85

Calls 7

fxCheckParserStackFunction · 0.85
fxPushNULLFunction · 0.85
fxMatchTokenFunction · 0.85
fxStatementFunction · 0.85
fxCommaExpressionFunction · 0.85
fxGetNextTokenFunction · 0.85
fxPushNodeStructFunction · 0.85

Tested by

no test coverage detected