(String s)
| 263 | } |
| 264 | |
| 265 | static 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 | |
| 289 | private static Object matchSymbol(String s){ |
no test coverage detected