MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / Token

Class Token

InterfaceCompiler/main.cpp:148–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146};
147
148class Token{
149public:
150 TokenType type;
151 std::string value = "";
152 int lineNum;
153 int linePos;
154
155 Token(){}
156
157 Token(int ln, int pos, TokenType type){
158 lineNum = ln;
159 linePos = pos;
160
161 this->type = type;
162 }
163
164 Token(int ln, int pos, TokenType type, std::string& text) : value(text) {
165 lineNum = ln;
166 linePos = pos;
167
168 this->type = type;
169 }
170};
171
172enum {
173 ParserStateInvalid,

Callers 1

BuildTokensFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected