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

Function read_while

js/SCAST.js:81–86  ·  view source on GitHub ↗
(predicate)

Source from the content-addressed store, hash-verified

79 }
80
81 function read_while(predicate) {
82 var str = "";
83 while (!input.eof() && predicate(input.peek()))
84 str += input.next();
85 return str;
86 }
87 function read_number() {
88 var has_dot = false;
89 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