MCPcopy Create free account
hub / github.com/davidkingzyb/SCAST / peek

Function peek

js/SCAST.js:205–207  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

203 input.croak(`Can't handle character :${ch}(${ch.charCodeAt(0)})`);
204 }
205 function peek() {
206 return current || (current = read_next());//after next() not call peek()
207 }
208 function next() {
209 var tok = current;
210 if(current?.type=='id')prev_id=current;

Callers 1

eofFunction · 0.70

Calls 1

read_nextFunction · 0.70

Tested by

no test coverage detected