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

Function ParseContinueExpr

NULLC/Parser.cpp:1710–1723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1708}
1709
1710bool ParseContinueExpr(Lexeme** str)
1711{
1712 const char *pos = (*str)->pos;
1713 if(!ParseLexem(str, lex_continue))
1714 return false;
1715
1716 if(!ParseTerminal(str))
1717 AddVoidNode();
1718
1719 if(!ParseLexem(str, lex_semicolon))
1720 ThrowError((*str)->pos, "ERROR: continue statement must be followed by ';'");
1721 AddContinueNode(pos);
1722 return true;
1723}
1724
1725bool ParseGroup(Lexeme** str)
1726{

Callers 1

ParseExpressionFunction · 0.85

Calls 5

ParseLexemFunction · 0.85
ParseTerminalFunction · 0.85
AddVoidNodeFunction · 0.85
ThrowErrorFunction · 0.85
AddContinueNodeFunction · 0.85

Tested by

no test coverage detected