(Object reader, Object hash, Object opts)
| 536 | |
| 537 | public static class DispatchReader extends AFn{ |
| 538 | public Object invoke(Object reader, Object hash, Object opts) { |
| 539 | int ch = read1((Reader) reader); |
| 540 | if(ch == -1) |
| 541 | throw Util.runtimeException("EOF while reading character"); |
| 542 | IFn fn = dispatchMacros[ch]; |
| 543 | |
| 544 | if(fn == null) { |
| 545 | //try tagged reader |
| 546 | if(Character.isLetter(ch)) |
| 547 | { |
| 548 | unread((PushbackReader) reader, ch); |
| 549 | return taggedReader.invoke(reader, ch, opts); |
| 550 | } |
| 551 | |
| 552 | throw Util.runtimeException(String.format("No dispatch macro for: %c", (char) ch)); |
| 553 | } |
| 554 | return fn.invoke(reader, ch, opts); |
| 555 | } |
| 556 | } |
| 557 | |
| 558 | public static class MetaReader extends AFn{ |
nothing calls this directly
no test coverage detected