(predicate)
| 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){ |
no outgoing calls
no test coverage detected