MCPcopy Create free account
hub / github.com/WheretIB/nullc / ParseCode

Function ParseCode

NULLC/Parser.cpp:2476–2490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2474}
2475
2476bool ParseCode(Lexeme** str)
2477{
2478 if(!ParseExpression(str))
2479 return false;
2480
2481 unsigned count = 0;
2482 while(ParseExpression(str))
2483 count++;
2484
2485 AddOneExpressionNode();
2486 while(count--)
2487 AddTwoExpressionNode();
2488
2489 return true;
2490}
2491
2492void ParseReset()
2493{

Callers 10

EndBlockFunction · 0.85
CompileMethod · 0.85
ParseFunctionDefinitionFunction · 0.85
ParseForExprFunction · 0.85
ParseArrayFunction · 0.85
ParseCustomConstructorFunction · 0.85
ParseBlockFunction · 0.85
ParseExpressionFunction · 0.85

Calls 3

ParseExpressionFunction · 0.85
AddOneExpressionNodeFunction · 0.85
AddTwoExpressionNodeFunction · 0.85

Tested by

no test coverage detected