Parse a given file into a Node. @param path Path to a valid source file containing a single node. @return The node parsed from the given source file. @throws IOException If there is an error reading the file. @throws ParseException If the source contains syntax errors.
(Path path)
| 39 | * @throws ParseException If the source contains syntax errors. |
| 40 | */ |
| 41 | public static Node parse(Path path) throws IOException { |
| 42 | Parser parser = new Parser(path); |
| 43 | return parser.file(); |
| 44 | } |
| 45 | |
| 46 | /** |
| 47 | * Parse a given {@link String} into a {@link Node}. |