varar-core 0.8.1

Markdown-native BDD — pure functional core engine
Documentation
1
2
3
4
5
6
7
8
9
10
//! Top-level parse entry point: `scan` then `structure` — port of `parse.ts` /
//! `Parse.java`.

use crate::ast::Doc;
use crate::{scanner, structurer};

/// Parses `source` into a [`Doc`].
pub fn parse(path: &str, source: &str) -> Doc {
    structurer::structure(path, source, scanner::scan(source))
}