Skip to main content

patch_prolog_frontend/
lib.rs

1//! plg-frontend: ISO Prolog tokenizer, parser, and source-level static
2//! analysis, ported from patch-prolog.
3//!
4//! Consumed by the compiler and the LSP. Compiled Prolog binaries carry a
5//! minimal goal-only parser inside the runtime instead.
6
7pub mod error;
8pub mod lint;
9pub mod parse_error;
10pub mod parser;
11pub mod source_map;
12pub mod tokenizer;
13
14pub use error::{PrologError, ThrownError, format_term};
15pub use parse_error::ParseError;
16pub use parser::{CallSite, CgClause, Parser, ProgramDirectives};
17pub use source_map::SourceMap;
18pub use tokenizer::{Token, TokenKind, Tokenizer};