varar_core/parse.rs
1//! Top-level parse entry point: `scan` then `structure` — port of `parse.ts` /
2//! `Parse.java`.
3
4use crate::ast::Doc;
5use crate::{scanner, structurer};
6
7/// Parses `source` into a [`Doc`].
8pub fn parse(path: &str, source: &str) -> Doc {
9 structurer::structure(path, source, scanner::scan(source))
10}