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