(String[] args)
| 387 | } |
| 388 | |
| 389 | public static void main(String[] args) throws IOException { |
| 390 | FileInputStream fin = new FileInputStream("test.wytest"); |
| 391 | TestFile tf = parse(fin); |
| 392 | for(String key : tf.keys()) { |
| 393 | System.out.println(key + " = " + tf.get(Object.class, key).get()); |
| 394 | } |
| 395 | HashMap<Trie,TextFile> state = new HashMap<>(); |
| 396 | for(TestFile.Frame f : tf) { |
| 397 | System.out.println(">" + f); |
| 398 | f.apply(state); |
| 399 | System.out.println("STATE: " + state.toString()); |
| 400 | } |
| 401 | } |
| 402 | } |