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

Method EatOne

LibLemon/src/lexer.cpp:41–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 }
40
41 int BasicLexer::EatOne(char c){
42 assert(!End());
43
44 char ch = *it++;
45 if(ch == '\n'){
46 line++;
47 }
48
49 return ch == c;
50 }
51
52 char BasicLexer::Peek(ssize_t ahead) const{
53 assert(it + ahead < sv.end());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected