Parse the top-level ISLE definitions and return their AST.
(lexer: Lexer)
| 8 | |
| 9 | /// Parse the top-level ISLE definitions and return their AST. |
| 10 | pub fn parse(lexer: Lexer) -> Result<Vec<Def>> { |
| 11 | let parser = Parser::new(lexer); |
| 12 | parser.parse_defs() |
| 13 | } |
| 14 | |
| 15 | /// Parse without positional information. Provided mainly to support testing, to |
| 16 | /// enable equality testing on structure alone. |