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

Function AddNumberNodeChar

NULLC/Callbacks.cpp:617–624  ·  view source on GitHub ↗

Functions used to add node for constant numbers of different type

Source from the content-addressed store, hash-verified

615
616// Functions used to add node for constant numbers of different type
617void AddNumberNodeChar(const char* pos)
618{
619 CodeInfo::lastKnownStartPos = pos + 1;
620 char res = pos[1];
621 if(res == '\\')
622 res = UnescapeSybmol(pos[2]);
623 CodeInfo::nodeList.push_back(new NodeNumber(int(res), typeChar));
624}
625
626void AddNumberNodeInt(const char* pos)
627{

Callers 1

ParseTerminalFunction · 0.85

Calls 2

UnescapeSybmolFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected