Skip to main content

nodedb_sql/parser/object_literal/
mod.rs

1// SPDX-License-Identifier: Apache-2.0
2
3//! Parser for `{ key: value }` object literal syntax.
4//!
5//! Two contracts live here, and the difference between them is the point:
6//! [`parse_object_literal`] reads one literal off the FRONT of its input and
7//! leaves the rest alone, while [`parse_object_literal_complete`] requires the
8//! literal to be the whole input and reports anything left over. A caller whose
9//! input is supposed to be the literal must use the strict form, or a clause the
10//! author wrote is discarded without anyone being told.
11
12pub mod api;
13pub mod scan;
14
15pub use api::{
16    parse_object_literal, parse_object_literal_array, parse_object_literal_array_complete,
17    parse_object_literal_complete,
18};