Skip to main content

leekscript_core/
lib.rs

1//! `LeekScript` parser core: syntax, types, grammar, parser, preprocess, doc comments.
2
3pub mod doc_comment;
4pub mod grammar;
5pub mod parser;
6pub mod preprocess;
7pub mod syntax;
8pub mod types;
9
10pub use doc_comment::DocComment;
11pub use grammar::{build_grammar, build_signature_grammar};
12pub use parser::{
13    parse, parse_error_to_diagnostics, parse_error_to_miette, parse_expression, parse_recovering,
14    parse_recovering_multi, parse_signatures, parse_to_doc, parse_tokens, program_literals,
15    reparse, reparse_or_parse, TextEdit,
16};
17pub use preprocess::{
18    all_files, build_include_tree, collect_include_path_ranges, IncludeError, IncludeTree,
19};
20pub use syntax::{is_valid_identifier, Kind, KEYWORDS};
21pub use types::{CastType, Type};