Expand description
Neumann Parser - A hand-written recursive descent parser for the Neumann query language.
Supports SQL statements, graph commands, vector operations, and unified queries.
§Example
use neumann_parser::{parse, tokenize};
// Parse a SQL statement
let stmt = parse("SELECT * FROM users WHERE id = 1").unwrap();
// Tokenize source text
let tokens = tokenize("SELECT id, name FROM users");Re-exports§
pub use error::Errors;pub use error::ParseError;pub use error::ParseErrorKind;pub use error::ParseResult;pub use expr::parse_expr;pub use expr::ExprParser;pub use lexer::tokenize;pub use lexer::Lexer;pub use parser::parse;pub use parser::parse_all;pub use parser::Parser;pub use span::get_line;pub use span::line_col;pub use span::line_number;pub use span::BytePos;pub use span::Span;pub use span::Spanned;pub use token::Token;pub use token::TokenKind;pub use ast::*;pub use cypher::*;
Modules§
- ast
- Abstract Syntax Tree (AST) nodes for the Neumann query language.
- cypher
- Cypher-like graph query language AST types.
- error
- Error types and diagnostics for the Neumann parser.
- expr
- Pratt expression parser for the Neumann query language.
- lexer
- Lexer for the Neumann query language.
- parser
- Statement parser for the Neumann query language.
- span
- Source location tracking for error reporting.
- token
- Token types for the Neumann query language.