markerml_frontend/
lib.rs

1//! This is a crate that provides parser
2//! for the MarkerML language.
3//!
4//! For the full grammar overview,
5//! refer to the [`markerml`](https://crates.io/crates/markerml) crate.
6
7pub mod ast;
8pub mod ast_span_helpers;
9pub mod parser;
10pub mod span;
11
12/// Parser error
13pub use parser::ParserError;
14/// Source code span. Used for error reporting
15pub use span::Span;
16
17/// Parses given code into AST
18pub fn parse(code: &str) -> Result<ast::Module<Span>, Box<ParserError>> {
19    parser::parse(code)
20}