varar-core 0.7.0

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::VarDoc;
use crate::{scanner, structurer};

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