| 30 | } |
| 31 | |
| 32 | Node LoadFile(const std::string& filename) { |
| 33 | std::ifstream fin(filename); |
| 34 | if (!fin) { |
| 35 | throw BadFile(filename); |
| 36 | } |
| 37 | return Load(fin); |
| 38 | } |
| 39 | |
| 40 | std::vector<Node> LoadAll(const std::string& input) { |
| 41 | std::stringstream stream(input); |