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

Function read_while

js/SCASTPY.js:73–78  ·  view source on GitHub ↗
(predicate)

Source from the content-addressed store, hash-verified

71 }
72
73 function read_while(predicate) {
74 var str = "";
75 while (!input.eof() && predicate(input.peek()))
76 str += input.next();
77 return str;
78 }
79 function read_number() {
80 var has_dot = false;
81 var number = read_while(function(ch){

Callers 4

read_numberFunction · 0.70
read_identFunction · 0.70
skip_commentFunction · 0.70
read_nextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected