MCPcopy Index your code
hub / github.com/clojure/clojure / interpretToken

Method interpretToken

src/jvm/clojure/lang/EdnReader.java:265–286  ·  view source on GitHub ↗
(String s)

Source from the content-addressed store, hash-verified

263}
264
265static private Object interpretToken(String s) {
266 if(s.equals("nil"))
267 {
268 return null;
269 }
270 else if(s.equals("true"))
271 {
272 return RT.T;
273 }
274 else if(s.equals("false"))
275 {
276 return RT.F;
277 }
278
279 Object ret = null;
280
281 ret = matchSymbol(s);
282 if(ret != null)
283 return ret;
284
285 throw Util.runtimeException("Invalid token: " + s);
286}
287
288
289private static Object matchSymbol(String s){

Callers 1

readMethod · 0.95

Calls 3

matchSymbolMethod · 0.95
runtimeExceptionMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected