presk_syntax/lib.rs
1//! Source map, spans, diagnostics, lexer, AST and parser for Presk.
2//!
3//! Step 1 of the 0.1.0 plan (presk-specs/implementation/presk-plan-0.1.0.md).
4//! The syntax accepted is the one of `presk-specs/examples/*.psk` and of the
5//! specification chapter; where the two disagree or the grammar is only
6//! sketched, the choice is recorded in `docs/spec-questions.md`.
7
8pub mod ast;
9pub mod diag;
10pub mod lexer;
11pub mod parser;
12pub mod source;
13pub mod token;
14
15pub use diag::{Diagnostic, Severity};
16pub use parser::{parse_file, parse_type};
17pub use source::{FileId, SourceMap, Span};