Skip to main content

Crate leekscript_core

Crate leekscript_core 

Source
Expand description

LeekScript parser core: syntax, types, grammar, parser, preprocess, doc comments.

Re-exports§

pub use doc_comment::DocComment;
pub use grammar::build_grammar;
pub use grammar::build_signature_grammar;
pub use parser::parse;
pub use parser::parse_error_to_diagnostics;
pub use parser::parse_error_to_miette;
pub use parser::parse_expression;
pub use parser::parse_recovering;
pub use parser::parse_recovering_multi;
pub use parser::parse_signatures;
pub use parser::parse_to_doc;
pub use parser::parse_tokens;
pub use parser::program_literals;
pub use parser::reparse;
pub use parser::reparse_or_parse;
pub use preprocess::all_files;
pub use preprocess::build_include_tree;
pub use preprocess::collect_include_path_ranges;
pub use preprocess::IncludeError;
pub use preprocess::IncludeTree;
pub use syntax::is_valid_identifier;
pub use syntax::Kind;
pub use syntax::KEYWORDS;
pub use types::CastType;
pub use types::Type;

Modules§

doc_comment
Doxygen-style comment parsing and association with declarations.
grammar
LeekScript grammar built with sipha.
parser
Parser entry points: build grammar once and parse source.
preprocess
Include handling: parse files and build a tree of (path, source, AST) with circular include detection.
syntax
Syntax and token kinds for the LeekScript grammar.
types
LeekScript type system.

Structs§

TextEdit
A text edit: replace old_source[start..end] with new_text.