Skip to main content

Crate syntaqlite_syntax

Crate syntaqlite_syntax 

Source
Expand description

Low-level tokenizer and parser for SQLite SQL.

This crate is split from syntaqlite for internal build reasons — it is not a separate user-facing library. All public types are re-exported by syntaqlite. Depend on syntaqlite directly. If you only need parsing (no formatting or validation), disable the default features and enable just sqlite:

[dependencies]
syntaqlite = { version = "0.0.30", default-features = false, features = ["sqlite"] }

Modules§

any
Type-erased variants of every parser and tokenizer type.
nodes
Generated typed AST for the built-in SQLite grammar.
typed
Generic, grammar-parameterized variants of parser/tokenizer types.
util
Cross-cutting utilities for grammar configuration and compatibility.

Structs§

Comment
Comment captured from source during parsing.
CommentSpan
Lightweight comment descriptor without a source text borrow.
IncrementalParseSession
Incremental parsing API for the built-in SQLite grammar.
ParseError
Parse error for one SQLite statement.
ParseSession
Cursor over statements parsed from one SQL source string.
ParsedStatement
Parse result for one successfully recognized SQLite statement.
Parser
High-level entry point for parsing SQLite SQL into typed AST statements.
ParserConfig
Controls optional parser behavior beyond core AST construction.
ParserToken
One parser-observed token from a parsed statement.
ParserTokenFlags
Parser-inferred semantic usage for an individual token occurrence.
Token
Token emitted by Tokenizer, including kind and source slice.
Tokenizer
High-level tokenizer for SQLite SQL.

Enums§

CommentKind
SQL comment style.
CompletionContext
Parser’s best guess about what kind of token fits next.
ParseErrorKind
Indicates whether parsing can continue after an error.
ParseOutcome
Tri-state parse result for statement-oriented parser APIs.
TokenType